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 |
| 898 | ALLOCA |
| 899 | MMAP_FILE |
| 900 | LLVMCC1 |
| 901 | LLVMCC1PLUS |
| 902 | LLVMGCCDIR |
| 903 | LLVMGCC_VERSION |
| 904 | LLVMGCC_MAJVERS |
| 905 | SHLIBEXT |
| 906 | LLVM_PREFIX |
| 907 | LLVM_BINDIR |
| 908 | LLVM_LIBDIR |
| 909 | LLVM_DATADIR |
| 910 | LLVM_DOCSDIR |
| 911 | LLVM_ETCDIR |
| 912 | LLVM_INCLUDEDIR |
| 913 | LLVM_INFODIR |
| 914 | LLVM_MANDIR |
| 915 | LLVM_CONFIGTIME |
| 916 | LIBOBJS |
| 917 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 918 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 919 | ac_precious_vars='build_alias |
| 920 | host_alias |
| 921 | target_alias |
| 922 | CC |
| 923 | CFLAGS |
| 924 | LDFLAGS |
| 925 | CPPFLAGS |
| 926 | CPP |
| 927 | CXX |
| 928 | CXXFLAGS |
| 929 | CCC |
| 930 | YACC |
| 931 | YFLAGS |
| 932 | CXXCPP |
| 933 | F77 |
| 934 | FFLAGS' |
| 935 | ac_subdirs_all='projects/sample |
| 936 | projects/Stacker |
| 937 | projects/privbracket |
| 938 | projects/llvm-test |
| 939 | projects/llvm-reopt |
| 940 | projects/llvm-gcc |
| 941 | projects/llvm-java |
| 942 | projects/llvm-tv |
| 943 | projects/llvm-poolalloc |
| 944 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 945 | |
| 946 | # Initialize some variables set by options. |
| 947 | ac_init_help= |
| 948 | ac_init_version=false |
| 949 | # The variables have the same names as the options, with |
| 950 | # dashes changed to underlines. |
| 951 | cache_file=/dev/null |
| 952 | exec_prefix=NONE |
| 953 | no_create= |
| 954 | no_recursion= |
| 955 | prefix=NONE |
| 956 | program_prefix=NONE |
| 957 | program_suffix=NONE |
| 958 | program_transform_name=s,x,x, |
| 959 | silent= |
| 960 | site= |
| 961 | srcdir= |
| 962 | verbose= |
| 963 | x_includes=NONE |
| 964 | x_libraries=NONE |
| 965 | |
| 966 | # Installation directory options. |
| 967 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 968 | # and all the variables that are supposed to be based on exec_prefix |
| 969 | # by default will actually change. |
| 970 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 971 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 972 | bindir='${exec_prefix}/bin' |
| 973 | sbindir='${exec_prefix}/sbin' |
| 974 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 975 | datarootdir='${prefix}/share' |
| 976 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 977 | sysconfdir='${prefix}/etc' |
| 978 | sharedstatedir='${prefix}/com' |
| 979 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 980 | includedir='${prefix}/include' |
| 981 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 982 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 983 | infodir='${datarootdir}/info' |
| 984 | htmldir='${docdir}' |
| 985 | dvidir='${docdir}' |
| 986 | pdfdir='${docdir}' |
| 987 | psdir='${docdir}' |
| 988 | libdir='${exec_prefix}/lib' |
| 989 | localedir='${datarootdir}/locale' |
| 990 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 991 | |
| 992 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 993 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 | for ac_option |
| 995 | do |
| 996 | # If the previous option needs an argument, assign it. |
| 997 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 998 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 999 | ac_prev= |
| 1000 | continue |
| 1001 | fi |
| 1002 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1003 | case $ac_option in |
| 1004 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1005 | *) ac_optarg=yes ;; |
| 1006 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1007 | |
| 1008 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1009 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1010 | case $ac_dashdash$ac_option in |
| 1011 | --) |
| 1012 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1013 | |
| 1014 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1015 | ac_prev=bindir ;; |
| 1016 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1017 | bindir=$ac_optarg ;; |
| 1018 | |
| 1019 | -build | --build | --buil | --bui | --bu) |
| 1020 | ac_prev=build_alias ;; |
| 1021 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1022 | build_alias=$ac_optarg ;; |
| 1023 | |
| 1024 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1025 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1026 | ac_prev=cache_file ;; |
| 1027 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1028 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1029 | cache_file=$ac_optarg ;; |
| 1030 | |
| 1031 | --config-cache | -C) |
| 1032 | cache_file=config.cache ;; |
| 1033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1034 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1035 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1036 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1037 | datadir=$ac_optarg ;; |
| 1038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1039 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1040 | | --dataroo | --dataro | --datar) |
| 1041 | ac_prev=datarootdir ;; |
| 1042 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1043 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1044 | datarootdir=$ac_optarg ;; |
| 1045 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1046 | -disable-* | --disable-*) |
| 1047 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1048 | # Reject names that are not valid shell variable names. |
| 1049 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1050 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1051 | { (exit 1); exit 1; }; } |
| 1052 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1053 | eval enable_$ac_feature=no ;; |
| 1054 | |
| 1055 | -docdir | --docdir | --docdi | --doc | --do) |
| 1056 | ac_prev=docdir ;; |
| 1057 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1058 | docdir=$ac_optarg ;; |
| 1059 | |
| 1060 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1061 | ac_prev=dvidir ;; |
| 1062 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1063 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1064 | |
| 1065 | -enable-* | --enable-*) |
| 1066 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1067 | # Reject names that are not valid shell variable names. |
| 1068 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1069 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1070 | { (exit 1); exit 1; }; } |
| 1071 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1072 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1073 | |
| 1074 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1075 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1076 | | --exec | --exe | --ex) |
| 1077 | ac_prev=exec_prefix ;; |
| 1078 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1079 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1080 | | --exec=* | --exe=* | --ex=*) |
| 1081 | exec_prefix=$ac_optarg ;; |
| 1082 | |
| 1083 | -gas | --gas | --ga | --g) |
| 1084 | # Obsolete; use --with-gas. |
| 1085 | with_gas=yes ;; |
| 1086 | |
| 1087 | -help | --help | --hel | --he | -h) |
| 1088 | ac_init_help=long ;; |
| 1089 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1090 | ac_init_help=recursive ;; |
| 1091 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1092 | ac_init_help=short ;; |
| 1093 | |
| 1094 | -host | --host | --hos | --ho) |
| 1095 | ac_prev=host_alias ;; |
| 1096 | -host=* | --host=* | --hos=* | --ho=*) |
| 1097 | host_alias=$ac_optarg ;; |
| 1098 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1099 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1100 | ac_prev=htmldir ;; |
| 1101 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1102 | | --ht=*) |
| 1103 | htmldir=$ac_optarg ;; |
| 1104 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1105 | -includedir | --includedir | --includedi | --included | --include \ |
| 1106 | | --includ | --inclu | --incl | --inc) |
| 1107 | ac_prev=includedir ;; |
| 1108 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1109 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1110 | includedir=$ac_optarg ;; |
| 1111 | |
| 1112 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1113 | ac_prev=infodir ;; |
| 1114 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1115 | infodir=$ac_optarg ;; |
| 1116 | |
| 1117 | -libdir | --libdir | --libdi | --libd) |
| 1118 | ac_prev=libdir ;; |
| 1119 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1120 | libdir=$ac_optarg ;; |
| 1121 | |
| 1122 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1123 | | --libexe | --libex | --libe) |
| 1124 | ac_prev=libexecdir ;; |
| 1125 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1126 | | --libexe=* | --libex=* | --libe=*) |
| 1127 | libexecdir=$ac_optarg ;; |
| 1128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1129 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1130 | ac_prev=localedir ;; |
| 1131 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1132 | localedir=$ac_optarg ;; |
| 1133 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1134 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1135 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1136 | ac_prev=localstatedir ;; |
| 1137 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1138 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1139 | localstatedir=$ac_optarg ;; |
| 1140 | |
| 1141 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1142 | ac_prev=mandir ;; |
| 1143 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1144 | mandir=$ac_optarg ;; |
| 1145 | |
| 1146 | -nfp | --nfp | --nf) |
| 1147 | # Obsolete; use --without-fp. |
| 1148 | with_fp=no ;; |
| 1149 | |
| 1150 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1151 | | --no-cr | --no-c | -n) |
| 1152 | no_create=yes ;; |
| 1153 | |
| 1154 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1155 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1156 | no_recursion=yes ;; |
| 1157 | |
| 1158 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1159 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1160 | | --oldin | --oldi | --old | --ol | --o) |
| 1161 | ac_prev=oldincludedir ;; |
| 1162 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1163 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1164 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1165 | oldincludedir=$ac_optarg ;; |
| 1166 | |
| 1167 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1168 | ac_prev=prefix ;; |
| 1169 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1170 | prefix=$ac_optarg ;; |
| 1171 | |
| 1172 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1173 | | --program-pre | --program-pr | --program-p) |
| 1174 | ac_prev=program_prefix ;; |
| 1175 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1176 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1177 | program_prefix=$ac_optarg ;; |
| 1178 | |
| 1179 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1180 | | --program-suf | --program-su | --program-s) |
| 1181 | ac_prev=program_suffix ;; |
| 1182 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1183 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1184 | program_suffix=$ac_optarg ;; |
| 1185 | |
| 1186 | -program-transform-name | --program-transform-name \ |
| 1187 | | --program-transform-nam | --program-transform-na \ |
| 1188 | | --program-transform-n | --program-transform- \ |
| 1189 | | --program-transform | --program-transfor \ |
| 1190 | | --program-transfo | --program-transf \ |
| 1191 | | --program-trans | --program-tran \ |
| 1192 | | --progr-tra | --program-tr | --program-t) |
| 1193 | ac_prev=program_transform_name ;; |
| 1194 | -program-transform-name=* | --program-transform-name=* \ |
| 1195 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1196 | | --program-transform-n=* | --program-transform-=* \ |
| 1197 | | --program-transform=* | --program-transfor=* \ |
| 1198 | | --program-transfo=* | --program-transf=* \ |
| 1199 | | --program-trans=* | --program-tran=* \ |
| 1200 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1201 | program_transform_name=$ac_optarg ;; |
| 1202 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1203 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1204 | ac_prev=pdfdir ;; |
| 1205 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1206 | pdfdir=$ac_optarg ;; |
| 1207 | |
| 1208 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1209 | ac_prev=psdir ;; |
| 1210 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1211 | psdir=$ac_optarg ;; |
| 1212 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1214 | | -silent | --silent | --silen | --sile | --sil) |
| 1215 | silent=yes ;; |
| 1216 | |
| 1217 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1218 | ac_prev=sbindir ;; |
| 1219 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1220 | | --sbi=* | --sb=*) |
| 1221 | sbindir=$ac_optarg ;; |
| 1222 | |
| 1223 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1224 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1225 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1226 | | --sha | --sh) |
| 1227 | ac_prev=sharedstatedir ;; |
| 1228 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1229 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1230 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1231 | | --sha=* | --sh=*) |
| 1232 | sharedstatedir=$ac_optarg ;; |
| 1233 | |
| 1234 | -site | --site | --sit) |
| 1235 | ac_prev=site ;; |
| 1236 | -site=* | --site=* | --sit=*) |
| 1237 | site=$ac_optarg ;; |
| 1238 | |
| 1239 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1240 | ac_prev=srcdir ;; |
| 1241 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1242 | srcdir=$ac_optarg ;; |
| 1243 | |
| 1244 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1245 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1246 | ac_prev=sysconfdir ;; |
| 1247 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1248 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1249 | sysconfdir=$ac_optarg ;; |
| 1250 | |
| 1251 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1252 | ac_prev=target_alias ;; |
| 1253 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1254 | target_alias=$ac_optarg ;; |
| 1255 | |
| 1256 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1257 | verbose=yes ;; |
| 1258 | |
| 1259 | -version | --version | --versio | --versi | --vers | -V) |
| 1260 | ac_init_version=: ;; |
| 1261 | |
| 1262 | -with-* | --with-*) |
| 1263 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1264 | # Reject names that are not valid shell variable names. |
| 1265 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1266 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1267 | { (exit 1); exit 1; }; } |
| 1268 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1269 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1270 | |
| 1271 | -without-* | --without-*) |
| 1272 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1273 | # Reject names that are not valid shell variable names. |
| 1274 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1275 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1276 | { (exit 1); exit 1; }; } |
| 1277 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1278 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1279 | |
| 1280 | --x) |
| 1281 | # Obsolete; use --with-x. |
| 1282 | with_x=yes ;; |
| 1283 | |
| 1284 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1285 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1286 | ac_prev=x_includes ;; |
| 1287 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1288 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1289 | x_includes=$ac_optarg ;; |
| 1290 | |
| 1291 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1292 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1293 | ac_prev=x_libraries ;; |
| 1294 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1295 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1296 | x_libraries=$ac_optarg ;; |
| 1297 | |
| 1298 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1299 | Try \`$0 --help' for more information." >&2 |
| 1300 | { (exit 1); exit 1; }; } |
| 1301 | ;; |
| 1302 | |
| 1303 | *=*) |
| 1304 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1305 | # Reject names that are not valid shell variable names. |
| 1306 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1307 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1308 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1309 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1310 | export $ac_envvar ;; |
| 1311 | |
| 1312 | *) |
| 1313 | # FIXME: should be removed in autoconf 3.0. |
| 1314 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1315 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1316 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1317 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1318 | ;; |
| 1319 | |
| 1320 | esac |
| 1321 | done |
| 1322 | |
| 1323 | if test -n "$ac_prev"; then |
| 1324 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1325 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1326 | { (exit 1); exit 1; }; } |
| 1327 | fi |
| 1328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1329 | # Be sure to have absolute directory names. |
| 1330 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1331 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1332 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1333 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1334 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1335 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1336 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1337 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1338 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1339 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1340 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1341 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1342 | done |
| 1343 | |
| 1344 | # There might be people who depend on the old broken behavior: `$host' |
| 1345 | # used to hold the argument of --host etc. |
| 1346 | # FIXME: To remove some day. |
| 1347 | build=$build_alias |
| 1348 | host=$host_alias |
| 1349 | target=$target_alias |
| 1350 | |
| 1351 | # FIXME: To remove some day. |
| 1352 | if test "x$host_alias" != x; then |
| 1353 | if test "x$build_alias" = x; then |
| 1354 | cross_compiling=maybe |
| 1355 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1356 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1357 | elif test "x$build_alias" != "x$host_alias"; then |
| 1358 | cross_compiling=yes |
| 1359 | fi |
| 1360 | fi |
| 1361 | |
| 1362 | ac_tool_prefix= |
| 1363 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1364 | |
| 1365 | test "$silent" = yes && exec 6>/dev/null |
| 1366 | |
| 1367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1368 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1369 | ac_ls_di=`ls -di .` && |
| 1370 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1371 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1372 | { (exit 1); exit 1; }; } |
| 1373 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1374 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1375 | { (exit 1); exit 1; }; } |
| 1376 | |
| 1377 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1378 | # Find the source files, if location was not specified. |
| 1379 | if test -z "$srcdir"; then |
| 1380 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1381 | # Try the directory containing this script, then the parent directory. |
| 1382 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1383 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1384 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1385 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1386 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1387 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1388 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1389 | s//\1/ |
| 1390 | q |
| 1391 | } |
| 1392 | /^X\(\/\/\)[^/].*/{ |
| 1393 | s//\1/ |
| 1394 | q |
| 1395 | } |
| 1396 | /^X\(\/\/\)$/{ |
| 1397 | s//\1/ |
| 1398 | q |
| 1399 | } |
| 1400 | /^X\(\/\).*/{ |
| 1401 | s//\1/ |
| 1402 | q |
| 1403 | } |
| 1404 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1405 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1406 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1407 | srcdir=.. |
| 1408 | fi |
| 1409 | else |
| 1410 | ac_srcdir_defaulted=no |
| 1411 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1412 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1413 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1414 | { 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] | 1415 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1416 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1417 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1418 | ac_abs_confdir=`( |
| 1419 | 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] | 1420 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1421 | pwd)` |
| 1422 | # When building in place, set srcdir=. |
| 1423 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1424 | srcdir=. |
| 1425 | fi |
| 1426 | # Remove unnecessary trailing slashes from srcdir. |
| 1427 | # Double slashes in file names in object file debugging info |
| 1428 | # mess up M-x gdb in Emacs. |
| 1429 | case $srcdir in |
| 1430 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1431 | esac |
| 1432 | for ac_var in $ac_precious_vars; do |
| 1433 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1434 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1435 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1436 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1437 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1438 | |
| 1439 | # |
| 1440 | # Report the --help message. |
| 1441 | # |
| 1442 | if test "$ac_init_help" = "long"; then |
| 1443 | # Omit some internal or obsolete options to make the list less imposing. |
| 1444 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1445 | cat <<_ACEOF |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1446 | \`configure' configures llvm 1.9cvs to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1447 | |
| 1448 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1449 | |
| 1450 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1451 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1452 | |
| 1453 | Defaults for the options are specified in brackets. |
| 1454 | |
| 1455 | Configuration: |
| 1456 | -h, --help display this help and exit |
| 1457 | --help=short display options specific to this package |
| 1458 | --help=recursive display the short help of all the included packages |
| 1459 | -V, --version display version information and exit |
| 1460 | -q, --quiet, --silent do not print \`checking...' messages |
| 1461 | --cache-file=FILE cache test results in FILE [disabled] |
| 1462 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1463 | -n, --no-create do not create output files |
| 1464 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1465 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1466 | Installation directories: |
| 1467 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1468 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1469 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1470 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | |
| 1472 | By default, \`make install' will install all the files in |
| 1473 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1474 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1475 | for instance \`--prefix=\$HOME'. |
| 1476 | |
| 1477 | For better control, use the options below. |
| 1478 | |
| 1479 | Fine tuning of the installation directories: |
| 1480 | --bindir=DIR user executables [EPREFIX/bin] |
| 1481 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1482 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1483 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1484 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1485 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1486 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1487 | --includedir=DIR C header files [PREFIX/include] |
| 1488 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1489 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1490 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1491 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1492 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1493 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1494 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1495 | --htmldir=DIR html documentation [DOCDIR] |
| 1496 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1497 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1498 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 | _ACEOF |
| 1500 | |
| 1501 | cat <<\_ACEOF |
| 1502 | |
| 1503 | System types: |
| 1504 | --build=BUILD configure for building on BUILD [guessed] |
| 1505 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1506 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1507 | _ACEOF |
| 1508 | fi |
| 1509 | |
| 1510 | if test -n "$ac_init_help"; then |
| 1511 | case $ac_init_help in |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1512 | short | recursive ) echo "Configuration of llvm 1.9cvs:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1513 | esac |
| 1514 | cat <<\_ACEOF |
| 1515 | |
| 1516 | Optional Features: |
| 1517 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1518 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1519 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1520 | --enable-assertions |
Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 1521 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1522 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1523 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1524 | --enable-threads Use threads if available (default is YES) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1525 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1526 | all,host-only,{target-name} (default=all) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1527 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1528 | --enable-shared[=PKGS] build shared libraries |
| 1529 | [default=enable_shared_default] |
| 1530 | --enable-static[=PKGS] build static libraries |
| 1531 | [default=enable_static_default] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1532 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1533 | optimize for fast installation |
| 1534 | [default=enable_Fast_install_default] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1535 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | |
| 1537 | Optional Packages: |
| 1538 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1539 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1540 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1541 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1542 | --with-extra-options Specify addtional options to compile LLVM with |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1543 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1544 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1545 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1546 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1547 | --with-tags[=TAGS] include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1548 | |
| 1549 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1550 | CC C compiler command |
| 1551 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1552 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1553 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1554 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1555 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1556 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1557 | CXX C++ compiler command |
| 1558 | CXXFLAGS C++ compiler flags |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1559 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1560 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1561 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1562 | This script will default YFLAGS to the empty string to avoid a |
| 1563 | default value of `-d' given by some make applications. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1564 | CXXCPP C++ preprocessor |
| 1565 | F77 Fortran 77 compiler command |
| 1566 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1567 | |
| 1568 | Use these variables to override the choices made by `configure' or to help |
| 1569 | it to find libraries and programs with nonstandard names/locations. |
| 1570 | |
| 1571 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1572 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1573 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1574 | fi |
| 1575 | |
| 1576 | if test "$ac_init_help" = "recursive"; then |
| 1577 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1578 | 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] | 1579 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1580 | ac_builddir=. |
| 1581 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1582 | case "$ac_dir" in |
| 1583 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1584 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1585 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1586 | # A ".." for each directory in $ac_dir_suffix. |
| 1587 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1588 | case $ac_top_builddir_sub in |
| 1589 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1590 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1591 | esac ;; |
| 1592 | esac |
| 1593 | ac_abs_top_builddir=$ac_pwd |
| 1594 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1595 | # for backward compatibility: |
| 1596 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1597 | |
| 1598 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1599 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1600 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1601 | ac_top_srcdir=$ac_top_builddir_sub |
| 1602 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1603 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1604 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1605 | ac_top_srcdir=$srcdir |
| 1606 | ac_abs_top_srcdir=$srcdir ;; |
| 1607 | *) # Relative name. |
| 1608 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1609 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1610 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1611 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1612 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1614 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1615 | # Check for guested configure. |
| 1616 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1617 | echo && |
| 1618 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1619 | elif test -f "$ac_srcdir/configure"; then |
| 1620 | echo && |
| 1621 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1622 | else |
| 1623 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1624 | fi || ac_status=$? |
| 1625 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1626 | done |
| 1627 | fi |
| 1628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1629 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1630 | if $ac_init_version; then |
| 1631 | cat <<\_ACEOF |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1632 | llvm configure 1.9cvs |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1633 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1635 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1636 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1637 | This configure script is free software; the Free Software Foundation |
| 1638 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1639 | |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 1640 | Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1641 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1642 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1643 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1644 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1645 | This file contains any messages produced by compilers while |
| 1646 | running configure, to aid debugging if configure makes a mistake. |
| 1647 | |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1648 | It was created by llvm $as_me 1.9cvs, which was |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1649 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1650 | |
| 1651 | $ $0 $@ |
| 1652 | |
| 1653 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1654 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1655 | { |
| 1656 | cat <<_ASUNAME |
| 1657 | ## --------- ## |
| 1658 | ## Platform. ## |
| 1659 | ## --------- ## |
| 1660 | |
| 1661 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1662 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1663 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1664 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1665 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1666 | |
| 1667 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1668 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1669 | |
| 1670 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1671 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1672 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1674 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1675 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1676 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1677 | |
| 1678 | _ASUNAME |
| 1679 | |
| 1680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1681 | for as_dir in $PATH |
| 1682 | do |
| 1683 | IFS=$as_save_IFS |
| 1684 | test -z "$as_dir" && as_dir=. |
| 1685 | echo "PATH: $as_dir" |
| 1686 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1687 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 | |
| 1689 | } >&5 |
| 1690 | |
| 1691 | cat >&5 <<_ACEOF |
| 1692 | |
| 1693 | |
| 1694 | ## ----------- ## |
| 1695 | ## Core tests. ## |
| 1696 | ## ----------- ## |
| 1697 | |
| 1698 | _ACEOF |
| 1699 | |
| 1700 | |
| 1701 | # Keep a trace of the command line. |
| 1702 | # 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] | 1703 | # 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] | 1704 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1705 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1706 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1707 | ac_configure_args0= |
| 1708 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1709 | ac_must_keep_next=false |
| 1710 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1711 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1712 | for ac_arg |
| 1713 | do |
| 1714 | case $ac_arg in |
| 1715 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1716 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1717 | | -silent | --silent | --silen | --sile | --sil) |
| 1718 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1719 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1720 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1721 | esac |
| 1722 | case $ac_pass in |
| 1723 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1724 | 2) |
| 1725 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1726 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1727 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1728 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1729 | case $ac_arg in |
| 1730 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1731 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1732 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1733 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1734 | case "$ac_configure_args0 " in |
| 1735 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1736 | esac |
| 1737 | ;; |
| 1738 | -* ) ac_must_keep_next=true ;; |
| 1739 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1740 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1741 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1742 | ;; |
| 1743 | esac |
| 1744 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1745 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1746 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1747 | $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] | 1748 | |
| 1749 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1750 | # config.log. We remove comments because anyway the quotes in there |
| 1751 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1752 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1753 | # 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] | 1754 | trap 'exit_status=$? |
| 1755 | # Save into config.log some information that might help in debugging. |
| 1756 | { |
| 1757 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1758 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1759 | cat <<\_ASBOX |
| 1760 | ## ---------------- ## |
| 1761 | ## Cache variables. ## |
| 1762 | ## ---------------- ## |
| 1763 | _ASBOX |
| 1764 | echo |
| 1765 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1766 | ( |
| 1767 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1768 | eval ac_val=\$$ac_var |
| 1769 | case $ac_val in #( |
| 1770 | *${as_nl}*) |
| 1771 | case $ac_var in #( |
| 1772 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1773 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1774 | esac |
| 1775 | case $ac_var in #( |
| 1776 | _ | IFS | as_nl) ;; #( |
| 1777 | *) $as_unset $ac_var ;; |
| 1778 | esac ;; |
| 1779 | esac |
| 1780 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1781 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1782 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1783 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1784 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1785 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1786 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1787 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1788 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1789 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1790 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1791 | esac | |
| 1792 | sort |
| 1793 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1794 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1795 | |
| 1796 | cat <<\_ASBOX |
| 1797 | ## ----------------- ## |
| 1798 | ## Output variables. ## |
| 1799 | ## ----------------- ## |
| 1800 | _ASBOX |
| 1801 | echo |
| 1802 | for ac_var in $ac_subst_vars |
| 1803 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1804 | eval ac_val=\$$ac_var |
| 1805 | case $ac_val in |
| 1806 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1807 | esac |
| 1808 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1809 | done | sort |
| 1810 | echo |
| 1811 | |
| 1812 | if test -n "$ac_subst_files"; then |
| 1813 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1814 | ## ------------------- ## |
| 1815 | ## File substitutions. ## |
| 1816 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1817 | _ASBOX |
| 1818 | echo |
| 1819 | for ac_var in $ac_subst_files |
| 1820 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1821 | eval ac_val=\$$ac_var |
| 1822 | case $ac_val in |
| 1823 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1824 | esac |
| 1825 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1826 | done | sort |
| 1827 | echo |
| 1828 | fi |
| 1829 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1830 | if test -s confdefs.h; then |
| 1831 | cat <<\_ASBOX |
| 1832 | ## ----------- ## |
| 1833 | ## confdefs.h. ## |
| 1834 | ## ----------- ## |
| 1835 | _ASBOX |
| 1836 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1837 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1838 | echo |
| 1839 | fi |
| 1840 | test "$ac_signal" != 0 && |
| 1841 | echo "$as_me: caught signal $ac_signal" |
| 1842 | echo "$as_me: exit $exit_status" |
| 1843 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1844 | rm -f core *.core core.conftest.* && |
| 1845 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1846 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1847 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1848 | for ac_signal in 1 2 13 15; do |
| 1849 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1850 | done |
| 1851 | ac_signal=0 |
| 1852 | |
| 1853 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1854 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1855 | |
| 1856 | # Predefined preprocessor variables. |
| 1857 | |
| 1858 | cat >>confdefs.h <<_ACEOF |
| 1859 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1860 | _ACEOF |
| 1861 | |
| 1862 | |
| 1863 | cat >>confdefs.h <<_ACEOF |
| 1864 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1865 | _ACEOF |
| 1866 | |
| 1867 | |
| 1868 | cat >>confdefs.h <<_ACEOF |
| 1869 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1870 | _ACEOF |
| 1871 | |
| 1872 | |
| 1873 | cat >>confdefs.h <<_ACEOF |
| 1874 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1875 | _ACEOF |
| 1876 | |
| 1877 | |
| 1878 | cat >>confdefs.h <<_ACEOF |
| 1879 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1880 | _ACEOF |
| 1881 | |
| 1882 | |
| 1883 | # Let the site file select an alternate cache file if it wants to. |
| 1884 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1885 | if test -n "$CONFIG_SITE"; then |
| 1886 | set x "$CONFIG_SITE" |
| 1887 | elif test "x$prefix" != xNONE; then |
| 1888 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1889 | else |
| 1890 | set x "$ac_default_prefix/share/config.site" \ |
| 1891 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1892 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1893 | shift |
| 1894 | for ac_site_file |
| 1895 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1896 | if test -r "$ac_site_file"; then |
| 1897 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1898 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1899 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1900 | . "$ac_site_file" |
| 1901 | fi |
| 1902 | done |
| 1903 | |
| 1904 | if test -r "$cache_file"; then |
| 1905 | # Some versions of bash will fail to source /dev/null (special |
| 1906 | # files actually), so we avoid doing that. |
| 1907 | if test -f "$cache_file"; then |
| 1908 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1909 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1910 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1911 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1912 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1913 | esac |
| 1914 | fi |
| 1915 | else |
| 1916 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1917 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1918 | >$cache_file |
| 1919 | fi |
| 1920 | |
| 1921 | # Check that the precious variables saved in the cache have kept the same |
| 1922 | # value. |
| 1923 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1924 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1925 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1926 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1927 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1928 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1929 | case $ac_old_set,$ac_new_set in |
| 1930 | set,) |
| 1931 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1932 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1933 | ac_cache_corrupted=: ;; |
| 1934 | ,set) |
| 1935 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1936 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1937 | ac_cache_corrupted=: ;; |
| 1938 | ,);; |
| 1939 | *) |
| 1940 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1941 | { 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] | 1942 | 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] | 1943 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1944 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1945 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1946 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1947 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1948 | fi;; |
| 1949 | esac |
| 1950 | # Pass precious variables to config.status. |
| 1951 | if test "$ac_new_set" = set; then |
| 1952 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1953 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1954 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1955 | esac |
| 1956 | case " $ac_configure_args " in |
| 1957 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1958 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1959 | esac |
| 1960 | fi |
| 1961 | done |
| 1962 | if $ac_cache_corrupted; then |
| 1963 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1964 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1965 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1966 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1967 | { (exit 1); exit 1; }; } |
| 1968 | fi |
| 1969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1970 | |
| 1971 | |
| 1972 | |
| 1973 | |
| 1974 | |
| 1975 | |
| 1976 | |
| 1977 | |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | |
| 1983 | |
| 1984 | |
| 1985 | |
| 1986 | |
| 1987 | |
| 1988 | |
| 1989 | |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1994 | ac_ext=c |
| 1995 | ac_cpp='$CPP $CPPFLAGS' |
| 1996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1999 | |
| 2000 | |
| 2001 | |
Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 2002 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2010 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2011 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2012 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2013 | ac_aux_dir=$ac_dir |
| 2014 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2015 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2016 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2017 | ac_aux_dir=$ac_dir |
| 2018 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2019 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2020 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2021 | ac_aux_dir=$ac_dir |
| 2022 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2023 | break |
| 2024 | fi |
| 2025 | done |
| 2026 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2027 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2028 | 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] | 2029 | { (exit 1); exit 1; }; } |
| 2030 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2031 | |
| 2032 | # These three variables are undocumented and unsupported, |
| 2033 | # and are intended to be withdrawn in a future Autoconf release. |
| 2034 | # They can cause serious problems if a builder's source tree is in a directory |
| 2035 | # whose full name contains unusual characters. |
| 2036 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2037 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2038 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2039 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2040 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2041 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2042 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2043 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2044 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2045 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2046 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2047 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2048 | fi |
| 2049 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2050 | for i in `ls ${srcdir}/projects` |
| 2051 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2052 | if test -d ${srcdir}/projects/${i} ; then |
| 2053 | case ${i} in |
| 2054 | "CVS") ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2055 | "sample") subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2056 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2057 | "Stacker") subdirs="$subdirs projects/Stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2058 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2059 | "privbracket") subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2060 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2061 | "llvm-test") subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2062 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2063 | "llvm-reopt") subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2064 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2065 | "llvm-gcc") subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2066 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2067 | "llvm-java") subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2068 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2069 | "llvm-tv") subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2070 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2071 | "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2072 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2073 | "llvm-kernel") subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2074 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2075 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2076 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2077 | 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] | 2078 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2079 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2080 | fi |
| 2081 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2082 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2083 | |
| 2084 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2085 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2086 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2087 | 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] | 2088 | { (exit 1); exit 1; }; } |
| 2089 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2090 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2091 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2092 | if test "${ac_cv_build+set}" = set; then |
| 2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2094 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2095 | ac_build_alias=$build_alias |
| 2096 | test "x$ac_build_alias" = x && |
| 2097 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2098 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2099 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2100 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2101 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2102 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2103 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2104 | 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] | 2105 | { (exit 1); exit 1; }; } |
| 2106 | |
| 2107 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2108 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2109 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2110 | case $ac_cv_build in |
| 2111 | *-*-*) ;; |
| 2112 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2113 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2114 | { (exit 1); exit 1; }; };; |
| 2115 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2116 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2117 | ac_save_IFS=$IFS; IFS='-' |
| 2118 | set x $ac_cv_build |
| 2119 | shift |
| 2120 | build_cpu=$1 |
| 2121 | build_vendor=$2 |
| 2122 | shift; shift |
| 2123 | # Remember, the first character of IFS is used to create $*, |
| 2124 | # except with old shells: |
| 2125 | build_os=$* |
| 2126 | IFS=$ac_save_IFS |
| 2127 | 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] | 2128 | |
| 2129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2130 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2131 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2132 | if test "${ac_cv_host+set}" = set; then |
| 2133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2134 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2135 | if test "x$host_alias" = x; then |
| 2136 | ac_cv_host=$ac_cv_build |
| 2137 | else |
| 2138 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2139 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2140 | 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] | 2141 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2142 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2143 | |
| 2144 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2145 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2146 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2147 | case $ac_cv_host in |
| 2148 | *-*-*) ;; |
| 2149 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2150 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2151 | { (exit 1); exit 1; }; };; |
| 2152 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2153 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2154 | ac_save_IFS=$IFS; IFS='-' |
| 2155 | set x $ac_cv_host |
| 2156 | shift |
| 2157 | host_cpu=$1 |
| 2158 | host_vendor=$2 |
| 2159 | shift; shift |
| 2160 | # Remember, the first character of IFS is used to create $*, |
| 2161 | # except with old shells: |
| 2162 | host_os=$* |
| 2163 | IFS=$ac_save_IFS |
| 2164 | 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] | 2165 | |
| 2166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2167 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2168 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2169 | if test "${ac_cv_target+set}" = set; then |
| 2170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2171 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2172 | if test "x$target_alias" = x; then |
| 2173 | ac_cv_target=$ac_cv_host |
| 2174 | else |
| 2175 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2176 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2177 | 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] | 2178 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2179 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2180 | |
| 2181 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2182 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2183 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2184 | case $ac_cv_target in |
| 2185 | *-*-*) ;; |
| 2186 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2187 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2188 | { (exit 1); exit 1; }; };; |
| 2189 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2190 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2191 | ac_save_IFS=$IFS; IFS='-' |
| 2192 | set x $ac_cv_target |
| 2193 | shift |
| 2194 | target_cpu=$1 |
| 2195 | target_vendor=$2 |
| 2196 | shift; shift |
| 2197 | # Remember, the first character of IFS is used to create $*, |
| 2198 | # except with old shells: |
| 2199 | target_os=$* |
| 2200 | IFS=$ac_save_IFS |
| 2201 | 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] | 2202 | |
| 2203 | |
| 2204 | # The aliases save the names the user supplied, while $host etc. |
| 2205 | # will get canonicalized. |
| 2206 | test -n "$target_alias" && |
| 2207 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2208 | NONENONEs,x,x, && |
| 2209 | program_prefix=${target_alias}- |
| 2210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2211 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2212 | 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] | 2213 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2215 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2216 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2217 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2218 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2219 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2220 | llvm_cv_os_type="AIX" |
| 2221 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2222 | *-*-irix*) |
| 2223 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2224 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2225 | llvm_cv_os_type="IRIX" |
| 2226 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2227 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2228 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2229 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2230 | llvm_cv_os_type="Cygwin" |
| 2231 | llvm_cv_platform_type="Unix" ;; |
| 2232 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2233 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2234 | llvm_cv_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2235 | llvm_cv_os_type="Darwin" |
| 2236 | llvm_cv_platform_type="Unix" ;; |
| 2237 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2238 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2239 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2240 | llvm_cv_os_type="FreeBSD" |
| 2241 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2242 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2243 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2244 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2245 | llvm_cv_os_type="OpenBSD" |
| 2246 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2247 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2248 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2249 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2250 | llvm_cv_os_type="HP-UX" |
| 2251 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2252 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2253 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2254 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2255 | llvm_cv_os_type="Interix" |
| 2256 | llvm_cv_platform_type="Unix" ;; |
| 2257 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2258 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2259 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2260 | llvm_cv_os_type="Linux" |
| 2261 | llvm_cv_platform_type="Unix" ;; |
| 2262 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2263 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2264 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2265 | llvm_cv_os_type="SunOS" |
| 2266 | llvm_cv_platform_type="Unix" ;; |
| 2267 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2268 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2269 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2270 | llvm_cv_os_type="Win32" |
| 2271 | llvm_cv_platform_type="Win32" ;; |
| 2272 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2273 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2274 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2275 | llvm_cv_os_type="MingW" |
| 2276 | llvm_cv_platform_type="Win32" ;; |
| 2277 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2278 | llvm_cv_link_all_option="" |
| 2279 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2280 | llvm_cv_os_type="Unknown" |
| 2281 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2282 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2283 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2284 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2285 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2286 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2287 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2288 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2289 | 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] | 2290 | { (exit 1); exit 1; }; } |
| 2291 | fi |
| 2292 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2293 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2294 | |
| 2295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2296 | LINKALL=$llvm_cv_link_all_option |
| 2297 | |
| 2298 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2299 | |
| 2300 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2301 | case $llvm_cv_platform_type in |
| 2302 | Unix) |
| 2303 | |
| 2304 | cat >>confdefs.h <<\_ACEOF |
| 2305 | #define LLVM_ON_UNIX 1 |
| 2306 | _ACEOF |
| 2307 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2308 | LLVM_ON_UNIX=1 |
| 2309 | |
| 2310 | LLVM_ON_WIN32=0 |
| 2311 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2312 | ;; |
| 2313 | Win32) |
| 2314 | |
| 2315 | cat >>confdefs.h <<\_ACEOF |
| 2316 | #define LLVM_ON_WIN32 1 |
| 2317 | _ACEOF |
| 2318 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2319 | LLVM_ON_UNIX=0 |
| 2320 | |
| 2321 | LLVM_ON_WIN32=1 |
| 2322 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2323 | ;; |
| 2324 | esac |
| 2325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2326 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2327 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2328 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2330 | else |
| 2331 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2332 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2333 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2334 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2335 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2336 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2337 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2338 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2339 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2340 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2341 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2342 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2343 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2344 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2345 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2346 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2347 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2348 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2349 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2350 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2351 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2352 | ac_ext=c |
| 2353 | ac_cpp='$CPP $CPPFLAGS' |
| 2354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2357 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2358 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2359 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2360 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2362 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2364 | else |
| 2365 | if test -n "$CC"; then |
| 2366 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2367 | else |
| 2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2369 | for as_dir in $PATH |
| 2370 | do |
| 2371 | IFS=$as_save_IFS |
| 2372 | test -z "$as_dir" && as_dir=. |
| 2373 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2374 | 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] | 2375 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2377 | break 2 |
| 2378 | fi |
| 2379 | done |
| 2380 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2381 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2382 | |
| 2383 | fi |
| 2384 | fi |
| 2385 | CC=$ac_cv_prog_CC |
| 2386 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2387 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2388 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2389 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2390 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2391 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2392 | fi |
| 2393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2394 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2395 | fi |
| 2396 | if test -z "$ac_cv_prog_CC"; then |
| 2397 | ac_ct_CC=$CC |
| 2398 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2399 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2400 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2402 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2404 | else |
| 2405 | if test -n "$ac_ct_CC"; then |
| 2406 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2407 | else |
| 2408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2409 | for as_dir in $PATH |
| 2410 | do |
| 2411 | IFS=$as_save_IFS |
| 2412 | test -z "$as_dir" && as_dir=. |
| 2413 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2414 | 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] | 2415 | ac_cv_prog_ac_ct_CC="gcc" |
| 2416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2417 | break 2 |
| 2418 | fi |
| 2419 | done |
| 2420 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2421 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2422 | |
| 2423 | fi |
| 2424 | fi |
| 2425 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2426 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2427 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2428 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2429 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2430 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2431 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2432 | fi |
| 2433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2434 | if test "x$ac_ct_CC" = x; then |
| 2435 | CC="" |
| 2436 | else |
| 2437 | case $cross_compiling:$ac_tool_warned in |
| 2438 | yes:) |
| 2439 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2440 | whose name does not start with the host triplet. If you think this |
| 2441 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2442 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2443 | whose name does not start with the host triplet. If you think this |
| 2444 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2445 | ac_tool_warned=yes ;; |
| 2446 | esac |
| 2447 | CC=$ac_ct_CC |
| 2448 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2449 | else |
| 2450 | CC="$ac_cv_prog_CC" |
| 2451 | fi |
| 2452 | |
| 2453 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2454 | if test -n "$ac_tool_prefix"; then |
| 2455 | # 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] | 2456 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2457 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2459 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2461 | else |
| 2462 | if test -n "$CC"; then |
| 2463 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2464 | else |
| 2465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2466 | for as_dir in $PATH |
| 2467 | do |
| 2468 | IFS=$as_save_IFS |
| 2469 | test -z "$as_dir" && as_dir=. |
| 2470 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2471 | 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] | 2472 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2474 | break 2 |
| 2475 | fi |
| 2476 | done |
| 2477 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2478 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2479 | |
| 2480 | fi |
| 2481 | fi |
| 2482 | CC=$ac_cv_prog_CC |
| 2483 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2484 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2485 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2486 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2487 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2488 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2489 | fi |
| 2490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2491 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2492 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2493 | fi |
| 2494 | if test -z "$CC"; then |
| 2495 | # Extract the first word of "cc", so it can be a program name with args. |
| 2496 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2497 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2499 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2501 | else |
| 2502 | if test -n "$CC"; then |
| 2503 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2504 | else |
| 2505 | ac_prog_rejected=no |
| 2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2507 | for as_dir in $PATH |
| 2508 | do |
| 2509 | IFS=$as_save_IFS |
| 2510 | test -z "$as_dir" && as_dir=. |
| 2511 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2512 | 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] | 2513 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2514 | ac_prog_rejected=yes |
| 2515 | continue |
| 2516 | fi |
| 2517 | ac_cv_prog_CC="cc" |
| 2518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2519 | break 2 |
| 2520 | fi |
| 2521 | done |
| 2522 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2523 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2524 | |
| 2525 | if test $ac_prog_rejected = yes; then |
| 2526 | # We found a bogon in the path, so make sure we never use it. |
| 2527 | set dummy $ac_cv_prog_CC |
| 2528 | shift |
| 2529 | if test $# != 0; then |
| 2530 | # We chose a different compiler from the bogus one. |
| 2531 | # However, it has the same basename, so the bogon will be chosen |
| 2532 | # first if we set CC to just the basename; use the full file name. |
| 2533 | shift |
| 2534 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2535 | fi |
| 2536 | fi |
| 2537 | fi |
| 2538 | fi |
| 2539 | CC=$ac_cv_prog_CC |
| 2540 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2541 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2542 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2543 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2544 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2545 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2546 | fi |
| 2547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2548 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2549 | fi |
| 2550 | if test -z "$CC"; then |
| 2551 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2552 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2553 | do |
| 2554 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2555 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2556 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2558 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2560 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2561 | if test -n "$CC"; then |
| 2562 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2563 | else |
| 2564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2565 | for as_dir in $PATH |
| 2566 | do |
| 2567 | IFS=$as_save_IFS |
| 2568 | test -z "$as_dir" && as_dir=. |
| 2569 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2570 | 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] | 2571 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2573 | break 2 |
| 2574 | fi |
| 2575 | done |
| 2576 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2577 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2578 | |
| 2579 | fi |
| 2580 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2581 | CC=$ac_cv_prog_CC |
| 2582 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2583 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2584 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2585 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2587 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2588 | fi |
| 2589 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2590 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2591 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2592 | done |
| 2593 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2594 | if test -z "$CC"; then |
| 2595 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2596 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2597 | do |
| 2598 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2599 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2600 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2602 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2604 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2605 | if test -n "$ac_ct_CC"; then |
| 2606 | 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] | 2607 | else |
| 2608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2609 | for as_dir in $PATH |
| 2610 | do |
| 2611 | IFS=$as_save_IFS |
| 2612 | test -z "$as_dir" && as_dir=. |
| 2613 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2614 | 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] | 2615 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2617 | break 2 |
| 2618 | fi |
| 2619 | done |
| 2620 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2621 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2622 | |
| 2623 | fi |
| 2624 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2625 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2626 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2627 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2628 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2629 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2630 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2631 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | fi |
| 2633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2634 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2635 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2636 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2637 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2638 | if test "x$ac_ct_CC" = x; then |
| 2639 | CC="" |
| 2640 | else |
| 2641 | case $cross_compiling:$ac_tool_warned in |
| 2642 | yes:) |
| 2643 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2644 | whose name does not start with the host triplet. If you think this |
| 2645 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2646 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2647 | whose name does not start with the host triplet. If you think this |
| 2648 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2649 | ac_tool_warned=yes ;; |
| 2650 | esac |
| 2651 | CC=$ac_ct_CC |
| 2652 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2653 | fi |
| 2654 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2655 | fi |
| 2656 | |
| 2657 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2658 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2659 | See \`config.log' for more details." >&5 |
| 2660 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2661 | See \`config.log' for more details." >&2;} |
| 2662 | { (exit 1); exit 1; }; } |
| 2663 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2664 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2665 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2666 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2667 | { (ac_try="$ac_compiler --version >&5" |
| 2668 | case "(($ac_try" in |
| 2669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2670 | *) ac_try_echo=$ac_try;; |
| 2671 | esac |
| 2672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2673 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2674 | ac_status=$? |
| 2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2676 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2677 | { (ac_try="$ac_compiler -v >&5" |
| 2678 | case "(($ac_try" in |
| 2679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2680 | *) ac_try_echo=$ac_try;; |
| 2681 | esac |
| 2682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2683 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2684 | ac_status=$? |
| 2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2686 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2687 | { (ac_try="$ac_compiler -V >&5" |
| 2688 | case "(($ac_try" in |
| 2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2690 | *) ac_try_echo=$ac_try;; |
| 2691 | esac |
| 2692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2693 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2694 | ac_status=$? |
| 2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2696 | (exit $ac_status); } |
| 2697 | |
| 2698 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2699 | /* confdefs.h. */ |
| 2700 | _ACEOF |
| 2701 | cat confdefs.h >>conftest.$ac_ext |
| 2702 | cat >>conftest.$ac_ext <<_ACEOF |
| 2703 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2704 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2705 | int |
| 2706 | main () |
| 2707 | { |
| 2708 | |
| 2709 | ; |
| 2710 | return 0; |
| 2711 | } |
| 2712 | _ACEOF |
| 2713 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2714 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | # Try to create an executable without -o first, disregard a.out. |
| 2716 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2717 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2718 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2719 | 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] | 2720 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2721 | # |
| 2722 | # List of possible output files, starting from the most likely. |
| 2723 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2724 | # only as a last resort. b.out is created by i960 compilers. |
| 2725 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2726 | # |
| 2727 | # The IRIX 6 linker writes into existing files which may not be |
| 2728 | # executable, retaining their permissions. Remove them first so a |
| 2729 | # subsequent execution test works. |
| 2730 | ac_rmfiles= |
| 2731 | for ac_file in $ac_files |
| 2732 | do |
| 2733 | case $ac_file in |
| 2734 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2735 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2736 | esac |
| 2737 | done |
| 2738 | rm -f $ac_rmfiles |
| 2739 | |
| 2740 | if { (ac_try="$ac_link_default" |
| 2741 | case "(($ac_try" in |
| 2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2743 | *) ac_try_echo=$ac_try;; |
| 2744 | esac |
| 2745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2746 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2747 | ac_status=$? |
| 2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2749 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2750 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2751 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2752 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2753 | # so that the user can short-circuit this test for compilers unknown to |
| 2754 | # Autoconf. |
| 2755 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2756 | do |
| 2757 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2758 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2759 | *.$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] | 2760 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2761 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2762 | # We found the default executable, but exeext='' is most |
| 2763 | # certainly right. |
| 2764 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2765 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2766 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2767 | then :; else |
| 2768 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2769 | fi |
| 2770 | # We set ac_cv_exeext here because the later test for it is not |
| 2771 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2772 | # argument, so we may need to know it at that point already. |
| 2773 | # Even if this section looks crufty: it has the advantage of |
| 2774 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2775 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2776 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2777 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2778 | esac |
| 2779 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2780 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2781 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2782 | else |
| 2783 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2785 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2786 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2787 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2788 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2789 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2790 | { (exit 77); exit 77; }; } |
| 2791 | fi |
| 2792 | |
| 2793 | ac_exeext=$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2794 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2795 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2796 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2797 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2798 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2799 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2800 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2801 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2802 | # If not cross compiling, check that we can run a simple program. |
| 2803 | if test "$cross_compiling" != yes; then |
| 2804 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2805 | { (case "(($ac_try" in |
| 2806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2807 | *) ac_try_echo=$ac_try;; |
| 2808 | esac |
| 2809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2810 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2811 | ac_status=$? |
| 2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2813 | (exit $ac_status); }; }; then |
| 2814 | cross_compiling=no |
| 2815 | else |
| 2816 | if test "$cross_compiling" = maybe; then |
| 2817 | cross_compiling=yes |
| 2818 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2819 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2820 | If you meant to cross compile, use \`--host'. |
| 2821 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2822 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2823 | If you meant to cross compile, use \`--host'. |
| 2824 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2825 | { (exit 1); exit 1; }; } |
| 2826 | fi |
| 2827 | fi |
| 2828 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2829 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2830 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2831 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2832 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2833 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2834 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2835 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2836 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2837 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2838 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2839 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2841 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2842 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2843 | if { (ac_try="$ac_link" |
| 2844 | case "(($ac_try" in |
| 2845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2846 | *) ac_try_echo=$ac_try;; |
| 2847 | esac |
| 2848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2849 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2850 | ac_status=$? |
| 2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2852 | (exit $ac_status); }; then |
| 2853 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2854 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2855 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2856 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2857 | for ac_file in conftest.exe conftest conftest.*; do |
| 2858 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2859 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2860 | *.$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] | 2861 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2862 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2863 | * ) break;; |
| 2864 | esac |
| 2865 | done |
| 2866 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2867 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2868 | See \`config.log' for more details." >&5 |
| 2869 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2870 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2871 | { (exit 1); exit 1; }; } |
| 2872 | fi |
| 2873 | |
| 2874 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2875 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2876 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2877 | |
| 2878 | rm -f conftest.$ac_ext |
| 2879 | EXEEXT=$ac_cv_exeext |
| 2880 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2881 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2882 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2883 | if test "${ac_cv_objext+set}" = set; then |
| 2884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2885 | else |
| 2886 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2887 | /* confdefs.h. */ |
| 2888 | _ACEOF |
| 2889 | cat confdefs.h >>conftest.$ac_ext |
| 2890 | cat >>conftest.$ac_ext <<_ACEOF |
| 2891 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2893 | int |
| 2894 | main () |
| 2895 | { |
| 2896 | |
| 2897 | ; |
| 2898 | return 0; |
| 2899 | } |
| 2900 | _ACEOF |
| 2901 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2902 | if { (ac_try="$ac_compile" |
| 2903 | case "(($ac_try" in |
| 2904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2905 | *) ac_try_echo=$ac_try;; |
| 2906 | esac |
| 2907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2908 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2909 | ac_status=$? |
| 2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2911 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2912 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2913 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2914 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2915 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2916 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2917 | break;; |
| 2918 | esac |
| 2919 | done |
| 2920 | else |
| 2921 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2923 | |
| 2924 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2925 | See \`config.log' for more details." >&5 |
| 2926 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2927 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2928 | { (exit 1); exit 1; }; } |
| 2929 | fi |
| 2930 | |
| 2931 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2932 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2933 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2934 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2935 | OBJEXT=$ac_cv_objext |
| 2936 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2937 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2938 | 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] | 2939 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2941 | else |
| 2942 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2943 | /* confdefs.h. */ |
| 2944 | _ACEOF |
| 2945 | cat confdefs.h >>conftest.$ac_ext |
| 2946 | cat >>conftest.$ac_ext <<_ACEOF |
| 2947 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2948 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | int |
| 2950 | main () |
| 2951 | { |
| 2952 | #ifndef __GNUC__ |
| 2953 | choke me |
| 2954 | #endif |
| 2955 | |
| 2956 | ; |
| 2957 | return 0; |
| 2958 | } |
| 2959 | _ACEOF |
| 2960 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2961 | if { (ac_try="$ac_compile" |
| 2962 | case "(($ac_try" in |
| 2963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2964 | *) ac_try_echo=$ac_try;; |
| 2965 | esac |
| 2966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2967 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2968 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2970 | rm -f conftest.er1 |
| 2971 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2973 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2975 | { (case "(($ac_try" in |
| 2976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2977 | *) ac_try_echo=$ac_try;; |
| 2978 | esac |
| 2979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2980 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2981 | ac_status=$? |
| 2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2983 | (exit $ac_status); }; } && |
| 2984 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2985 | { (case "(($ac_try" in |
| 2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2987 | *) ac_try_echo=$ac_try;; |
| 2988 | esac |
| 2989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2990 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2991 | ac_status=$? |
| 2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2993 | (exit $ac_status); }; }; then |
| 2994 | ac_compiler_gnu=yes |
| 2995 | else |
| 2996 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2999 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3000 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3001 | |
| 3002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3003 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3004 | |
| 3005 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3006 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3007 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3008 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3009 | ac_test_CFLAGS=${CFLAGS+set} |
| 3010 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3011 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3012 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3013 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3015 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3016 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3017 | ac_c_werror_flag=yes |
| 3018 | ac_cv_prog_cc_g=no |
| 3019 | CFLAGS="-g" |
| 3020 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3021 | /* confdefs.h. */ |
| 3022 | _ACEOF |
| 3023 | cat confdefs.h >>conftest.$ac_ext |
| 3024 | cat >>conftest.$ac_ext <<_ACEOF |
| 3025 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3026 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3027 | int |
| 3028 | main () |
| 3029 | { |
| 3030 | |
| 3031 | ; |
| 3032 | return 0; |
| 3033 | } |
| 3034 | _ACEOF |
| 3035 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3036 | if { (ac_try="$ac_compile" |
| 3037 | case "(($ac_try" in |
| 3038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3039 | *) ac_try_echo=$ac_try;; |
| 3040 | esac |
| 3041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3042 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3043 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3045 | rm -f conftest.er1 |
| 3046 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3048 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3050 | { (case "(($ac_try" in |
| 3051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3052 | *) ac_try_echo=$ac_try;; |
| 3053 | esac |
| 3054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3055 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3056 | ac_status=$? |
| 3057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3058 | (exit $ac_status); }; } && |
| 3059 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3060 | { (case "(($ac_try" in |
| 3061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3062 | *) ac_try_echo=$ac_try;; |
| 3063 | esac |
| 3064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3065 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3066 | ac_status=$? |
| 3067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3068 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3069 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3070 | else |
| 3071 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3074 | CFLAGS="" |
| 3075 | cat >conftest.$ac_ext <<_ACEOF |
| 3076 | /* confdefs.h. */ |
| 3077 | _ACEOF |
| 3078 | cat confdefs.h >>conftest.$ac_ext |
| 3079 | cat >>conftest.$ac_ext <<_ACEOF |
| 3080 | /* end confdefs.h. */ |
| 3081 | |
| 3082 | int |
| 3083 | main () |
| 3084 | { |
| 3085 | |
| 3086 | ; |
| 3087 | return 0; |
| 3088 | } |
| 3089 | _ACEOF |
| 3090 | rm -f conftest.$ac_objext |
| 3091 | if { (ac_try="$ac_compile" |
| 3092 | case "(($ac_try" in |
| 3093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3094 | *) ac_try_echo=$ac_try;; |
| 3095 | esac |
| 3096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3097 | (eval "$ac_compile") 2>conftest.er1 |
| 3098 | ac_status=$? |
| 3099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3100 | rm -f conftest.er1 |
| 3101 | cat conftest.err >&5 |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); } && |
| 3104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3105 | { (case "(($ac_try" in |
| 3106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3107 | *) ac_try_echo=$ac_try;; |
| 3108 | esac |
| 3109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3110 | (eval "$ac_try") 2>&5 |
| 3111 | ac_status=$? |
| 3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3113 | (exit $ac_status); }; } && |
| 3114 | { ac_try='test -s conftest.$ac_objext' |
| 3115 | { (case "(($ac_try" in |
| 3116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3117 | *) ac_try_echo=$ac_try;; |
| 3118 | esac |
| 3119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3120 | (eval "$ac_try") 2>&5 |
| 3121 | ac_status=$? |
| 3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3123 | (exit $ac_status); }; }; then |
| 3124 | : |
| 3125 | else |
| 3126 | echo "$as_me: failed program was:" >&5 |
| 3127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3128 | |
| 3129 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3130 | CFLAGS="-g" |
| 3131 | cat >conftest.$ac_ext <<_ACEOF |
| 3132 | /* confdefs.h. */ |
| 3133 | _ACEOF |
| 3134 | cat confdefs.h >>conftest.$ac_ext |
| 3135 | cat >>conftest.$ac_ext <<_ACEOF |
| 3136 | /* end confdefs.h. */ |
| 3137 | |
| 3138 | int |
| 3139 | main () |
| 3140 | { |
| 3141 | |
| 3142 | ; |
| 3143 | return 0; |
| 3144 | } |
| 3145 | _ACEOF |
| 3146 | rm -f conftest.$ac_objext |
| 3147 | if { (ac_try="$ac_compile" |
| 3148 | case "(($ac_try" in |
| 3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3150 | *) ac_try_echo=$ac_try;; |
| 3151 | esac |
| 3152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3153 | (eval "$ac_compile") 2>conftest.er1 |
| 3154 | ac_status=$? |
| 3155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3156 | rm -f conftest.er1 |
| 3157 | cat conftest.err >&5 |
| 3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3159 | (exit $ac_status); } && |
| 3160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3161 | { (case "(($ac_try" in |
| 3162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3163 | *) ac_try_echo=$ac_try;; |
| 3164 | esac |
| 3165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3166 | (eval "$ac_try") 2>&5 |
| 3167 | ac_status=$? |
| 3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3169 | (exit $ac_status); }; } && |
| 3170 | { ac_try='test -s conftest.$ac_objext' |
| 3171 | { (case "(($ac_try" in |
| 3172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3173 | *) ac_try_echo=$ac_try;; |
| 3174 | esac |
| 3175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3176 | (eval "$ac_try") 2>&5 |
| 3177 | ac_status=$? |
| 3178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3179 | (exit $ac_status); }; }; then |
| 3180 | ac_cv_prog_cc_g=yes |
| 3181 | else |
| 3182 | echo "$as_me: failed program was:" >&5 |
| 3183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3184 | |
| 3185 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3186 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3187 | |
| 3188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3189 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3190 | |
| 3191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3192 | fi |
| 3193 | |
| 3194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3195 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3196 | fi |
| 3197 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3198 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3199 | if test "$ac_test_CFLAGS" = set; then |
| 3200 | CFLAGS=$ac_save_CFLAGS |
| 3201 | elif test $ac_cv_prog_cc_g = yes; then |
| 3202 | if test "$GCC" = yes; then |
| 3203 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3204 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3205 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3206 | fi |
| 3207 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3208 | if test "$GCC" = yes; then |
| 3209 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3210 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3211 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3212 | fi |
| 3213 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3214 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3215 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3216 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3218 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3219 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3220 | ac_save_CC=$CC |
| 3221 | cat >conftest.$ac_ext <<_ACEOF |
| 3222 | /* confdefs.h. */ |
| 3223 | _ACEOF |
| 3224 | cat confdefs.h >>conftest.$ac_ext |
| 3225 | cat >>conftest.$ac_ext <<_ACEOF |
| 3226 | /* end confdefs.h. */ |
| 3227 | #include <stdarg.h> |
| 3228 | #include <stdio.h> |
| 3229 | #include <sys/types.h> |
| 3230 | #include <sys/stat.h> |
| 3231 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3232 | struct buf { int x; }; |
| 3233 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3234 | static char *e (p, i) |
| 3235 | char **p; |
| 3236 | int i; |
| 3237 | { |
| 3238 | return p[i]; |
| 3239 | } |
| 3240 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3241 | { |
| 3242 | char *s; |
| 3243 | va_list v; |
| 3244 | va_start (v,p); |
| 3245 | s = g (p, va_arg (v,int)); |
| 3246 | va_end (v); |
| 3247 | return s; |
| 3248 | } |
| 3249 | |
| 3250 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3251 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3252 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3253 | 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] | 3254 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3255 | 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] | 3256 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3257 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3258 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3259 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3260 | inside strings and character constants. */ |
| 3261 | #define FOO(x) 'x' |
| 3262 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3263 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3264 | int test (int i, double x); |
| 3265 | struct s1 {int (*f) (int a);}; |
| 3266 | struct s2 {int (*f) (double a);}; |
| 3267 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3268 | int argc; |
| 3269 | char **argv; |
| 3270 | int |
| 3271 | main () |
| 3272 | { |
| 3273 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3274 | ; |
| 3275 | return 0; |
| 3276 | } |
| 3277 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3278 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3279 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3280 | do |
| 3281 | CC="$ac_save_CC $ac_arg" |
| 3282 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3283 | if { (ac_try="$ac_compile" |
| 3284 | case "(($ac_try" in |
| 3285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3286 | *) ac_try_echo=$ac_try;; |
| 3287 | esac |
| 3288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3289 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3290 | ac_status=$? |
| 3291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3292 | rm -f conftest.er1 |
| 3293 | cat conftest.err >&5 |
| 3294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3295 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3297 | { (case "(($ac_try" in |
| 3298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3299 | *) ac_try_echo=$ac_try;; |
| 3300 | esac |
| 3301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3302 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3303 | ac_status=$? |
| 3304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3305 | (exit $ac_status); }; } && |
| 3306 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3307 | { (case "(($ac_try" in |
| 3308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3309 | *) ac_try_echo=$ac_try;; |
| 3310 | esac |
| 3311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3312 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3313 | ac_status=$? |
| 3314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3315 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3316 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3317 | else |
| 3318 | echo "$as_me: failed program was:" >&5 |
| 3319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3321 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3322 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3323 | |
| 3324 | rm -f core conftest.err conftest.$ac_objext |
| 3325 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3326 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3327 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3328 | CC=$ac_save_CC |
| 3329 | |
| 3330 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3331 | # AC_CACHE_VAL |
| 3332 | case "x$ac_cv_prog_cc_c89" in |
| 3333 | x) |
| 3334 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3335 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3336 | xno) |
| 3337 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3338 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3339 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3340 | CC="$CC $ac_cv_prog_cc_c89" |
| 3341 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3342 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3343 | esac |
| 3344 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3345 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3346 | ac_ext=c |
| 3347 | ac_cpp='$CPP $CPPFLAGS' |
| 3348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3351 | |
| 3352 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3353 | ac_ext=c |
| 3354 | ac_cpp='$CPP $CPPFLAGS' |
| 3355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3358 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3359 | 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] | 3360 | # On Suns, sometimes $CPP names a directory. |
| 3361 | if test -n "$CPP" && test -d "$CPP"; then |
| 3362 | CPP= |
| 3363 | fi |
| 3364 | if test -z "$CPP"; then |
| 3365 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3367 | else |
| 3368 | # Double quotes because CPP needs to be expanded |
| 3369 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3370 | do |
| 3371 | ac_preproc_ok=false |
| 3372 | for ac_c_preproc_warn_flag in '' yes |
| 3373 | do |
| 3374 | # Use a header file that comes with gcc, so configuring glibc |
| 3375 | # with a fresh cross-compiler works. |
| 3376 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3377 | # <limits.h> exists even on freestanding compilers. |
| 3378 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3379 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3380 | cat >conftest.$ac_ext <<_ACEOF |
| 3381 | /* confdefs.h. */ |
| 3382 | _ACEOF |
| 3383 | cat confdefs.h >>conftest.$ac_ext |
| 3384 | cat >>conftest.$ac_ext <<_ACEOF |
| 3385 | /* end confdefs.h. */ |
| 3386 | #ifdef __STDC__ |
| 3387 | # include <limits.h> |
| 3388 | #else |
| 3389 | # include <assert.h> |
| 3390 | #endif |
| 3391 | Syntax error |
| 3392 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3393 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3394 | case "(($ac_try" in |
| 3395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3396 | *) ac_try_echo=$ac_try;; |
| 3397 | esac |
| 3398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3399 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3400 | ac_status=$? |
| 3401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3402 | rm -f conftest.er1 |
| 3403 | cat conftest.err >&5 |
| 3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3405 | (exit $ac_status); } >/dev/null; then |
| 3406 | if test -s conftest.err; then |
| 3407 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3408 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3409 | else |
| 3410 | ac_cpp_err= |
| 3411 | fi |
| 3412 | else |
| 3413 | ac_cpp_err=yes |
| 3414 | fi |
| 3415 | if test -z "$ac_cpp_err"; then |
| 3416 | : |
| 3417 | else |
| 3418 | echo "$as_me: failed program was:" >&5 |
| 3419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3420 | |
| 3421 | # Broken: fails on valid input. |
| 3422 | continue |
| 3423 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3424 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3425 | rm -f conftest.err conftest.$ac_ext |
| 3426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3427 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3428 | # can be detected and how. |
| 3429 | cat >conftest.$ac_ext <<_ACEOF |
| 3430 | /* confdefs.h. */ |
| 3431 | _ACEOF |
| 3432 | cat confdefs.h >>conftest.$ac_ext |
| 3433 | cat >>conftest.$ac_ext <<_ACEOF |
| 3434 | /* end confdefs.h. */ |
| 3435 | #include <ac_nonexistent.h> |
| 3436 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3437 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3438 | case "(($ac_try" in |
| 3439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3440 | *) ac_try_echo=$ac_try;; |
| 3441 | esac |
| 3442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3443 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3444 | ac_status=$? |
| 3445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3446 | rm -f conftest.er1 |
| 3447 | cat conftest.err >&5 |
| 3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3449 | (exit $ac_status); } >/dev/null; then |
| 3450 | if test -s conftest.err; then |
| 3451 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3452 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3453 | else |
| 3454 | ac_cpp_err= |
| 3455 | fi |
| 3456 | else |
| 3457 | ac_cpp_err=yes |
| 3458 | fi |
| 3459 | if test -z "$ac_cpp_err"; then |
| 3460 | # Broken: success on invalid input. |
| 3461 | continue |
| 3462 | else |
| 3463 | echo "$as_me: failed program was:" >&5 |
| 3464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3465 | |
| 3466 | # Passes both tests. |
| 3467 | ac_preproc_ok=: |
| 3468 | break |
| 3469 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3470 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3471 | rm -f conftest.err conftest.$ac_ext |
| 3472 | |
| 3473 | done |
| 3474 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3475 | rm -f conftest.err conftest.$ac_ext |
| 3476 | if $ac_preproc_ok; then |
| 3477 | break |
| 3478 | fi |
| 3479 | |
| 3480 | done |
| 3481 | ac_cv_prog_CPP=$CPP |
| 3482 | |
| 3483 | fi |
| 3484 | CPP=$ac_cv_prog_CPP |
| 3485 | else |
| 3486 | ac_cv_prog_CPP=$CPP |
| 3487 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3488 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3489 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3490 | ac_preproc_ok=false |
| 3491 | for ac_c_preproc_warn_flag in '' yes |
| 3492 | do |
| 3493 | # Use a header file that comes with gcc, so configuring glibc |
| 3494 | # with a fresh cross-compiler works. |
| 3495 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3496 | # <limits.h> exists even on freestanding compilers. |
| 3497 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3498 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3499 | cat >conftest.$ac_ext <<_ACEOF |
| 3500 | /* confdefs.h. */ |
| 3501 | _ACEOF |
| 3502 | cat confdefs.h >>conftest.$ac_ext |
| 3503 | cat >>conftest.$ac_ext <<_ACEOF |
| 3504 | /* end confdefs.h. */ |
| 3505 | #ifdef __STDC__ |
| 3506 | # include <limits.h> |
| 3507 | #else |
| 3508 | # include <assert.h> |
| 3509 | #endif |
| 3510 | Syntax error |
| 3511 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3512 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3513 | case "(($ac_try" in |
| 3514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3515 | *) ac_try_echo=$ac_try;; |
| 3516 | esac |
| 3517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3518 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3519 | ac_status=$? |
| 3520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3521 | rm -f conftest.er1 |
| 3522 | cat conftest.err >&5 |
| 3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3524 | (exit $ac_status); } >/dev/null; then |
| 3525 | if test -s conftest.err; then |
| 3526 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3527 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3528 | else |
| 3529 | ac_cpp_err= |
| 3530 | fi |
| 3531 | else |
| 3532 | ac_cpp_err=yes |
| 3533 | fi |
| 3534 | if test -z "$ac_cpp_err"; then |
| 3535 | : |
| 3536 | else |
| 3537 | echo "$as_me: failed program was:" >&5 |
| 3538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3539 | |
| 3540 | # Broken: fails on valid input. |
| 3541 | continue |
| 3542 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3543 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3544 | rm -f conftest.err conftest.$ac_ext |
| 3545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3546 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3547 | # can be detected and how. |
| 3548 | cat >conftest.$ac_ext <<_ACEOF |
| 3549 | /* confdefs.h. */ |
| 3550 | _ACEOF |
| 3551 | cat confdefs.h >>conftest.$ac_ext |
| 3552 | cat >>conftest.$ac_ext <<_ACEOF |
| 3553 | /* end confdefs.h. */ |
| 3554 | #include <ac_nonexistent.h> |
| 3555 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3556 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3557 | case "(($ac_try" in |
| 3558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3559 | *) ac_try_echo=$ac_try;; |
| 3560 | esac |
| 3561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3562 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3563 | ac_status=$? |
| 3564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3565 | rm -f conftest.er1 |
| 3566 | cat conftest.err >&5 |
| 3567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3568 | (exit $ac_status); } >/dev/null; then |
| 3569 | if test -s conftest.err; then |
| 3570 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3572 | else |
| 3573 | ac_cpp_err= |
| 3574 | fi |
| 3575 | else |
| 3576 | ac_cpp_err=yes |
| 3577 | fi |
| 3578 | if test -z "$ac_cpp_err"; then |
| 3579 | # Broken: success on invalid input. |
| 3580 | continue |
| 3581 | else |
| 3582 | echo "$as_me: failed program was:" >&5 |
| 3583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3584 | |
| 3585 | # Passes both tests. |
| 3586 | ac_preproc_ok=: |
| 3587 | break |
| 3588 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3589 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3590 | rm -f conftest.err conftest.$ac_ext |
| 3591 | |
| 3592 | done |
| 3593 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3594 | rm -f conftest.err conftest.$ac_ext |
| 3595 | if $ac_preproc_ok; then |
| 3596 | : |
| 3597 | else |
| 3598 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3599 | See \`config.log' for more details." >&5 |
| 3600 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3601 | See \`config.log' for more details." >&2;} |
| 3602 | { (exit 1); exit 1; }; } |
| 3603 | fi |
| 3604 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3605 | ac_ext=c |
| 3606 | ac_cpp='$CPP $CPPFLAGS' |
| 3607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3610 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3612 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3613 | 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] | 3614 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3616 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3617 | # Extract the first word of "grep ggrep" to use in msg output |
| 3618 | if test -z "$GREP"; then |
| 3619 | set dummy grep ggrep; ac_prog_name=$2 |
| 3620 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3622 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3623 | ac_path_GREP_found=false |
| 3624 | # 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] | 3625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3626 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3627 | do |
| 3628 | IFS=$as_save_IFS |
| 3629 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3630 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3631 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3632 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3633 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3634 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3635 | # Check for GNU $ac_path_GREP |
| 3636 | case `"$ac_path_GREP" --version 2>&1` in |
| 3637 | *GNU*) |
| 3638 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3639 | *) |
| 3640 | ac_count=0 |
| 3641 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3642 | while : |
| 3643 | do |
| 3644 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3645 | mv "conftest.tmp" "conftest.in" |
| 3646 | cp "conftest.in" "conftest.nl" |
| 3647 | echo 'GREP' >> "conftest.nl" |
| 3648 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3649 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3650 | ac_count=`expr $ac_count + 1` |
| 3651 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3652 | # Best one so far, save it but keep looking for a better one |
| 3653 | ac_cv_path_GREP="$ac_path_GREP" |
| 3654 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3655 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3656 | # 10*(2^10) chars as input seems more than enough |
| 3657 | test $ac_count -gt 10 && break |
| 3658 | done |
| 3659 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3660 | esac |
| 3661 | |
| 3662 | |
| 3663 | $ac_path_GREP_found && break 3 |
| 3664 | done |
| 3665 | done |
| 3666 | |
| 3667 | done |
| 3668 | IFS=$as_save_IFS |
| 3669 | |
| 3670 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3671 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3672 | |
| 3673 | GREP="$ac_cv_path_GREP" |
| 3674 | if test -z "$GREP"; then |
| 3675 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3676 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3677 | { (exit 1); exit 1; }; } |
| 3678 | fi |
| 3679 | |
| 3680 | else |
| 3681 | ac_cv_path_GREP=$GREP |
| 3682 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3683 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3685 | fi |
| 3686 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3687 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3688 | GREP="$ac_cv_path_GREP" |
| 3689 | |
| 3690 | |
| 3691 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3692 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3693 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3695 | else |
| 3696 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3697 | then ac_cv_path_EGREP="$GREP -E" |
| 3698 | else |
| 3699 | # Extract the first word of "egrep" to use in msg output |
| 3700 | if test -z "$EGREP"; then |
| 3701 | set dummy egrep; ac_prog_name=$2 |
| 3702 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3704 | else |
| 3705 | ac_path_EGREP_found=false |
| 3706 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3708 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3709 | do |
| 3710 | IFS=$as_save_IFS |
| 3711 | test -z "$as_dir" && as_dir=. |
| 3712 | for ac_prog in egrep; do |
| 3713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3714 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3715 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3716 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3717 | # Check for GNU $ac_path_EGREP |
| 3718 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3719 | *GNU*) |
| 3720 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3721 | *) |
| 3722 | ac_count=0 |
| 3723 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3724 | while : |
| 3725 | do |
| 3726 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3727 | mv "conftest.tmp" "conftest.in" |
| 3728 | cp "conftest.in" "conftest.nl" |
| 3729 | echo 'EGREP' >> "conftest.nl" |
| 3730 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3731 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3732 | ac_count=`expr $ac_count + 1` |
| 3733 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3734 | # Best one so far, save it but keep looking for a better one |
| 3735 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3736 | ac_path_EGREP_max=$ac_count |
| 3737 | fi |
| 3738 | # 10*(2^10) chars as input seems more than enough |
| 3739 | test $ac_count -gt 10 && break |
| 3740 | done |
| 3741 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3742 | esac |
| 3743 | |
| 3744 | |
| 3745 | $ac_path_EGREP_found && break 3 |
| 3746 | done |
| 3747 | done |
| 3748 | |
| 3749 | done |
| 3750 | IFS=$as_save_IFS |
| 3751 | |
| 3752 | |
| 3753 | fi |
| 3754 | |
| 3755 | EGREP="$ac_cv_path_EGREP" |
| 3756 | if test -z "$EGREP"; then |
| 3757 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3758 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3759 | { (exit 1); exit 1; }; } |
| 3760 | fi |
| 3761 | |
| 3762 | else |
| 3763 | ac_cv_path_EGREP=$EGREP |
| 3764 | fi |
| 3765 | |
| 3766 | |
| 3767 | fi |
| 3768 | fi |
| 3769 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3770 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3771 | EGREP="$ac_cv_path_EGREP" |
| 3772 | |
| 3773 | |
| 3774 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3775 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3776 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3778 | else |
| 3779 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3780 | /* confdefs.h. */ |
| 3781 | _ACEOF |
| 3782 | cat confdefs.h >>conftest.$ac_ext |
| 3783 | cat >>conftest.$ac_ext <<_ACEOF |
| 3784 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3785 | #include <stdlib.h> |
| 3786 | #include <stdarg.h> |
| 3787 | #include <string.h> |
| 3788 | #include <float.h> |
| 3789 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3790 | int |
| 3791 | main () |
| 3792 | { |
| 3793 | |
| 3794 | ; |
| 3795 | return 0; |
| 3796 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3797 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3798 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3799 | if { (ac_try="$ac_compile" |
| 3800 | case "(($ac_try" in |
| 3801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3802 | *) ac_try_echo=$ac_try;; |
| 3803 | esac |
| 3804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3805 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3806 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3808 | rm -f conftest.er1 |
| 3809 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3811 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3813 | { (case "(($ac_try" in |
| 3814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3815 | *) ac_try_echo=$ac_try;; |
| 3816 | esac |
| 3817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3818 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3819 | ac_status=$? |
| 3820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3821 | (exit $ac_status); }; } && |
| 3822 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3823 | { (case "(($ac_try" in |
| 3824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3825 | *) ac_try_echo=$ac_try;; |
| 3826 | esac |
| 3827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3828 | (eval "$ac_try") 2>&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3829 | ac_status=$? |
| 3830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3831 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3832 | ac_cv_header_stdc=yes |
| 3833 | else |
| 3834 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3837 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3838 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3839 | |
| 3840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3841 | |
| 3842 | if test $ac_cv_header_stdc = yes; then |
| 3843 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3844 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3845 | /* confdefs.h. */ |
| 3846 | _ACEOF |
| 3847 | cat confdefs.h >>conftest.$ac_ext |
| 3848 | cat >>conftest.$ac_ext <<_ACEOF |
| 3849 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3850 | #include <string.h> |
| 3851 | |
| 3852 | _ACEOF |
| 3853 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3854 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3855 | : |
| 3856 | else |
| 3857 | ac_cv_header_stdc=no |
| 3858 | fi |
| 3859 | rm -f conftest* |
| 3860 | |
| 3861 | fi |
| 3862 | |
| 3863 | if test $ac_cv_header_stdc = yes; then |
| 3864 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3865 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3866 | /* confdefs.h. */ |
| 3867 | _ACEOF |
| 3868 | cat confdefs.h >>conftest.$ac_ext |
| 3869 | cat >>conftest.$ac_ext <<_ACEOF |
| 3870 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3871 | #include <stdlib.h> |
| 3872 | |
| 3873 | _ACEOF |
| 3874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3875 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3876 | : |
| 3877 | else |
| 3878 | ac_cv_header_stdc=no |
| 3879 | fi |
| 3880 | rm -f conftest* |
| 3881 | |
| 3882 | fi |
| 3883 | |
| 3884 | if test $ac_cv_header_stdc = yes; then |
| 3885 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3886 | if test "$cross_compiling" = yes; then |
| 3887 | : |
| 3888 | else |
| 3889 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3890 | /* confdefs.h. */ |
| 3891 | _ACEOF |
| 3892 | cat confdefs.h >>conftest.$ac_ext |
| 3893 | cat >>conftest.$ac_ext <<_ACEOF |
| 3894 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3895 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3896 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3897 | #if ((' ' & 0x0FF) == 0x020) |
| 3898 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3899 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3900 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3901 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3902 | (('a' <= (c) && (c) <= 'i') \ |
| 3903 | || ('j' <= (c) && (c) <= 'r') \ |
| 3904 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3905 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3906 | #endif |
| 3907 | |
| 3908 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3909 | int |
| 3910 | main () |
| 3911 | { |
| 3912 | int i; |
| 3913 | for (i = 0; i < 256; i++) |
| 3914 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3915 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3916 | return 2; |
| 3917 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3918 | } |
| 3919 | _ACEOF |
| 3920 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3921 | if { (ac_try="$ac_link" |
| 3922 | case "(($ac_try" in |
| 3923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3924 | *) ac_try_echo=$ac_try;; |
| 3925 | esac |
| 3926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3927 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3928 | ac_status=$? |
| 3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3931 | { (case "(($ac_try" in |
| 3932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3933 | *) ac_try_echo=$ac_try;; |
| 3934 | esac |
| 3935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3936 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3937 | ac_status=$? |
| 3938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3939 | (exit $ac_status); }; }; then |
| 3940 | : |
| 3941 | else |
| 3942 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3943 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3945 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3946 | ( exit $ac_status ) |
| 3947 | ac_cv_header_stdc=no |
| 3948 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3950 | fi |
| 3951 | |
| 3952 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3953 | fi |
| 3954 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3955 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3956 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3957 | if test $ac_cv_header_stdc = yes; then |
| 3958 | |
| 3959 | cat >>confdefs.h <<\_ACEOF |
| 3960 | #define STDC_HEADERS 1 |
| 3961 | _ACEOF |
| 3962 | |
| 3963 | fi |
| 3964 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3965 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3976 | inttypes.h stdint.h unistd.h |
| 3977 | do |
| 3978 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3979 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3980 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3981 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3983 | else |
| 3984 | cat >conftest.$ac_ext <<_ACEOF |
| 3985 | /* confdefs.h. */ |
| 3986 | _ACEOF |
| 3987 | cat confdefs.h >>conftest.$ac_ext |
| 3988 | cat >>conftest.$ac_ext <<_ACEOF |
| 3989 | /* end confdefs.h. */ |
| 3990 | $ac_includes_default |
| 3991 | |
| 3992 | #include <$ac_header> |
| 3993 | _ACEOF |
| 3994 | rm -f conftest.$ac_objext |
| 3995 | if { (ac_try="$ac_compile" |
| 3996 | case "(($ac_try" in |
| 3997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3998 | *) ac_try_echo=$ac_try;; |
| 3999 | esac |
| 4000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4001 | (eval "$ac_compile") 2>conftest.er1 |
| 4002 | ac_status=$? |
| 4003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4004 | rm -f conftest.er1 |
| 4005 | cat conftest.err >&5 |
| 4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4007 | (exit $ac_status); } && |
| 4008 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4009 | { (case "(($ac_try" in |
| 4010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4011 | *) ac_try_echo=$ac_try;; |
| 4012 | esac |
| 4013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4014 | (eval "$ac_try") 2>&5 |
| 4015 | ac_status=$? |
| 4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4017 | (exit $ac_status); }; } && |
| 4018 | { ac_try='test -s conftest.$ac_objext' |
| 4019 | { (case "(($ac_try" in |
| 4020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4021 | *) ac_try_echo=$ac_try;; |
| 4022 | esac |
| 4023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4024 | (eval "$ac_try") 2>&5 |
| 4025 | ac_status=$? |
| 4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4027 | (exit $ac_status); }; }; then |
| 4028 | eval "$as_ac_Header=yes" |
| 4029 | else |
| 4030 | echo "$as_me: failed program was:" >&5 |
| 4031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4032 | |
| 4033 | eval "$as_ac_Header=no" |
| 4034 | fi |
| 4035 | |
| 4036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4037 | fi |
| 4038 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4039 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4040 | echo "${ECHO_T}$ac_res" >&6; } |
| 4041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4042 | cat >>confdefs.h <<_ACEOF |
| 4043 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4044 | _ACEOF |
| 4045 | |
| 4046 | fi |
| 4047 | |
| 4048 | done |
| 4049 | |
| 4050 | |
| 4051 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4052 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4053 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4055 | else |
| 4056 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4057 | cat >conftest.$ac_ext <<_ACEOF |
| 4058 | /* confdefs.h. */ |
| 4059 | _ACEOF |
| 4060 | cat confdefs.h >>conftest.$ac_ext |
| 4061 | cat >>conftest.$ac_ext <<_ACEOF |
| 4062 | /* end confdefs.h. */ |
| 4063 | #include <sys/types.h> |
| 4064 | #include <sys/param.h> |
| 4065 | |
| 4066 | int |
| 4067 | main () |
| 4068 | { |
| 4069 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4070 | bogus endian macros |
| 4071 | #endif |
| 4072 | |
| 4073 | ; |
| 4074 | return 0; |
| 4075 | } |
| 4076 | _ACEOF |
| 4077 | rm -f conftest.$ac_objext |
| 4078 | if { (ac_try="$ac_compile" |
| 4079 | case "(($ac_try" in |
| 4080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4081 | *) ac_try_echo=$ac_try;; |
| 4082 | esac |
| 4083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4084 | (eval "$ac_compile") 2>conftest.er1 |
| 4085 | ac_status=$? |
| 4086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4087 | rm -f conftest.er1 |
| 4088 | cat conftest.err >&5 |
| 4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4090 | (exit $ac_status); } && |
| 4091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4092 | { (case "(($ac_try" in |
| 4093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4094 | *) ac_try_echo=$ac_try;; |
| 4095 | esac |
| 4096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4097 | (eval "$ac_try") 2>&5 |
| 4098 | ac_status=$? |
| 4099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4100 | (exit $ac_status); }; } && |
| 4101 | { ac_try='test -s conftest.$ac_objext' |
| 4102 | { (case "(($ac_try" in |
| 4103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4104 | *) ac_try_echo=$ac_try;; |
| 4105 | esac |
| 4106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4107 | (eval "$ac_try") 2>&5 |
| 4108 | ac_status=$? |
| 4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4110 | (exit $ac_status); }; }; then |
| 4111 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4112 | cat >conftest.$ac_ext <<_ACEOF |
| 4113 | /* confdefs.h. */ |
| 4114 | _ACEOF |
| 4115 | cat confdefs.h >>conftest.$ac_ext |
| 4116 | cat >>conftest.$ac_ext <<_ACEOF |
| 4117 | /* end confdefs.h. */ |
| 4118 | #include <sys/types.h> |
| 4119 | #include <sys/param.h> |
| 4120 | |
| 4121 | int |
| 4122 | main () |
| 4123 | { |
| 4124 | #if BYTE_ORDER != BIG_ENDIAN |
| 4125 | not big endian |
| 4126 | #endif |
| 4127 | |
| 4128 | ; |
| 4129 | return 0; |
| 4130 | } |
| 4131 | _ACEOF |
| 4132 | rm -f conftest.$ac_objext |
| 4133 | if { (ac_try="$ac_compile" |
| 4134 | case "(($ac_try" in |
| 4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4136 | *) ac_try_echo=$ac_try;; |
| 4137 | esac |
| 4138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4139 | (eval "$ac_compile") 2>conftest.er1 |
| 4140 | ac_status=$? |
| 4141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4142 | rm -f conftest.er1 |
| 4143 | cat conftest.err >&5 |
| 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4145 | (exit $ac_status); } && |
| 4146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4147 | { (case "(($ac_try" in |
| 4148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4149 | *) ac_try_echo=$ac_try;; |
| 4150 | esac |
| 4151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4152 | (eval "$ac_try") 2>&5 |
| 4153 | ac_status=$? |
| 4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4155 | (exit $ac_status); }; } && |
| 4156 | { ac_try='test -s conftest.$ac_objext' |
| 4157 | { (case "(($ac_try" in |
| 4158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4159 | *) ac_try_echo=$ac_try;; |
| 4160 | esac |
| 4161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4162 | (eval "$ac_try") 2>&5 |
| 4163 | ac_status=$? |
| 4164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4165 | (exit $ac_status); }; }; then |
| 4166 | ac_cv_c_bigendian=yes |
| 4167 | else |
| 4168 | echo "$as_me: failed program was:" >&5 |
| 4169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4170 | |
| 4171 | ac_cv_c_bigendian=no |
| 4172 | fi |
| 4173 | |
| 4174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4175 | else |
| 4176 | echo "$as_me: failed program was:" >&5 |
| 4177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4178 | |
| 4179 | # It does not; compile a test program. |
| 4180 | if test "$cross_compiling" = yes; then |
| 4181 | # try to guess the endianness by grepping values into an object file |
| 4182 | ac_cv_c_bigendian=unknown |
| 4183 | cat >conftest.$ac_ext <<_ACEOF |
| 4184 | /* confdefs.h. */ |
| 4185 | _ACEOF |
| 4186 | cat confdefs.h >>conftest.$ac_ext |
| 4187 | cat >>conftest.$ac_ext <<_ACEOF |
| 4188 | /* end confdefs.h. */ |
| 4189 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4190 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4191 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4192 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4193 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4194 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4195 | int |
| 4196 | main () |
| 4197 | { |
| 4198 | _ascii (); _ebcdic (); |
| 4199 | ; |
| 4200 | return 0; |
| 4201 | } |
| 4202 | _ACEOF |
| 4203 | rm -f conftest.$ac_objext |
| 4204 | if { (ac_try="$ac_compile" |
| 4205 | case "(($ac_try" in |
| 4206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4207 | *) ac_try_echo=$ac_try;; |
| 4208 | esac |
| 4209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4210 | (eval "$ac_compile") 2>conftest.er1 |
| 4211 | ac_status=$? |
| 4212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4213 | rm -f conftest.er1 |
| 4214 | cat conftest.err >&5 |
| 4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4216 | (exit $ac_status); } && |
| 4217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4218 | { (case "(($ac_try" in |
| 4219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4220 | *) ac_try_echo=$ac_try;; |
| 4221 | esac |
| 4222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4223 | (eval "$ac_try") 2>&5 |
| 4224 | ac_status=$? |
| 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4226 | (exit $ac_status); }; } && |
| 4227 | { ac_try='test -s conftest.$ac_objext' |
| 4228 | { (case "(($ac_try" in |
| 4229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4230 | *) ac_try_echo=$ac_try;; |
| 4231 | esac |
| 4232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4233 | (eval "$ac_try") 2>&5 |
| 4234 | ac_status=$? |
| 4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4236 | (exit $ac_status); }; }; then |
| 4237 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4238 | ac_cv_c_bigendian=yes |
| 4239 | fi |
| 4240 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4241 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4242 | ac_cv_c_bigendian=no |
| 4243 | else |
| 4244 | # finding both strings is unlikely to happen, but who knows? |
| 4245 | ac_cv_c_bigendian=unknown |
| 4246 | fi |
| 4247 | fi |
| 4248 | else |
| 4249 | echo "$as_me: failed program was:" >&5 |
| 4250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4251 | |
| 4252 | |
| 4253 | fi |
| 4254 | |
| 4255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4256 | else |
| 4257 | cat >conftest.$ac_ext <<_ACEOF |
| 4258 | /* confdefs.h. */ |
| 4259 | _ACEOF |
| 4260 | cat confdefs.h >>conftest.$ac_ext |
| 4261 | cat >>conftest.$ac_ext <<_ACEOF |
| 4262 | /* end confdefs.h. */ |
| 4263 | $ac_includes_default |
| 4264 | int |
| 4265 | main () |
| 4266 | { |
| 4267 | |
| 4268 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4269 | union |
| 4270 | { |
| 4271 | long int l; |
| 4272 | char c[sizeof (long int)]; |
| 4273 | } u; |
| 4274 | u.l = 1; |
| 4275 | return u.c[sizeof (long int) - 1] == 1; |
| 4276 | |
| 4277 | ; |
| 4278 | return 0; |
| 4279 | } |
| 4280 | _ACEOF |
| 4281 | rm -f conftest$ac_exeext |
| 4282 | if { (ac_try="$ac_link" |
| 4283 | case "(($ac_try" in |
| 4284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4285 | *) ac_try_echo=$ac_try;; |
| 4286 | esac |
| 4287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4288 | (eval "$ac_link") 2>&5 |
| 4289 | ac_status=$? |
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4292 | { (case "(($ac_try" in |
| 4293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4294 | *) ac_try_echo=$ac_try;; |
| 4295 | esac |
| 4296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4297 | (eval "$ac_try") 2>&5 |
| 4298 | ac_status=$? |
| 4299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4300 | (exit $ac_status); }; }; then |
| 4301 | ac_cv_c_bigendian=no |
| 4302 | else |
| 4303 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4304 | echo "$as_me: failed program was:" >&5 |
| 4305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4306 | |
| 4307 | ( exit $ac_status ) |
| 4308 | ac_cv_c_bigendian=yes |
| 4309 | fi |
| 4310 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4311 | fi |
| 4312 | |
| 4313 | |
| 4314 | fi |
| 4315 | |
| 4316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4317 | fi |
| 4318 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4319 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4320 | case $ac_cv_c_bigendian in |
| 4321 | yes) |
| 4322 | ENDIAN=big |
| 4323 | ;; |
| 4324 | no) |
| 4325 | ENDIAN=little |
| 4326 | ;; |
| 4327 | *) |
| 4328 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4329 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4330 | echo "$as_me: error: unknown endianness |
| 4331 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4332 | { (exit 1); exit 1; }; } ;; |
| 4333 | esac |
| 4334 | |
| 4335 | |
| 4336 | if test "$cross_compiling" = yes; then |
| 4337 | LLVM_CROSS_COMPILING=1 |
| 4338 | |
| 4339 | |
| 4340 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4341 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4342 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4344 | else |
| 4345 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4346 | ac_cv_build_exeext=.exe |
| 4347 | else |
| 4348 | ac_build_prefix=${build_alias}- |
| 4349 | |
| 4350 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4351 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4352 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4354 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4356 | else |
| 4357 | if test -n "$BUILD_CC"; then |
| 4358 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4359 | else |
| 4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4361 | for as_dir in $PATH |
| 4362 | do |
| 4363 | IFS=$as_save_IFS |
| 4364 | test -z "$as_dir" && as_dir=. |
| 4365 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4367 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4369 | break 2 |
| 4370 | fi |
| 4371 | done |
| 4372 | done |
| 4373 | IFS=$as_save_IFS |
| 4374 | |
| 4375 | fi |
| 4376 | fi |
| 4377 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4378 | if test -n "$BUILD_CC"; then |
| 4379 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4380 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4381 | else |
| 4382 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4383 | echo "${ECHO_T}no" >&6; } |
| 4384 | fi |
| 4385 | |
| 4386 | |
| 4387 | if test -z "$BUILD_CC"; then |
| 4388 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4389 | set dummy gcc; ac_word=$2 |
| 4390 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4392 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4394 | else |
| 4395 | if test -n "$BUILD_CC"; then |
| 4396 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4397 | else |
| 4398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4399 | for as_dir in $PATH |
| 4400 | do |
| 4401 | IFS=$as_save_IFS |
| 4402 | test -z "$as_dir" && as_dir=. |
| 4403 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4405 | ac_cv_prog_BUILD_CC="gcc" |
| 4406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4407 | break 2 |
| 4408 | fi |
| 4409 | done |
| 4410 | done |
| 4411 | IFS=$as_save_IFS |
| 4412 | |
| 4413 | fi |
| 4414 | fi |
| 4415 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4416 | if test -n "$BUILD_CC"; then |
| 4417 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4418 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4419 | else |
| 4420 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4421 | echo "${ECHO_T}no" >&6; } |
| 4422 | fi |
| 4423 | |
| 4424 | |
| 4425 | if test -z "$BUILD_CC"; then |
| 4426 | # Extract the first word of "cc", so it can be a program name with args. |
| 4427 | set dummy cc; ac_word=$2 |
| 4428 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4430 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4432 | else |
| 4433 | if test -n "$BUILD_CC"; then |
| 4434 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4435 | else |
| 4436 | ac_prog_rejected=no |
| 4437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4438 | for as_dir in $PATH |
| 4439 | do |
| 4440 | IFS=$as_save_IFS |
| 4441 | test -z "$as_dir" && as_dir=. |
| 4442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4444 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4445 | ac_prog_rejected=yes |
| 4446 | continue |
| 4447 | fi |
| 4448 | ac_cv_prog_BUILD_CC="cc" |
| 4449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4450 | break 2 |
| 4451 | fi |
| 4452 | done |
| 4453 | done |
| 4454 | IFS=$as_save_IFS |
| 4455 | |
| 4456 | if test $ac_prog_rejected = yes; then |
| 4457 | # We found a bogon in the path, so make sure we never use it. |
| 4458 | set dummy $ac_cv_prog_BUILD_CC |
| 4459 | shift |
| 4460 | if test $# != 0; then |
| 4461 | # We chose a different compiler from the bogus one. |
| 4462 | # However, it has the same basename, so the bogon will be chosen |
| 4463 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4464 | shift |
| 4465 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4466 | fi |
| 4467 | fi |
| 4468 | fi |
| 4469 | fi |
| 4470 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4471 | if test -n "$BUILD_CC"; then |
| 4472 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4473 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4474 | else |
| 4475 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4476 | echo "${ECHO_T}no" >&6; } |
| 4477 | fi |
| 4478 | |
| 4479 | |
| 4480 | fi |
| 4481 | fi |
| 4482 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4483 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4484 | { (exit 1); exit 1; }; } |
| 4485 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4486 | rm -f conftest* |
| 4487 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4488 | ac_cv_build_exeext= |
| 4489 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4490 | (eval $ac_build_link) 2>&5 |
| 4491 | ac_status=$? |
| 4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4493 | (exit $ac_status); }; then |
| 4494 | for file in conftest.*; do |
| 4495 | case $file in |
| 4496 | *.c | *.o | *.obj) ;; |
| 4497 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4498 | esac |
| 4499 | done |
| 4500 | else |
| 4501 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4502 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4503 | { (exit 1); exit 1; }; } |
| 4504 | fi |
| 4505 | rm -f conftest* |
| 4506 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4507 | fi |
| 4508 | fi |
| 4509 | |
| 4510 | BUILD_EXEEXT="" |
| 4511 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4512 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4513 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4514 | ac_build_exeext=$BUILD_EXEEXT |
| 4515 | |
| 4516 | else |
| 4517 | LLVM_CROSS_COMPILING=0 |
| 4518 | |
| 4519 | fi |
| 4520 | |
| 4521 | if test -d "CVS" -o -d "${srcdir}/CVS"; then |
| 4522 | cvsbuild="yes" |
| 4523 | optimize="no" |
| 4524 | CVSBUILD=CVSBUILD=1 |
| 4525 | |
| 4526 | else |
| 4527 | cvsbuild="no" |
| 4528 | optimize="yes" |
| 4529 | fi |
| 4530 | |
| 4531 | |
| 4532 | # Check whether --enable-optimized was given. |
| 4533 | if test "${enable_optimized+set}" = set; then |
| 4534 | enableval=$enable_optimized; |
| 4535 | else |
| 4536 | enableval=$optimize |
| 4537 | fi |
| 4538 | |
| 4539 | if test ${enableval} = "no" ; then |
| 4540 | ENABLE_OPTIMIZED= |
| 4541 | |
| 4542 | else |
| 4543 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4544 | |
| 4545 | fi |
| 4546 | |
| 4547 | # Check whether --enable-assertions was given. |
| 4548 | if test "${enable_assertions+set}" = set; then |
| 4549 | enableval=$enable_assertions; |
| 4550 | else |
| 4551 | enableval="yes" |
| 4552 | fi |
| 4553 | |
| 4554 | if test ${enableval} = "yes" ; then |
| 4555 | DISABLE_ASSERTIONS= |
| 4556 | |
| 4557 | else |
| 4558 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4559 | |
| 4560 | fi |
| 4561 | |
| 4562 | # Check whether --enable-debug-runtime was given. |
| 4563 | if test "${enable_debug_runtime+set}" = set; then |
| 4564 | enableval=$enable_debug_runtime; |
| 4565 | else |
| 4566 | enableval=no |
| 4567 | fi |
| 4568 | |
| 4569 | if test ${enableval} = "no" ; then |
| 4570 | DEBUG_RUNTIME= |
| 4571 | |
| 4572 | else |
| 4573 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4574 | |
| 4575 | fi |
| 4576 | |
| 4577 | # Check whether --enable-jit was given. |
| 4578 | if test "${enable_jit+set}" = set; then |
| 4579 | enableval=$enable_jit; |
| 4580 | else |
| 4581 | enableval=default |
| 4582 | fi |
| 4583 | |
| 4584 | if test ${enableval} = "no" |
| 4585 | then |
| 4586 | JIT= |
| 4587 | |
| 4588 | else |
| 4589 | case "$llvm_cv_target_arch" in |
| 4590 | x86) TARGET_HAS_JIT=1 |
| 4591 | ;; |
| 4592 | Sparc) TARGET_HAS_JIT=1 |
| 4593 | ;; |
| 4594 | PowerPC) TARGET_HAS_JIT=1 |
| 4595 | ;; |
| 4596 | x86_64) TARGET_HAS_JIT=0 |
| 4597 | ;; |
| 4598 | Alpha) TARGET_HAS_JIT=1 |
| 4599 | ;; |
| 4600 | IA64) TARGET_HAS_JIT=0 |
| 4601 | ;; |
| 4602 | *) TARGET_HAS_JIT=0 |
| 4603 | ;; |
| 4604 | esac |
| 4605 | fi |
| 4606 | |
| 4607 | # Check whether --enable-doxygen was given. |
| 4608 | if test "${enable_doxygen+set}" = set; then |
| 4609 | enableval=$enable_doxygen; |
| 4610 | else |
| 4611 | enableval=default |
| 4612 | fi |
| 4613 | |
| 4614 | case "$enableval" in |
| 4615 | yes) ENABLE_DOXYGEN=1 |
| 4616 | ;; |
| 4617 | no) ENABLE_DOXYGEN=0 |
| 4618 | ;; |
| 4619 | default) ENABLE_DOXYGEN=0 |
| 4620 | ;; |
| 4621 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4622 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4623 | { (exit 1); exit 1; }; } ;; |
| 4624 | esac |
| 4625 | |
| 4626 | # Check whether --enable-threads was given. |
| 4627 | if test "${enable_threads+set}" = set; then |
| 4628 | enableval=$enable_threads; |
| 4629 | else |
| 4630 | enableval=yes |
| 4631 | fi |
| 4632 | |
| 4633 | case "$enableval" in |
| 4634 | yes) ENABLE_THREADS=1 |
| 4635 | ;; |
| 4636 | no) ENABLE_THREADS=0 |
| 4637 | ;; |
| 4638 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4639 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4640 | { (exit 1); exit 1; }; } ;; |
| 4641 | esac |
| 4642 | |
| 4643 | cat >>confdefs.h <<_ACEOF |
| 4644 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4645 | _ACEOF |
| 4646 | |
| 4647 | |
| 4648 | TARGETS_TO_BUILD="" |
| 4649 | # Check whether --enable-targets was given. |
| 4650 | if test "${enable_targets+set}" = set; then |
| 4651 | enableval=$enable_targets; |
| 4652 | else |
| 4653 | enableval=all |
| 4654 | fi |
| 4655 | |
| 4656 | case "$enableval" in |
| 4657 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;; |
| 4658 | host-only) |
| 4659 | case "$llvm_cv_target_arch" in |
| 4660 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4661 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4662 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4663 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4664 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4665 | IA64) TARGETS_TO_BUILD="IA64" ;; |
| 4666 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4667 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4668 | { (exit 1); exit 1; }; } ;; |
| 4669 | esac |
| 4670 | ;; |
| 4671 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4672 | case "$a_target" in |
| 4673 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4674 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4675 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4676 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4677 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4678 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
| 4679 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4680 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4681 | { (exit 1); exit 1; }; } ;; |
| 4682 | esac |
| 4683 | done |
| 4684 | ;; |
| 4685 | esac |
| 4686 | TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" |
| 4687 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4688 | |
| 4689 | |
| 4690 | |
| 4691 | # Check whether --with-llvmgccdir was given. |
| 4692 | if test "${with_llvmgccdir+set}" = set; then |
| 4693 | withval=$with_llvmgccdir; |
| 4694 | else |
| 4695 | withval=default |
| 4696 | fi |
| 4697 | |
| 4698 | case "$withval" in |
| 4699 | default) WITH_LLVMGCCDIR=default ;; |
| 4700 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4701 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4702 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4703 | { (exit 1); exit 1; }; } ;; |
| 4704 | esac |
| 4705 | |
| 4706 | |
| 4707 | # Check whether --with-extra-options was given. |
| 4708 | if test "${with_extra_options+set}" = set; then |
| 4709 | withval=$with_extra_options; |
| 4710 | else |
| 4711 | withval=default |
| 4712 | fi |
| 4713 | |
| 4714 | case "$withval" in |
| 4715 | default) EXTRA_OPTIONS= ;; |
| 4716 | *) EXTRA_OPTIONS=$withval ;; |
| 4717 | esac |
| 4718 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 4719 | |
| 4720 | |
| 4721 | |
| 4722 | ac_ext=c |
| 4723 | ac_cpp='$CPP $CPPFLAGS' |
| 4724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4727 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4728 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 4729 | # On Suns, sometimes $CPP names a directory. |
| 4730 | if test -n "$CPP" && test -d "$CPP"; then |
| 4731 | CPP= |
| 4732 | fi |
| 4733 | if test -z "$CPP"; then |
| 4734 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4736 | else |
| 4737 | # Double quotes because CPP needs to be expanded |
| 4738 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4739 | do |
| 4740 | ac_preproc_ok=false |
| 4741 | for ac_c_preproc_warn_flag in '' yes |
| 4742 | do |
| 4743 | # Use a header file that comes with gcc, so configuring glibc |
| 4744 | # with a fresh cross-compiler works. |
| 4745 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4746 | # <limits.h> exists even on freestanding compilers. |
| 4747 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4748 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4749 | cat >conftest.$ac_ext <<_ACEOF |
| 4750 | /* confdefs.h. */ |
| 4751 | _ACEOF |
| 4752 | cat confdefs.h >>conftest.$ac_ext |
| 4753 | cat >>conftest.$ac_ext <<_ACEOF |
| 4754 | /* end confdefs.h. */ |
| 4755 | #ifdef __STDC__ |
| 4756 | # include <limits.h> |
| 4757 | #else |
| 4758 | # include <assert.h> |
| 4759 | #endif |
| 4760 | Syntax error |
| 4761 | _ACEOF |
| 4762 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4763 | case "(($ac_try" in |
| 4764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4765 | *) ac_try_echo=$ac_try;; |
| 4766 | esac |
| 4767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4768 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4769 | ac_status=$? |
| 4770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4771 | rm -f conftest.er1 |
| 4772 | cat conftest.err >&5 |
| 4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4774 | (exit $ac_status); } >/dev/null; then |
| 4775 | if test -s conftest.err; then |
| 4776 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4777 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4778 | else |
| 4779 | ac_cpp_err= |
| 4780 | fi |
| 4781 | else |
| 4782 | ac_cpp_err=yes |
| 4783 | fi |
| 4784 | if test -z "$ac_cpp_err"; then |
| 4785 | : |
| 4786 | else |
| 4787 | echo "$as_me: failed program was:" >&5 |
| 4788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4789 | |
| 4790 | # Broken: fails on valid input. |
| 4791 | continue |
| 4792 | fi |
| 4793 | |
| 4794 | rm -f conftest.err conftest.$ac_ext |
| 4795 | |
| 4796 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4797 | # can be detected and how. |
| 4798 | cat >conftest.$ac_ext <<_ACEOF |
| 4799 | /* confdefs.h. */ |
| 4800 | _ACEOF |
| 4801 | cat confdefs.h >>conftest.$ac_ext |
| 4802 | cat >>conftest.$ac_ext <<_ACEOF |
| 4803 | /* end confdefs.h. */ |
| 4804 | #include <ac_nonexistent.h> |
| 4805 | _ACEOF |
| 4806 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4807 | case "(($ac_try" in |
| 4808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4809 | *) ac_try_echo=$ac_try;; |
| 4810 | esac |
| 4811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4812 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4813 | ac_status=$? |
| 4814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4815 | rm -f conftest.er1 |
| 4816 | cat conftest.err >&5 |
| 4817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4818 | (exit $ac_status); } >/dev/null; then |
| 4819 | if test -s conftest.err; then |
| 4820 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4821 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4822 | else |
| 4823 | ac_cpp_err= |
| 4824 | fi |
| 4825 | else |
| 4826 | ac_cpp_err=yes |
| 4827 | fi |
| 4828 | if test -z "$ac_cpp_err"; then |
| 4829 | # Broken: success on invalid input. |
| 4830 | continue |
| 4831 | else |
| 4832 | echo "$as_me: failed program was:" >&5 |
| 4833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4834 | |
| 4835 | # Passes both tests. |
| 4836 | ac_preproc_ok=: |
| 4837 | break |
| 4838 | fi |
| 4839 | |
| 4840 | rm -f conftest.err conftest.$ac_ext |
| 4841 | |
| 4842 | done |
| 4843 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4844 | rm -f conftest.err conftest.$ac_ext |
| 4845 | if $ac_preproc_ok; then |
| 4846 | break |
| 4847 | fi |
| 4848 | |
| 4849 | done |
| 4850 | ac_cv_prog_CPP=$CPP |
| 4851 | |
| 4852 | fi |
| 4853 | CPP=$ac_cv_prog_CPP |
| 4854 | else |
| 4855 | ac_cv_prog_CPP=$CPP |
| 4856 | fi |
| 4857 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4858 | echo "${ECHO_T}$CPP" >&6; } |
| 4859 | ac_preproc_ok=false |
| 4860 | for ac_c_preproc_warn_flag in '' yes |
| 4861 | do |
| 4862 | # Use a header file that comes with gcc, so configuring glibc |
| 4863 | # with a fresh cross-compiler works. |
| 4864 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4865 | # <limits.h> exists even on freestanding compilers. |
| 4866 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4867 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4868 | cat >conftest.$ac_ext <<_ACEOF |
| 4869 | /* confdefs.h. */ |
| 4870 | _ACEOF |
| 4871 | cat confdefs.h >>conftest.$ac_ext |
| 4872 | cat >>conftest.$ac_ext <<_ACEOF |
| 4873 | /* end confdefs.h. */ |
| 4874 | #ifdef __STDC__ |
| 4875 | # include <limits.h> |
| 4876 | #else |
| 4877 | # include <assert.h> |
| 4878 | #endif |
| 4879 | Syntax error |
| 4880 | _ACEOF |
| 4881 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4882 | case "(($ac_try" in |
| 4883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4884 | *) ac_try_echo=$ac_try;; |
| 4885 | esac |
| 4886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4887 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4888 | ac_status=$? |
| 4889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4890 | rm -f conftest.er1 |
| 4891 | cat conftest.err >&5 |
| 4892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4893 | (exit $ac_status); } >/dev/null; then |
| 4894 | if test -s conftest.err; then |
| 4895 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4896 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4897 | else |
| 4898 | ac_cpp_err= |
| 4899 | fi |
| 4900 | else |
| 4901 | ac_cpp_err=yes |
| 4902 | fi |
| 4903 | if test -z "$ac_cpp_err"; then |
| 4904 | : |
| 4905 | else |
| 4906 | echo "$as_me: failed program was:" >&5 |
| 4907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4908 | |
| 4909 | # Broken: fails on valid input. |
| 4910 | continue |
| 4911 | fi |
| 4912 | |
| 4913 | rm -f conftest.err conftest.$ac_ext |
| 4914 | |
| 4915 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4916 | # can be detected and how. |
| 4917 | cat >conftest.$ac_ext <<_ACEOF |
| 4918 | /* confdefs.h. */ |
| 4919 | _ACEOF |
| 4920 | cat confdefs.h >>conftest.$ac_ext |
| 4921 | cat >>conftest.$ac_ext <<_ACEOF |
| 4922 | /* end confdefs.h. */ |
| 4923 | #include <ac_nonexistent.h> |
| 4924 | _ACEOF |
| 4925 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4926 | case "(($ac_try" in |
| 4927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4928 | *) ac_try_echo=$ac_try;; |
| 4929 | esac |
| 4930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4931 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4932 | ac_status=$? |
| 4933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4934 | rm -f conftest.er1 |
| 4935 | cat conftest.err >&5 |
| 4936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4937 | (exit $ac_status); } >/dev/null; then |
| 4938 | if test -s conftest.err; then |
| 4939 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4940 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4941 | else |
| 4942 | ac_cpp_err= |
| 4943 | fi |
| 4944 | else |
| 4945 | ac_cpp_err=yes |
| 4946 | fi |
| 4947 | if test -z "$ac_cpp_err"; then |
| 4948 | # Broken: success on invalid input. |
| 4949 | continue |
| 4950 | else |
| 4951 | echo "$as_me: failed program was:" >&5 |
| 4952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4953 | |
| 4954 | # Passes both tests. |
| 4955 | ac_preproc_ok=: |
| 4956 | break |
| 4957 | fi |
| 4958 | |
| 4959 | rm -f conftest.err conftest.$ac_ext |
| 4960 | |
| 4961 | done |
| 4962 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4963 | rm -f conftest.err conftest.$ac_ext |
| 4964 | if $ac_preproc_ok; then |
| 4965 | : |
| 4966 | else |
| 4967 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4968 | See \`config.log' for more details." >&5 |
| 4969 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4970 | See \`config.log' for more details." >&2;} |
| 4971 | { (exit 1); exit 1; }; } |
| 4972 | fi |
| 4973 | |
| 4974 | ac_ext=c |
| 4975 | ac_cpp='$CPP $CPPFLAGS' |
| 4976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4979 | |
| 4980 | ac_ext=c |
| 4981 | ac_cpp='$CPP $CPPFLAGS' |
| 4982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4985 | if test -n "$ac_tool_prefix"; then |
| 4986 | for ac_prog in gcc |
| 4987 | do |
| 4988 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4989 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4990 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4992 | if test "${ac_cv_prog_CC+set}" = set; then |
| 4993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4994 | else |
| 4995 | if test -n "$CC"; then |
| 4996 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4997 | else |
| 4998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4999 | for as_dir in $PATH |
| 5000 | do |
| 5001 | IFS=$as_save_IFS |
| 5002 | test -z "$as_dir" && as_dir=. |
| 5003 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5005 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5007 | break 2 |
| 5008 | fi |
| 5009 | done |
| 5010 | done |
| 5011 | IFS=$as_save_IFS |
| 5012 | |
| 5013 | fi |
| 5014 | fi |
| 5015 | CC=$ac_cv_prog_CC |
| 5016 | if test -n "$CC"; then |
| 5017 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5018 | echo "${ECHO_T}$CC" >&6; } |
| 5019 | else |
| 5020 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5021 | echo "${ECHO_T}no" >&6; } |
| 5022 | fi |
| 5023 | |
| 5024 | |
| 5025 | test -n "$CC" && break |
| 5026 | done |
| 5027 | fi |
| 5028 | if test -z "$CC"; then |
| 5029 | ac_ct_CC=$CC |
| 5030 | for ac_prog in gcc |
| 5031 | do |
| 5032 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5033 | set dummy $ac_prog; ac_word=$2 |
| 5034 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5036 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5038 | else |
| 5039 | if test -n "$ac_ct_CC"; then |
| 5040 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5041 | else |
| 5042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5043 | for as_dir in $PATH |
| 5044 | do |
| 5045 | IFS=$as_save_IFS |
| 5046 | test -z "$as_dir" && as_dir=. |
| 5047 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5049 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5051 | break 2 |
| 5052 | fi |
| 5053 | done |
| 5054 | done |
| 5055 | IFS=$as_save_IFS |
| 5056 | |
| 5057 | fi |
| 5058 | fi |
| 5059 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5060 | if test -n "$ac_ct_CC"; then |
| 5061 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5062 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5063 | else |
| 5064 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5065 | echo "${ECHO_T}no" >&6; } |
| 5066 | fi |
| 5067 | |
| 5068 | |
| 5069 | test -n "$ac_ct_CC" && break |
| 5070 | done |
| 5071 | |
| 5072 | if test "x$ac_ct_CC" = x; then |
| 5073 | CC="" |
| 5074 | else |
| 5075 | case $cross_compiling:$ac_tool_warned in |
| 5076 | yes:) |
| 5077 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5078 | whose name does not start with the host triplet. If you think this |
| 5079 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5080 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5081 | whose name does not start with the host triplet. If you think this |
| 5082 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5083 | ac_tool_warned=yes ;; |
| 5084 | esac |
| 5085 | CC=$ac_ct_CC |
| 5086 | fi |
| 5087 | fi |
| 5088 | |
| 5089 | |
| 5090 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5091 | See \`config.log' for more details." >&5 |
| 5092 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5093 | See \`config.log' for more details." >&2;} |
| 5094 | { (exit 1); exit 1; }; } |
| 5095 | |
| 5096 | # Provide some information about the compiler. |
| 5097 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5098 | ac_compiler=`set X $ac_compile; echo $2` |
| 5099 | { (ac_try="$ac_compiler --version >&5" |
| 5100 | case "(($ac_try" in |
| 5101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5102 | *) ac_try_echo=$ac_try;; |
| 5103 | esac |
| 5104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5105 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5106 | ac_status=$? |
| 5107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5108 | (exit $ac_status); } |
| 5109 | { (ac_try="$ac_compiler -v >&5" |
| 5110 | case "(($ac_try" in |
| 5111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5112 | *) ac_try_echo=$ac_try;; |
| 5113 | esac |
| 5114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5115 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5116 | ac_status=$? |
| 5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5118 | (exit $ac_status); } |
| 5119 | { (ac_try="$ac_compiler -V >&5" |
| 5120 | case "(($ac_try" in |
| 5121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5122 | *) ac_try_echo=$ac_try;; |
| 5123 | esac |
| 5124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5125 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5126 | ac_status=$? |
| 5127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5128 | (exit $ac_status); } |
| 5129 | |
| 5130 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5131 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5132 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5134 | else |
| 5135 | cat >conftest.$ac_ext <<_ACEOF |
| 5136 | /* confdefs.h. */ |
| 5137 | _ACEOF |
| 5138 | cat confdefs.h >>conftest.$ac_ext |
| 5139 | cat >>conftest.$ac_ext <<_ACEOF |
| 5140 | /* end confdefs.h. */ |
| 5141 | |
| 5142 | int |
| 5143 | main () |
| 5144 | { |
| 5145 | #ifndef __GNUC__ |
| 5146 | choke me |
| 5147 | #endif |
| 5148 | |
| 5149 | ; |
| 5150 | return 0; |
| 5151 | } |
| 5152 | _ACEOF |
| 5153 | rm -f conftest.$ac_objext |
| 5154 | if { (ac_try="$ac_compile" |
| 5155 | case "(($ac_try" in |
| 5156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5157 | *) ac_try_echo=$ac_try;; |
| 5158 | esac |
| 5159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5160 | (eval "$ac_compile") 2>conftest.er1 |
| 5161 | ac_status=$? |
| 5162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5163 | rm -f conftest.er1 |
| 5164 | cat conftest.err >&5 |
| 5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5166 | (exit $ac_status); } && |
| 5167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5168 | { (case "(($ac_try" in |
| 5169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5170 | *) ac_try_echo=$ac_try;; |
| 5171 | esac |
| 5172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5173 | (eval "$ac_try") 2>&5 |
| 5174 | ac_status=$? |
| 5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5176 | (exit $ac_status); }; } && |
| 5177 | { ac_try='test -s conftest.$ac_objext' |
| 5178 | { (case "(($ac_try" in |
| 5179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5180 | *) ac_try_echo=$ac_try;; |
| 5181 | esac |
| 5182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5183 | (eval "$ac_try") 2>&5 |
| 5184 | ac_status=$? |
| 5185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5186 | (exit $ac_status); }; }; then |
| 5187 | ac_compiler_gnu=yes |
| 5188 | else |
| 5189 | echo "$as_me: failed program was:" >&5 |
| 5190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5191 | |
| 5192 | ac_compiler_gnu=no |
| 5193 | fi |
| 5194 | |
| 5195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5196 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5197 | |
| 5198 | fi |
| 5199 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5200 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5201 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5202 | ac_test_CFLAGS=${CFLAGS+set} |
| 5203 | ac_save_CFLAGS=$CFLAGS |
| 5204 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5205 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5206 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5208 | else |
| 5209 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5210 | ac_c_werror_flag=yes |
| 5211 | ac_cv_prog_cc_g=no |
| 5212 | CFLAGS="-g" |
| 5213 | cat >conftest.$ac_ext <<_ACEOF |
| 5214 | /* confdefs.h. */ |
| 5215 | _ACEOF |
| 5216 | cat confdefs.h >>conftest.$ac_ext |
| 5217 | cat >>conftest.$ac_ext <<_ACEOF |
| 5218 | /* end confdefs.h. */ |
| 5219 | |
| 5220 | int |
| 5221 | main () |
| 5222 | { |
| 5223 | |
| 5224 | ; |
| 5225 | return 0; |
| 5226 | } |
| 5227 | _ACEOF |
| 5228 | rm -f conftest.$ac_objext |
| 5229 | if { (ac_try="$ac_compile" |
| 5230 | case "(($ac_try" in |
| 5231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5232 | *) ac_try_echo=$ac_try;; |
| 5233 | esac |
| 5234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5235 | (eval "$ac_compile") 2>conftest.er1 |
| 5236 | ac_status=$? |
| 5237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5238 | rm -f conftest.er1 |
| 5239 | cat conftest.err >&5 |
| 5240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5241 | (exit $ac_status); } && |
| 5242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5243 | { (case "(($ac_try" in |
| 5244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5245 | *) ac_try_echo=$ac_try;; |
| 5246 | esac |
| 5247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5248 | (eval "$ac_try") 2>&5 |
| 5249 | ac_status=$? |
| 5250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5251 | (exit $ac_status); }; } && |
| 5252 | { ac_try='test -s conftest.$ac_objext' |
| 5253 | { (case "(($ac_try" in |
| 5254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5255 | *) ac_try_echo=$ac_try;; |
| 5256 | esac |
| 5257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5258 | (eval "$ac_try") 2>&5 |
| 5259 | ac_status=$? |
| 5260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5261 | (exit $ac_status); }; }; then |
| 5262 | ac_cv_prog_cc_g=yes |
| 5263 | else |
| 5264 | echo "$as_me: failed program was:" >&5 |
| 5265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5266 | |
| 5267 | CFLAGS="" |
| 5268 | cat >conftest.$ac_ext <<_ACEOF |
| 5269 | /* confdefs.h. */ |
| 5270 | _ACEOF |
| 5271 | cat confdefs.h >>conftest.$ac_ext |
| 5272 | cat >>conftest.$ac_ext <<_ACEOF |
| 5273 | /* end confdefs.h. */ |
| 5274 | |
| 5275 | int |
| 5276 | main () |
| 5277 | { |
| 5278 | |
| 5279 | ; |
| 5280 | return 0; |
| 5281 | } |
| 5282 | _ACEOF |
| 5283 | rm -f conftest.$ac_objext |
| 5284 | if { (ac_try="$ac_compile" |
| 5285 | case "(($ac_try" in |
| 5286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5287 | *) ac_try_echo=$ac_try;; |
| 5288 | esac |
| 5289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5290 | (eval "$ac_compile") 2>conftest.er1 |
| 5291 | ac_status=$? |
| 5292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5293 | rm -f conftest.er1 |
| 5294 | cat conftest.err >&5 |
| 5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5296 | (exit $ac_status); } && |
| 5297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5298 | { (case "(($ac_try" in |
| 5299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5300 | *) ac_try_echo=$ac_try;; |
| 5301 | esac |
| 5302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5303 | (eval "$ac_try") 2>&5 |
| 5304 | ac_status=$? |
| 5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5306 | (exit $ac_status); }; } && |
| 5307 | { ac_try='test -s conftest.$ac_objext' |
| 5308 | { (case "(($ac_try" in |
| 5309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5310 | *) ac_try_echo=$ac_try;; |
| 5311 | esac |
| 5312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5313 | (eval "$ac_try") 2>&5 |
| 5314 | ac_status=$? |
| 5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5316 | (exit $ac_status); }; }; then |
| 5317 | : |
| 5318 | else |
| 5319 | echo "$as_me: failed program was:" >&5 |
| 5320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5321 | |
| 5322 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5323 | CFLAGS="-g" |
| 5324 | cat >conftest.$ac_ext <<_ACEOF |
| 5325 | /* confdefs.h. */ |
| 5326 | _ACEOF |
| 5327 | cat confdefs.h >>conftest.$ac_ext |
| 5328 | cat >>conftest.$ac_ext <<_ACEOF |
| 5329 | /* end confdefs.h. */ |
| 5330 | |
| 5331 | int |
| 5332 | main () |
| 5333 | { |
| 5334 | |
| 5335 | ; |
| 5336 | return 0; |
| 5337 | } |
| 5338 | _ACEOF |
| 5339 | rm -f conftest.$ac_objext |
| 5340 | if { (ac_try="$ac_compile" |
| 5341 | case "(($ac_try" in |
| 5342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5343 | *) ac_try_echo=$ac_try;; |
| 5344 | esac |
| 5345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5346 | (eval "$ac_compile") 2>conftest.er1 |
| 5347 | ac_status=$? |
| 5348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5349 | rm -f conftest.er1 |
| 5350 | cat conftest.err >&5 |
| 5351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5352 | (exit $ac_status); } && |
| 5353 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5354 | { (case "(($ac_try" in |
| 5355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5356 | *) ac_try_echo=$ac_try;; |
| 5357 | esac |
| 5358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5359 | (eval "$ac_try") 2>&5 |
| 5360 | ac_status=$? |
| 5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5362 | (exit $ac_status); }; } && |
| 5363 | { ac_try='test -s conftest.$ac_objext' |
| 5364 | { (case "(($ac_try" in |
| 5365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5366 | *) ac_try_echo=$ac_try;; |
| 5367 | esac |
| 5368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5369 | (eval "$ac_try") 2>&5 |
| 5370 | ac_status=$? |
| 5371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5372 | (exit $ac_status); }; }; then |
| 5373 | ac_cv_prog_cc_g=yes |
| 5374 | else |
| 5375 | echo "$as_me: failed program was:" >&5 |
| 5376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5377 | |
| 5378 | |
| 5379 | fi |
| 5380 | |
| 5381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5382 | fi |
| 5383 | |
| 5384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5385 | fi |
| 5386 | |
| 5387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5388 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5389 | fi |
| 5390 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5391 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5392 | if test "$ac_test_CFLAGS" = set; then |
| 5393 | CFLAGS=$ac_save_CFLAGS |
| 5394 | elif test $ac_cv_prog_cc_g = yes; then |
| 5395 | if test "$GCC" = yes; then |
| 5396 | CFLAGS="-g -O2" |
| 5397 | else |
| 5398 | CFLAGS="-g" |
| 5399 | fi |
| 5400 | else |
| 5401 | if test "$GCC" = yes; then |
| 5402 | CFLAGS="-O2" |
| 5403 | else |
| 5404 | CFLAGS= |
| 5405 | fi |
| 5406 | fi |
| 5407 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5408 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5409 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5411 | else |
| 5412 | ac_cv_prog_cc_c89=no |
| 5413 | ac_save_CC=$CC |
| 5414 | cat >conftest.$ac_ext <<_ACEOF |
| 5415 | /* confdefs.h. */ |
| 5416 | _ACEOF |
| 5417 | cat confdefs.h >>conftest.$ac_ext |
| 5418 | cat >>conftest.$ac_ext <<_ACEOF |
| 5419 | /* end confdefs.h. */ |
| 5420 | #include <stdarg.h> |
| 5421 | #include <stdio.h> |
| 5422 | #include <sys/types.h> |
| 5423 | #include <sys/stat.h> |
| 5424 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5425 | struct buf { int x; }; |
| 5426 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5427 | static char *e (p, i) |
| 5428 | char **p; |
| 5429 | int i; |
| 5430 | { |
| 5431 | return p[i]; |
| 5432 | } |
| 5433 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5434 | { |
| 5435 | char *s; |
| 5436 | va_list v; |
| 5437 | va_start (v,p); |
| 5438 | s = g (p, va_arg (v,int)); |
| 5439 | va_end (v); |
| 5440 | return s; |
| 5441 | } |
| 5442 | |
| 5443 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5444 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5445 | These don't provoke an error unfortunately, instead are silently treated |
| 5446 | as 'x'. The following induces an error, until -std is added to get |
| 5447 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5448 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5449 | that's true only with -std. */ |
| 5450 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5451 | |
| 5452 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5453 | inside strings and character constants. */ |
| 5454 | #define FOO(x) 'x' |
| 5455 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5456 | |
| 5457 | int test (int i, double x); |
| 5458 | struct s1 {int (*f) (int a);}; |
| 5459 | struct s2 {int (*f) (double a);}; |
| 5460 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5461 | int argc; |
| 5462 | char **argv; |
| 5463 | int |
| 5464 | main () |
| 5465 | { |
| 5466 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5467 | ; |
| 5468 | return 0; |
| 5469 | } |
| 5470 | _ACEOF |
| 5471 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5472 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5473 | do |
| 5474 | CC="$ac_save_CC $ac_arg" |
| 5475 | rm -f conftest.$ac_objext |
| 5476 | if { (ac_try="$ac_compile" |
| 5477 | case "(($ac_try" in |
| 5478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5479 | *) ac_try_echo=$ac_try;; |
| 5480 | esac |
| 5481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5482 | (eval "$ac_compile") 2>conftest.er1 |
| 5483 | ac_status=$? |
| 5484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5485 | rm -f conftest.er1 |
| 5486 | cat conftest.err >&5 |
| 5487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5488 | (exit $ac_status); } && |
| 5489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5490 | { (case "(($ac_try" in |
| 5491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5492 | *) ac_try_echo=$ac_try;; |
| 5493 | esac |
| 5494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5495 | (eval "$ac_try") 2>&5 |
| 5496 | ac_status=$? |
| 5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5498 | (exit $ac_status); }; } && |
| 5499 | { ac_try='test -s conftest.$ac_objext' |
| 5500 | { (case "(($ac_try" in |
| 5501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5502 | *) ac_try_echo=$ac_try;; |
| 5503 | esac |
| 5504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5505 | (eval "$ac_try") 2>&5 |
| 5506 | ac_status=$? |
| 5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5508 | (exit $ac_status); }; }; then |
| 5509 | ac_cv_prog_cc_c89=$ac_arg |
| 5510 | else |
| 5511 | echo "$as_me: failed program was:" >&5 |
| 5512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5513 | |
| 5514 | |
| 5515 | fi |
| 5516 | |
| 5517 | rm -f core conftest.err conftest.$ac_objext |
| 5518 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5519 | done |
| 5520 | rm -f conftest.$ac_ext |
| 5521 | CC=$ac_save_CC |
| 5522 | |
| 5523 | fi |
| 5524 | # AC_CACHE_VAL |
| 5525 | case "x$ac_cv_prog_cc_c89" in |
| 5526 | x) |
| 5527 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5528 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5529 | xno) |
| 5530 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5531 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5532 | *) |
| 5533 | CC="$CC $ac_cv_prog_cc_c89" |
| 5534 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5535 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5536 | esac |
| 5537 | |
| 5538 | |
| 5539 | ac_ext=c |
| 5540 | ac_cpp='$CPP $CPPFLAGS' |
| 5541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5544 | |
| 5545 | ac_ext=cpp |
| 5546 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5550 | if test -z "$CXX"; then |
| 5551 | if test -n "$CCC"; then |
| 5552 | CXX=$CCC |
| 5553 | else |
| 5554 | if test -n "$ac_tool_prefix"; then |
| 5555 | for ac_prog in g++ |
| 5556 | do |
| 5557 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5558 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5559 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5561 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5563 | else |
| 5564 | if test -n "$CXX"; then |
| 5565 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5566 | else |
| 5567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5568 | for as_dir in $PATH |
| 5569 | do |
| 5570 | IFS=$as_save_IFS |
| 5571 | test -z "$as_dir" && as_dir=. |
| 5572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5573 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5574 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5576 | break 2 |
| 5577 | fi |
| 5578 | done |
| 5579 | done |
| 5580 | IFS=$as_save_IFS |
| 5581 | |
| 5582 | fi |
| 5583 | fi |
| 5584 | CXX=$ac_cv_prog_CXX |
| 5585 | if test -n "$CXX"; then |
| 5586 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5587 | echo "${ECHO_T}$CXX" >&6; } |
| 5588 | else |
| 5589 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5590 | echo "${ECHO_T}no" >&6; } |
| 5591 | fi |
| 5592 | |
| 5593 | |
| 5594 | test -n "$CXX" && break |
| 5595 | done |
| 5596 | fi |
| 5597 | if test -z "$CXX"; then |
| 5598 | ac_ct_CXX=$CXX |
| 5599 | for ac_prog in g++ |
| 5600 | do |
| 5601 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5602 | set dummy $ac_prog; ac_word=$2 |
| 5603 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5605 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5607 | else |
| 5608 | if test -n "$ac_ct_CXX"; then |
| 5609 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5610 | else |
| 5611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5612 | for as_dir in $PATH |
| 5613 | do |
| 5614 | IFS=$as_save_IFS |
| 5615 | test -z "$as_dir" && as_dir=. |
| 5616 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5618 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5620 | break 2 |
| 5621 | fi |
| 5622 | done |
| 5623 | done |
| 5624 | IFS=$as_save_IFS |
| 5625 | |
| 5626 | fi |
| 5627 | fi |
| 5628 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5629 | if test -n "$ac_ct_CXX"; then |
| 5630 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5631 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5632 | else |
| 5633 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5634 | echo "${ECHO_T}no" >&6; } |
| 5635 | fi |
| 5636 | |
| 5637 | |
| 5638 | test -n "$ac_ct_CXX" && break |
| 5639 | done |
| 5640 | |
| 5641 | if test "x$ac_ct_CXX" = x; then |
| 5642 | CXX="g++" |
| 5643 | else |
| 5644 | case $cross_compiling:$ac_tool_warned in |
| 5645 | yes:) |
| 5646 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5647 | whose name does not start with the host triplet. If you think this |
| 5648 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5649 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5650 | whose name does not start with the host triplet. If you think this |
| 5651 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5652 | ac_tool_warned=yes ;; |
| 5653 | esac |
| 5654 | CXX=$ac_ct_CXX |
| 5655 | fi |
| 5656 | fi |
| 5657 | |
| 5658 | fi |
| 5659 | fi |
| 5660 | # Provide some information about the compiler. |
| 5661 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5662 | ac_compiler=`set X $ac_compile; echo $2` |
| 5663 | { (ac_try="$ac_compiler --version >&5" |
| 5664 | case "(($ac_try" in |
| 5665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5666 | *) ac_try_echo=$ac_try;; |
| 5667 | esac |
| 5668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5669 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5670 | ac_status=$? |
| 5671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5672 | (exit $ac_status); } |
| 5673 | { (ac_try="$ac_compiler -v >&5" |
| 5674 | case "(($ac_try" in |
| 5675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5676 | *) ac_try_echo=$ac_try;; |
| 5677 | esac |
| 5678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5679 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5680 | ac_status=$? |
| 5681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5682 | (exit $ac_status); } |
| 5683 | { (ac_try="$ac_compiler -V >&5" |
| 5684 | case "(($ac_try" in |
| 5685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5686 | *) ac_try_echo=$ac_try;; |
| 5687 | esac |
| 5688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5689 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5690 | ac_status=$? |
| 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5692 | (exit $ac_status); } |
| 5693 | |
| 5694 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5695 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5696 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5698 | else |
| 5699 | cat >conftest.$ac_ext <<_ACEOF |
| 5700 | /* confdefs.h. */ |
| 5701 | _ACEOF |
| 5702 | cat confdefs.h >>conftest.$ac_ext |
| 5703 | cat >>conftest.$ac_ext <<_ACEOF |
| 5704 | /* end confdefs.h. */ |
| 5705 | |
| 5706 | int |
| 5707 | main () |
| 5708 | { |
| 5709 | #ifndef __GNUC__ |
| 5710 | choke me |
| 5711 | #endif |
| 5712 | |
| 5713 | ; |
| 5714 | return 0; |
| 5715 | } |
| 5716 | _ACEOF |
| 5717 | rm -f conftest.$ac_objext |
| 5718 | if { (ac_try="$ac_compile" |
| 5719 | case "(($ac_try" in |
| 5720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5721 | *) ac_try_echo=$ac_try;; |
| 5722 | esac |
| 5723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5724 | (eval "$ac_compile") 2>conftest.er1 |
| 5725 | ac_status=$? |
| 5726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5727 | rm -f conftest.er1 |
| 5728 | cat conftest.err >&5 |
| 5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5730 | (exit $ac_status); } && |
| 5731 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5732 | { (case "(($ac_try" in |
| 5733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5734 | *) ac_try_echo=$ac_try;; |
| 5735 | esac |
| 5736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5737 | (eval "$ac_try") 2>&5 |
| 5738 | ac_status=$? |
| 5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5740 | (exit $ac_status); }; } && |
| 5741 | { ac_try='test -s conftest.$ac_objext' |
| 5742 | { (case "(($ac_try" in |
| 5743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5744 | *) ac_try_echo=$ac_try;; |
| 5745 | esac |
| 5746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5747 | (eval "$ac_try") 2>&5 |
| 5748 | ac_status=$? |
| 5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5750 | (exit $ac_status); }; }; then |
| 5751 | ac_compiler_gnu=yes |
| 5752 | else |
| 5753 | echo "$as_me: failed program was:" >&5 |
| 5754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5755 | |
| 5756 | ac_compiler_gnu=no |
| 5757 | fi |
| 5758 | |
| 5759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5760 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5761 | |
| 5762 | fi |
| 5763 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5764 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5765 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5766 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5767 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5768 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5769 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5770 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5772 | else |
| 5773 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5774 | ac_cxx_werror_flag=yes |
| 5775 | ac_cv_prog_cxx_g=no |
| 5776 | CXXFLAGS="-g" |
| 5777 | cat >conftest.$ac_ext <<_ACEOF |
| 5778 | /* confdefs.h. */ |
| 5779 | _ACEOF |
| 5780 | cat confdefs.h >>conftest.$ac_ext |
| 5781 | cat >>conftest.$ac_ext <<_ACEOF |
| 5782 | /* end confdefs.h. */ |
| 5783 | |
| 5784 | int |
| 5785 | main () |
| 5786 | { |
| 5787 | |
| 5788 | ; |
| 5789 | return 0; |
| 5790 | } |
| 5791 | _ACEOF |
| 5792 | rm -f conftest.$ac_objext |
| 5793 | if { (ac_try="$ac_compile" |
| 5794 | case "(($ac_try" in |
| 5795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5796 | *) ac_try_echo=$ac_try;; |
| 5797 | esac |
| 5798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5799 | (eval "$ac_compile") 2>conftest.er1 |
| 5800 | ac_status=$? |
| 5801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5802 | rm -f conftest.er1 |
| 5803 | cat conftest.err >&5 |
| 5804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5805 | (exit $ac_status); } && |
| 5806 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5807 | { (case "(($ac_try" in |
| 5808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5809 | *) ac_try_echo=$ac_try;; |
| 5810 | esac |
| 5811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5812 | (eval "$ac_try") 2>&5 |
| 5813 | ac_status=$? |
| 5814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5815 | (exit $ac_status); }; } && |
| 5816 | { ac_try='test -s conftest.$ac_objext' |
| 5817 | { (case "(($ac_try" in |
| 5818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5819 | *) ac_try_echo=$ac_try;; |
| 5820 | esac |
| 5821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5822 | (eval "$ac_try") 2>&5 |
| 5823 | ac_status=$? |
| 5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5825 | (exit $ac_status); }; }; then |
| 5826 | ac_cv_prog_cxx_g=yes |
| 5827 | else |
| 5828 | echo "$as_me: failed program was:" >&5 |
| 5829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5830 | |
| 5831 | CXXFLAGS="" |
| 5832 | cat >conftest.$ac_ext <<_ACEOF |
| 5833 | /* confdefs.h. */ |
| 5834 | _ACEOF |
| 5835 | cat confdefs.h >>conftest.$ac_ext |
| 5836 | cat >>conftest.$ac_ext <<_ACEOF |
| 5837 | /* end confdefs.h. */ |
| 5838 | |
| 5839 | int |
| 5840 | main () |
| 5841 | { |
| 5842 | |
| 5843 | ; |
| 5844 | return 0; |
| 5845 | } |
| 5846 | _ACEOF |
| 5847 | rm -f conftest.$ac_objext |
| 5848 | if { (ac_try="$ac_compile" |
| 5849 | case "(($ac_try" in |
| 5850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5851 | *) ac_try_echo=$ac_try;; |
| 5852 | esac |
| 5853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5854 | (eval "$ac_compile") 2>conftest.er1 |
| 5855 | ac_status=$? |
| 5856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5857 | rm -f conftest.er1 |
| 5858 | cat conftest.err >&5 |
| 5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5860 | (exit $ac_status); } && |
| 5861 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5862 | { (case "(($ac_try" in |
| 5863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5864 | *) ac_try_echo=$ac_try;; |
| 5865 | esac |
| 5866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5867 | (eval "$ac_try") 2>&5 |
| 5868 | ac_status=$? |
| 5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5870 | (exit $ac_status); }; } && |
| 5871 | { ac_try='test -s conftest.$ac_objext' |
| 5872 | { (case "(($ac_try" in |
| 5873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5874 | *) ac_try_echo=$ac_try;; |
| 5875 | esac |
| 5876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5877 | (eval "$ac_try") 2>&5 |
| 5878 | ac_status=$? |
| 5879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5880 | (exit $ac_status); }; }; then |
| 5881 | : |
| 5882 | else |
| 5883 | echo "$as_me: failed program was:" >&5 |
| 5884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5885 | |
| 5886 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5887 | CXXFLAGS="-g" |
| 5888 | cat >conftest.$ac_ext <<_ACEOF |
| 5889 | /* confdefs.h. */ |
| 5890 | _ACEOF |
| 5891 | cat confdefs.h >>conftest.$ac_ext |
| 5892 | cat >>conftest.$ac_ext <<_ACEOF |
| 5893 | /* end confdefs.h. */ |
| 5894 | |
| 5895 | int |
| 5896 | main () |
| 5897 | { |
| 5898 | |
| 5899 | ; |
| 5900 | return 0; |
| 5901 | } |
| 5902 | _ACEOF |
| 5903 | rm -f conftest.$ac_objext |
| 5904 | if { (ac_try="$ac_compile" |
| 5905 | case "(($ac_try" in |
| 5906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5907 | *) ac_try_echo=$ac_try;; |
| 5908 | esac |
| 5909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5910 | (eval "$ac_compile") 2>conftest.er1 |
| 5911 | ac_status=$? |
| 5912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5913 | rm -f conftest.er1 |
| 5914 | cat conftest.err >&5 |
| 5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5916 | (exit $ac_status); } && |
| 5917 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5918 | { (case "(($ac_try" in |
| 5919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5920 | *) ac_try_echo=$ac_try;; |
| 5921 | esac |
| 5922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5923 | (eval "$ac_try") 2>&5 |
| 5924 | ac_status=$? |
| 5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5926 | (exit $ac_status); }; } && |
| 5927 | { ac_try='test -s conftest.$ac_objext' |
| 5928 | { (case "(($ac_try" in |
| 5929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5930 | *) ac_try_echo=$ac_try;; |
| 5931 | esac |
| 5932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5933 | (eval "$ac_try") 2>&5 |
| 5934 | ac_status=$? |
| 5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5936 | (exit $ac_status); }; }; then |
| 5937 | ac_cv_prog_cxx_g=yes |
| 5938 | else |
| 5939 | echo "$as_me: failed program was:" >&5 |
| 5940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5941 | |
| 5942 | |
| 5943 | fi |
| 5944 | |
| 5945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5946 | fi |
| 5947 | |
| 5948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5949 | fi |
| 5950 | |
| 5951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5952 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5953 | fi |
| 5954 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 5955 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 5956 | if test "$ac_test_CXXFLAGS" = set; then |
| 5957 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5958 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5959 | if test "$GXX" = yes; then |
| 5960 | CXXFLAGS="-g -O2" |
| 5961 | else |
| 5962 | CXXFLAGS="-g" |
| 5963 | fi |
| 5964 | else |
| 5965 | if test "$GXX" = yes; then |
| 5966 | CXXFLAGS="-O2" |
| 5967 | else |
| 5968 | CXXFLAGS= |
| 5969 | fi |
| 5970 | fi |
| 5971 | ac_ext=c |
| 5972 | ac_cpp='$CPP $CPPFLAGS' |
| 5973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5976 | |
| 5977 | { echo "$as_me:$LINENO: checking " >&5 |
| 5978 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 5979 | if test "${ac_cv_has_flex+set}" = set; then |
| 5980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5981 | else |
| 5982 | for ac_prog in flex lex |
| 5983 | do |
| 5984 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5985 | set dummy $ac_prog; ac_word=$2 |
| 5986 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5988 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5990 | else |
| 5991 | if test -n "$LEX"; then |
| 5992 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 5993 | else |
| 5994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5995 | for as_dir in $PATH |
| 5996 | do |
| 5997 | IFS=$as_save_IFS |
| 5998 | test -z "$as_dir" && as_dir=. |
| 5999 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6001 | ac_cv_prog_LEX="$ac_prog" |
| 6002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6003 | break 2 |
| 6004 | fi |
| 6005 | done |
| 6006 | done |
| 6007 | IFS=$as_save_IFS |
| 6008 | |
| 6009 | fi |
| 6010 | fi |
| 6011 | LEX=$ac_cv_prog_LEX |
| 6012 | if test -n "$LEX"; then |
| 6013 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 6014 | echo "${ECHO_T}$LEX" >&6; } |
| 6015 | else |
| 6016 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6017 | echo "${ECHO_T}no" >&6; } |
| 6018 | fi |
| 6019 | |
| 6020 | |
| 6021 | test -n "$LEX" && break |
| 6022 | done |
| 6023 | test -n "$LEX" || LEX=":" |
| 6024 | |
| 6025 | if test -z "$LEXLIB" |
| 6026 | then |
| 6027 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 6028 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
| 6029 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 6030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6031 | else |
| 6032 | ac_check_lib_save_LIBS=$LIBS |
| 6033 | LIBS="-lfl $LIBS" |
| 6034 | cat >conftest.$ac_ext <<_ACEOF |
| 6035 | /* confdefs.h. */ |
| 6036 | _ACEOF |
| 6037 | cat confdefs.h >>conftest.$ac_ext |
| 6038 | cat >>conftest.$ac_ext <<_ACEOF |
| 6039 | /* end confdefs.h. */ |
| 6040 | |
| 6041 | /* Override any GCC internal prototype to avoid an error. |
| 6042 | Use char because int might match the return type of a GCC |
| 6043 | builtin and then its argument prototype would still apply. */ |
| 6044 | #ifdef __cplusplus |
| 6045 | extern "C" |
| 6046 | #endif |
| 6047 | char yywrap (); |
| 6048 | int |
| 6049 | main () |
| 6050 | { |
| 6051 | return yywrap (); |
| 6052 | ; |
| 6053 | return 0; |
| 6054 | } |
| 6055 | _ACEOF |
| 6056 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6057 | if { (ac_try="$ac_link" |
| 6058 | case "(($ac_try" in |
| 6059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6060 | *) ac_try_echo=$ac_try;; |
| 6061 | esac |
| 6062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6063 | (eval "$ac_link") 2>conftest.er1 |
| 6064 | ac_status=$? |
| 6065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6066 | rm -f conftest.er1 |
| 6067 | cat conftest.err >&5 |
| 6068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6069 | (exit $ac_status); } && |
| 6070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6071 | { (case "(($ac_try" in |
| 6072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6073 | *) ac_try_echo=$ac_try;; |
| 6074 | esac |
| 6075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6076 | (eval "$ac_try") 2>&5 |
| 6077 | ac_status=$? |
| 6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6079 | (exit $ac_status); }; } && |
| 6080 | { ac_try='test -s conftest$ac_exeext' |
| 6081 | { (case "(($ac_try" in |
| 6082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6083 | *) ac_try_echo=$ac_try;; |
| 6084 | esac |
| 6085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6086 | (eval "$ac_try") 2>&5 |
| 6087 | ac_status=$? |
| 6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6089 | (exit $ac_status); }; }; then |
| 6090 | ac_cv_lib_fl_yywrap=yes |
| 6091 | else |
| 6092 | echo "$as_me: failed program was:" >&5 |
| 6093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6094 | |
| 6095 | ac_cv_lib_fl_yywrap=no |
| 6096 | fi |
| 6097 | |
| 6098 | rm -f core conftest.err conftest.$ac_objext \ |
| 6099 | conftest$ac_exeext conftest.$ac_ext |
| 6100 | LIBS=$ac_check_lib_save_LIBS |
| 6101 | fi |
| 6102 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 6103 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
| 6104 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 6105 | LEXLIB="-lfl" |
| 6106 | else |
| 6107 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 6108 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
| 6109 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 6110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6111 | else |
| 6112 | ac_check_lib_save_LIBS=$LIBS |
| 6113 | LIBS="-ll $LIBS" |
| 6114 | cat >conftest.$ac_ext <<_ACEOF |
| 6115 | /* confdefs.h. */ |
| 6116 | _ACEOF |
| 6117 | cat confdefs.h >>conftest.$ac_ext |
| 6118 | cat >>conftest.$ac_ext <<_ACEOF |
| 6119 | /* end confdefs.h. */ |
| 6120 | |
| 6121 | /* Override any GCC internal prototype to avoid an error. |
| 6122 | Use char because int might match the return type of a GCC |
| 6123 | builtin and then its argument prototype would still apply. */ |
| 6124 | #ifdef __cplusplus |
| 6125 | extern "C" |
| 6126 | #endif |
| 6127 | char yywrap (); |
| 6128 | int |
| 6129 | main () |
| 6130 | { |
| 6131 | return yywrap (); |
| 6132 | ; |
| 6133 | return 0; |
| 6134 | } |
| 6135 | _ACEOF |
| 6136 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6137 | if { (ac_try="$ac_link" |
| 6138 | case "(($ac_try" in |
| 6139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6140 | *) ac_try_echo=$ac_try;; |
| 6141 | esac |
| 6142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6143 | (eval "$ac_link") 2>conftest.er1 |
| 6144 | ac_status=$? |
| 6145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6146 | rm -f conftest.er1 |
| 6147 | cat conftest.err >&5 |
| 6148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6149 | (exit $ac_status); } && |
| 6150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6151 | { (case "(($ac_try" in |
| 6152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6153 | *) ac_try_echo=$ac_try;; |
| 6154 | esac |
| 6155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6156 | (eval "$ac_try") 2>&5 |
| 6157 | ac_status=$? |
| 6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6159 | (exit $ac_status); }; } && |
| 6160 | { ac_try='test -s conftest$ac_exeext' |
| 6161 | { (case "(($ac_try" in |
| 6162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6163 | *) ac_try_echo=$ac_try;; |
| 6164 | esac |
| 6165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6166 | (eval "$ac_try") 2>&5 |
| 6167 | ac_status=$? |
| 6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6169 | (exit $ac_status); }; }; then |
| 6170 | ac_cv_lib_l_yywrap=yes |
| 6171 | else |
| 6172 | echo "$as_me: failed program was:" >&5 |
| 6173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6174 | |
| 6175 | ac_cv_lib_l_yywrap=no |
| 6176 | fi |
| 6177 | |
| 6178 | rm -f core conftest.err conftest.$ac_objext \ |
| 6179 | conftest$ac_exeext conftest.$ac_ext |
| 6180 | LIBS=$ac_check_lib_save_LIBS |
| 6181 | fi |
| 6182 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 6183 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
| 6184 | if test $ac_cv_lib_l_yywrap = yes; then |
| 6185 | LEXLIB="-ll" |
| 6186 | fi |
| 6187 | |
| 6188 | fi |
| 6189 | |
| 6190 | fi |
| 6191 | |
| 6192 | if test "x$LEX" != "x:"; then |
| 6193 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 6194 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 6195 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 6196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6197 | else |
| 6198 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 6199 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 6200 | cat >conftest.l <<_ACEOF |
| 6201 | %% |
| 6202 | %% |
| 6203 | _ACEOF |
| 6204 | { (ac_try="$LEX conftest.l" |
| 6205 | case "(($ac_try" in |
| 6206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6207 | *) ac_try_echo=$ac_try;; |
| 6208 | esac |
| 6209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6210 | (eval "$LEX conftest.l") 2>&5 |
| 6211 | ac_status=$? |
| 6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6213 | (exit $ac_status); } |
| 6214 | if test -f lex.yy.c; then |
| 6215 | ac_cv_prog_lex_root=lex.yy |
| 6216 | elif test -f lexyy.c; then |
| 6217 | ac_cv_prog_lex_root=lexyy |
| 6218 | else |
| 6219 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 6220 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 6221 | { (exit 1); exit 1; }; } |
| 6222 | fi |
| 6223 | fi |
| 6224 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 6225 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
| 6226 | rm -f conftest.l |
| 6227 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 6228 | |
| 6229 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 6230 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 6231 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 6232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6233 | else |
| 6234 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 6235 | # default is implementation-dependent. Figure out which it is, since |
| 6236 | # not all implementations provide the %pointer and %array declarations. |
| 6237 | ac_cv_prog_lex_yytext_pointer=no |
| 6238 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 6239 | ac_save_LIBS=$LIBS |
| 6240 | LIBS="$LIBS $LEXLIB" |
| 6241 | cat >conftest.$ac_ext <<_ACEOF |
| 6242 | `cat $LEX_OUTPUT_ROOT.c` |
| 6243 | _ACEOF |
| 6244 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6245 | if { (ac_try="$ac_link" |
| 6246 | case "(($ac_try" in |
| 6247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6248 | *) ac_try_echo=$ac_try;; |
| 6249 | esac |
| 6250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6251 | (eval "$ac_link") 2>conftest.er1 |
| 6252 | ac_status=$? |
| 6253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6254 | rm -f conftest.er1 |
| 6255 | cat conftest.err >&5 |
| 6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6257 | (exit $ac_status); } && |
| 6258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6259 | { (case "(($ac_try" in |
| 6260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6261 | *) ac_try_echo=$ac_try;; |
| 6262 | esac |
| 6263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6264 | (eval "$ac_try") 2>&5 |
| 6265 | ac_status=$? |
| 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6267 | (exit $ac_status); }; } && |
| 6268 | { ac_try='test -s conftest$ac_exeext' |
| 6269 | { (case "(($ac_try" in |
| 6270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6271 | *) ac_try_echo=$ac_try;; |
| 6272 | esac |
| 6273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6274 | (eval "$ac_try") 2>&5 |
| 6275 | ac_status=$? |
| 6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6277 | (exit $ac_status); }; }; then |
| 6278 | ac_cv_prog_lex_yytext_pointer=yes |
| 6279 | else |
| 6280 | echo "$as_me: failed program was:" >&5 |
| 6281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6282 | |
| 6283 | |
| 6284 | fi |
| 6285 | |
| 6286 | rm -f core conftest.err conftest.$ac_objext \ |
| 6287 | conftest$ac_exeext conftest.$ac_ext |
| 6288 | LIBS=$ac_save_LIBS |
| 6289 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 6290 | |
| 6291 | fi |
| 6292 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6293 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6294 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6295 | |
| 6296 | cat >>confdefs.h <<\_ACEOF |
| 6297 | #define YYTEXT_POINTER 1 |
| 6298 | _ACEOF |
| 6299 | |
| 6300 | fi |
| 6301 | |
| 6302 | fi |
| 6303 | |
| 6304 | fi |
| 6305 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6306 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6307 | if test "$LEX" != "flex"; then |
| 6308 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6309 | echo "$as_me: error: flex not found but required" >&2;} |
| 6310 | { (exit 1); exit 1; }; } |
| 6311 | else |
| 6312 | FLEX=flex |
| 6313 | |
| 6314 | fi |
| 6315 | |
| 6316 | { echo "$as_me:$LINENO: checking " >&5 |
| 6317 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6318 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6320 | else |
| 6321 | for ac_prog in 'bison -y' byacc |
| 6322 | do |
| 6323 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6324 | set dummy $ac_prog; ac_word=$2 |
| 6325 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6327 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 6328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6329 | else |
| 6330 | if test -n "$YACC"; then |
| 6331 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6332 | else |
| 6333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6334 | for as_dir in $PATH |
| 6335 | do |
| 6336 | IFS=$as_save_IFS |
| 6337 | test -z "$as_dir" && as_dir=. |
| 6338 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6340 | ac_cv_prog_YACC="$ac_prog" |
| 6341 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6342 | break 2 |
| 6343 | fi |
| 6344 | done |
| 6345 | done |
| 6346 | IFS=$as_save_IFS |
| 6347 | |
| 6348 | fi |
| 6349 | fi |
| 6350 | YACC=$ac_cv_prog_YACC |
| 6351 | if test -n "$YACC"; then |
| 6352 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6353 | echo "${ECHO_T}$YACC" >&6; } |
| 6354 | else |
| 6355 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6356 | echo "${ECHO_T}no" >&6; } |
| 6357 | fi |
| 6358 | |
| 6359 | |
| 6360 | test -n "$YACC" && break |
| 6361 | done |
| 6362 | test -n "$YACC" || YACC="yacc" |
| 6363 | |
| 6364 | fi |
| 6365 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6366 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6367 | if test "$YACC" != "bison -y"; then |
Reid Spencer | 4869d7f | 2006-08-24 22:41:20 +0000 | [diff] [blame] | 6368 | |
| 6369 | { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 |
| 6370 | echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6371 | else |
| 6372 | BISON=bison |
| 6373 | |
| 6374 | fi |
| 6375 | |
| 6376 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6377 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6378 | if test "${lt_cv_path_NM+set}" = set; then |
| 6379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6380 | else |
| 6381 | if test -n "$NM"; then |
| 6382 | # Let the user override the test. |
| 6383 | lt_cv_path_NM="$NM" |
| 6384 | else |
| 6385 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6386 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6387 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6388 | fi |
| 6389 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6390 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6391 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6392 | IFS="$lt_save_ifs" |
| 6393 | test -z "$ac_dir" && ac_dir=. |
| 6394 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6395 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6396 | # Check to see if the nm accepts a BSD-compat flag. |
| 6397 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6398 | # nm: unknown option "B" ignored |
| 6399 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6400 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6401 | */dev/null* | *'Invalid file or object type'*) |
| 6402 | lt_cv_path_NM="$tmp_nm -B" |
| 6403 | break |
| 6404 | ;; |
| 6405 | *) |
| 6406 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6407 | */dev/null*) |
| 6408 | lt_cv_path_NM="$tmp_nm -p" |
| 6409 | break |
| 6410 | ;; |
| 6411 | *) |
| 6412 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6413 | continue # so that we can try to find one that supports BSD flags |
| 6414 | ;; |
| 6415 | esac |
| 6416 | ;; |
| 6417 | esac |
| 6418 | fi |
| 6419 | done |
| 6420 | IFS="$lt_save_ifs" |
| 6421 | done |
| 6422 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6423 | fi |
| 6424 | fi |
| 6425 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6426 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6427 | NM="$lt_cv_path_NM" |
| 6428 | |
| 6429 | |
| 6430 | |
| 6431 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6432 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6433 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6435 | else |
| 6436 | llvm_cv_gnu_make_command='' |
| 6437 | for a in "$MAKE" make gmake gnumake ; do |
| 6438 | if test -z "$a" ; then continue ; fi ; |
| 6439 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6440 | then |
| 6441 | llvm_cv_gnu_make_command=$a ; |
| 6442 | break; |
| 6443 | fi |
| 6444 | done |
| 6445 | fi |
| 6446 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6447 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6448 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6449 | ifGNUmake='' ; |
| 6450 | else |
| 6451 | ifGNUmake='#' ; |
| 6452 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6453 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6454 | fi |
| 6455 | |
| 6456 | |
| 6457 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6458 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6459 | LN_S=$as_ln_s |
| 6460 | if test "$LN_S" = "ln -s"; then |
| 6461 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6462 | echo "${ECHO_T}yes" >&6; } |
| 6463 | else |
| 6464 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6465 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6466 | fi |
| 6467 | |
| 6468 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6469 | set dummy cmp; ac_word=$2 |
| 6470 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6472 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6474 | else |
| 6475 | case $CMP in |
| 6476 | [\\/]* | ?:[\\/]*) |
| 6477 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6478 | ;; |
| 6479 | *) |
| 6480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6481 | for as_dir in $PATH |
| 6482 | do |
| 6483 | IFS=$as_save_IFS |
| 6484 | test -z "$as_dir" && as_dir=. |
| 6485 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6487 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6489 | break 2 |
| 6490 | fi |
| 6491 | done |
| 6492 | done |
| 6493 | IFS=$as_save_IFS |
| 6494 | |
| 6495 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6496 | ;; |
| 6497 | esac |
| 6498 | fi |
| 6499 | CMP=$ac_cv_path_CMP |
| 6500 | if test -n "$CMP"; then |
| 6501 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6502 | echo "${ECHO_T}$CMP" >&6; } |
| 6503 | else |
| 6504 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6505 | echo "${ECHO_T}no" >&6; } |
| 6506 | fi |
| 6507 | |
| 6508 | |
| 6509 | # Extract the first word of "cp", so it can be a program name with args. |
| 6510 | set dummy cp; ac_word=$2 |
| 6511 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6513 | if test "${ac_cv_path_CP+set}" = set; then |
| 6514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6515 | else |
| 6516 | case $CP in |
| 6517 | [\\/]* | ?:[\\/]*) |
| 6518 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6519 | ;; |
| 6520 | *) |
| 6521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6522 | for as_dir in $PATH |
| 6523 | do |
| 6524 | IFS=$as_save_IFS |
| 6525 | test -z "$as_dir" && as_dir=. |
| 6526 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6527 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6528 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6530 | break 2 |
| 6531 | fi |
| 6532 | done |
| 6533 | done |
| 6534 | IFS=$as_save_IFS |
| 6535 | |
| 6536 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6537 | ;; |
| 6538 | esac |
| 6539 | fi |
| 6540 | CP=$ac_cv_path_CP |
| 6541 | if test -n "$CP"; then |
| 6542 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6543 | echo "${ECHO_T}$CP" >&6; } |
| 6544 | else |
| 6545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6546 | echo "${ECHO_T}no" >&6; } |
| 6547 | fi |
| 6548 | |
| 6549 | |
| 6550 | # Extract the first word of "date", so it can be a program name with args. |
| 6551 | set dummy date; ac_word=$2 |
| 6552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6554 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6556 | else |
| 6557 | case $DATE in |
| 6558 | [\\/]* | ?:[\\/]*) |
| 6559 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6560 | ;; |
| 6561 | *) |
| 6562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6563 | for as_dir in $PATH |
| 6564 | do |
| 6565 | IFS=$as_save_IFS |
| 6566 | test -z "$as_dir" && as_dir=. |
| 6567 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6569 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6571 | break 2 |
| 6572 | fi |
| 6573 | done |
| 6574 | done |
| 6575 | IFS=$as_save_IFS |
| 6576 | |
| 6577 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6578 | ;; |
| 6579 | esac |
| 6580 | fi |
| 6581 | DATE=$ac_cv_path_DATE |
| 6582 | if test -n "$DATE"; then |
| 6583 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6584 | echo "${ECHO_T}$DATE" >&6; } |
| 6585 | else |
| 6586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6587 | echo "${ECHO_T}no" >&6; } |
| 6588 | fi |
| 6589 | |
| 6590 | |
| 6591 | # Extract the first word of "find", so it can be a program name with args. |
| 6592 | set dummy find; ac_word=$2 |
| 6593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6595 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6597 | else |
| 6598 | case $FIND in |
| 6599 | [\\/]* | ?:[\\/]*) |
| 6600 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6601 | ;; |
| 6602 | *) |
| 6603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6604 | for as_dir in $PATH |
| 6605 | do |
| 6606 | IFS=$as_save_IFS |
| 6607 | test -z "$as_dir" && as_dir=. |
| 6608 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6610 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6612 | break 2 |
| 6613 | fi |
| 6614 | done |
| 6615 | done |
| 6616 | IFS=$as_save_IFS |
| 6617 | |
| 6618 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6619 | ;; |
| 6620 | esac |
| 6621 | fi |
| 6622 | FIND=$ac_cv_path_FIND |
| 6623 | if test -n "$FIND"; then |
| 6624 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6625 | echo "${ECHO_T}$FIND" >&6; } |
| 6626 | else |
| 6627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6628 | echo "${ECHO_T}no" >&6; } |
| 6629 | fi |
| 6630 | |
| 6631 | |
| 6632 | # Extract the first word of "grep", so it can be a program name with args. |
| 6633 | set dummy grep; ac_word=$2 |
| 6634 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6636 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6638 | else |
| 6639 | case $GREP in |
| 6640 | [\\/]* | ?:[\\/]*) |
| 6641 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6642 | ;; |
| 6643 | *) |
| 6644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6645 | for as_dir in $PATH |
| 6646 | do |
| 6647 | IFS=$as_save_IFS |
| 6648 | test -z "$as_dir" && as_dir=. |
| 6649 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6650 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6651 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6653 | break 2 |
| 6654 | fi |
| 6655 | done |
| 6656 | done |
| 6657 | IFS=$as_save_IFS |
| 6658 | |
| 6659 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6660 | ;; |
| 6661 | esac |
| 6662 | fi |
| 6663 | GREP=$ac_cv_path_GREP |
| 6664 | if test -n "$GREP"; then |
| 6665 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6666 | echo "${ECHO_T}$GREP" >&6; } |
| 6667 | else |
| 6668 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6669 | echo "${ECHO_T}no" >&6; } |
| 6670 | fi |
| 6671 | |
| 6672 | |
| 6673 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6674 | set dummy mkdir; ac_word=$2 |
| 6675 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6677 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6679 | else |
| 6680 | case $MKDIR in |
| 6681 | [\\/]* | ?:[\\/]*) |
| 6682 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6683 | ;; |
| 6684 | *) |
| 6685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6686 | for as_dir in $PATH |
| 6687 | do |
| 6688 | IFS=$as_save_IFS |
| 6689 | test -z "$as_dir" && as_dir=. |
| 6690 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6692 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6694 | break 2 |
| 6695 | fi |
| 6696 | done |
| 6697 | done |
| 6698 | IFS=$as_save_IFS |
| 6699 | |
| 6700 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6701 | ;; |
| 6702 | esac |
| 6703 | fi |
| 6704 | MKDIR=$ac_cv_path_MKDIR |
| 6705 | if test -n "$MKDIR"; then |
| 6706 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6707 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6708 | else |
| 6709 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6710 | echo "${ECHO_T}no" >&6; } |
| 6711 | fi |
| 6712 | |
| 6713 | |
| 6714 | # Extract the first word of "mv", so it can be a program name with args. |
| 6715 | set dummy mv; ac_word=$2 |
| 6716 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6718 | if test "${ac_cv_path_MV+set}" = set; then |
| 6719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6720 | else |
| 6721 | case $MV in |
| 6722 | [\\/]* | ?:[\\/]*) |
| 6723 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6724 | ;; |
| 6725 | *) |
| 6726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6727 | for as_dir in $PATH |
| 6728 | do |
| 6729 | IFS=$as_save_IFS |
| 6730 | test -z "$as_dir" && as_dir=. |
| 6731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6733 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6735 | break 2 |
| 6736 | fi |
| 6737 | done |
| 6738 | done |
| 6739 | IFS=$as_save_IFS |
| 6740 | |
| 6741 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6742 | ;; |
| 6743 | esac |
| 6744 | fi |
| 6745 | MV=$ac_cv_path_MV |
| 6746 | if test -n "$MV"; then |
| 6747 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6748 | echo "${ECHO_T}$MV" >&6; } |
| 6749 | else |
| 6750 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6751 | echo "${ECHO_T}no" >&6; } |
| 6752 | fi |
| 6753 | |
| 6754 | |
| 6755 | if test -n "$ac_tool_prefix"; then |
| 6756 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6757 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6758 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6760 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6762 | else |
| 6763 | if test -n "$RANLIB"; then |
| 6764 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6765 | else |
| 6766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6767 | for as_dir in $PATH |
| 6768 | do |
| 6769 | IFS=$as_save_IFS |
| 6770 | test -z "$as_dir" && as_dir=. |
| 6771 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6773 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6775 | break 2 |
| 6776 | fi |
| 6777 | done |
| 6778 | done |
| 6779 | IFS=$as_save_IFS |
| 6780 | |
| 6781 | fi |
| 6782 | fi |
| 6783 | RANLIB=$ac_cv_prog_RANLIB |
| 6784 | if test -n "$RANLIB"; then |
| 6785 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6786 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6787 | else |
| 6788 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6789 | echo "${ECHO_T}no" >&6; } |
| 6790 | fi |
| 6791 | |
| 6792 | |
| 6793 | fi |
| 6794 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6795 | ac_ct_RANLIB=$RANLIB |
| 6796 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6797 | set dummy ranlib; ac_word=$2 |
| 6798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6800 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6802 | else |
| 6803 | if test -n "$ac_ct_RANLIB"; then |
| 6804 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6805 | else |
| 6806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6807 | for as_dir in $PATH |
| 6808 | do |
| 6809 | IFS=$as_save_IFS |
| 6810 | test -z "$as_dir" && as_dir=. |
| 6811 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6813 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6815 | break 2 |
| 6816 | fi |
| 6817 | done |
| 6818 | done |
| 6819 | IFS=$as_save_IFS |
| 6820 | |
| 6821 | fi |
| 6822 | fi |
| 6823 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6824 | if test -n "$ac_ct_RANLIB"; then |
| 6825 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6826 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6827 | else |
| 6828 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6829 | echo "${ECHO_T}no" >&6; } |
| 6830 | fi |
| 6831 | |
| 6832 | if test "x$ac_ct_RANLIB" = x; then |
| 6833 | RANLIB=":" |
| 6834 | else |
| 6835 | case $cross_compiling:$ac_tool_warned in |
| 6836 | yes:) |
| 6837 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6838 | whose name does not start with the host triplet. If you think this |
| 6839 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6840 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6841 | whose name does not start with the host triplet. If you think this |
| 6842 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6843 | ac_tool_warned=yes ;; |
| 6844 | esac |
| 6845 | RANLIB=$ac_ct_RANLIB |
| 6846 | fi |
| 6847 | else |
| 6848 | RANLIB="$ac_cv_prog_RANLIB" |
| 6849 | fi |
| 6850 | |
| 6851 | # Extract the first word of "rm", so it can be a program name with args. |
| 6852 | set dummy rm; ac_word=$2 |
| 6853 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6855 | if test "${ac_cv_path_RM+set}" = set; then |
| 6856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6857 | else |
| 6858 | case $RM in |
| 6859 | [\\/]* | ?:[\\/]*) |
| 6860 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6861 | ;; |
| 6862 | *) |
| 6863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6864 | for as_dir in $PATH |
| 6865 | do |
| 6866 | IFS=$as_save_IFS |
| 6867 | test -z "$as_dir" && as_dir=. |
| 6868 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6870 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6872 | break 2 |
| 6873 | fi |
| 6874 | done |
| 6875 | done |
| 6876 | IFS=$as_save_IFS |
| 6877 | |
| 6878 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6879 | ;; |
| 6880 | esac |
| 6881 | fi |
| 6882 | RM=$ac_cv_path_RM |
| 6883 | if test -n "$RM"; then |
| 6884 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6885 | echo "${ECHO_T}$RM" >&6; } |
| 6886 | else |
| 6887 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6888 | echo "${ECHO_T}no" >&6; } |
| 6889 | fi |
| 6890 | |
| 6891 | |
| 6892 | # Extract the first word of "sed", so it can be a program name with args. |
| 6893 | set dummy sed; ac_word=$2 |
| 6894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6896 | if test "${ac_cv_path_SED+set}" = set; then |
| 6897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6898 | else |
| 6899 | case $SED in |
| 6900 | [\\/]* | ?:[\\/]*) |
| 6901 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6902 | ;; |
| 6903 | *) |
| 6904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6905 | for as_dir in $PATH |
| 6906 | do |
| 6907 | IFS=$as_save_IFS |
| 6908 | test -z "$as_dir" && as_dir=. |
| 6909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6911 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 6912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6913 | break 2 |
| 6914 | fi |
| 6915 | done |
| 6916 | done |
| 6917 | IFS=$as_save_IFS |
| 6918 | |
| 6919 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6920 | ;; |
| 6921 | esac |
| 6922 | fi |
| 6923 | SED=$ac_cv_path_SED |
| 6924 | if test -n "$SED"; then |
| 6925 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6926 | echo "${ECHO_T}$SED" >&6; } |
| 6927 | else |
| 6928 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6929 | echo "${ECHO_T}no" >&6; } |
| 6930 | fi |
| 6931 | |
| 6932 | |
| 6933 | # Extract the first word of "tar", so it can be a program name with args. |
| 6934 | set dummy tar; ac_word=$2 |
| 6935 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6937 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6939 | else |
| 6940 | case $TAR in |
| 6941 | [\\/]* | ?:[\\/]*) |
| 6942 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6943 | ;; |
| 6944 | *) |
| 6945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6946 | for as_dir in $PATH |
| 6947 | do |
| 6948 | IFS=$as_save_IFS |
| 6949 | test -z "$as_dir" && as_dir=. |
| 6950 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6952 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 6953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6954 | break 2 |
| 6955 | fi |
| 6956 | done |
| 6957 | done |
| 6958 | IFS=$as_save_IFS |
| 6959 | |
| 6960 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6961 | ;; |
| 6962 | esac |
| 6963 | fi |
| 6964 | TAR=$ac_cv_path_TAR |
| 6965 | if test -n "$TAR"; then |
| 6966 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6967 | echo "${ECHO_T}$TAR" >&6; } |
| 6968 | else |
| 6969 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6970 | echo "${ECHO_T}no" >&6; } |
| 6971 | fi |
| 6972 | |
| 6973 | |
| 6974 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6975 | set dummy pwd; ac_word=$2 |
| 6976 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6978 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6980 | else |
| 6981 | case $BINPWD in |
| 6982 | [\\/]* | ?:[\\/]*) |
| 6983 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6984 | ;; |
| 6985 | *) |
| 6986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6987 | for as_dir in $PATH |
| 6988 | do |
| 6989 | IFS=$as_save_IFS |
| 6990 | test -z "$as_dir" && as_dir=. |
| 6991 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6993 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 6994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6995 | break 2 |
| 6996 | fi |
| 6997 | done |
| 6998 | done |
| 6999 | IFS=$as_save_IFS |
| 7000 | |
| 7001 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7002 | ;; |
| 7003 | esac |
| 7004 | fi |
| 7005 | BINPWD=$ac_cv_path_BINPWD |
| 7006 | if test -n "$BINPWD"; then |
| 7007 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7008 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7009 | else |
| 7010 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7011 | echo "${ECHO_T}no" >&6; } |
| 7012 | fi |
| 7013 | |
| 7014 | |
| 7015 | |
| 7016 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7017 | set dummy Graphviz; ac_word=$2 |
| 7018 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7020 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7022 | else |
| 7023 | case $GRAPHVIZ in |
| 7024 | [\\/]* | ?:[\\/]*) |
| 7025 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7026 | ;; |
| 7027 | *) |
| 7028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7029 | for as_dir in $PATH |
| 7030 | do |
| 7031 | IFS=$as_save_IFS |
| 7032 | test -z "$as_dir" && as_dir=. |
| 7033 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7035 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7037 | break 2 |
| 7038 | fi |
| 7039 | done |
| 7040 | done |
| 7041 | IFS=$as_save_IFS |
| 7042 | |
| 7043 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7044 | ;; |
| 7045 | esac |
| 7046 | fi |
| 7047 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7048 | if test -n "$GRAPHVIZ"; then |
| 7049 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7050 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7051 | else |
| 7052 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7053 | echo "${ECHO_T}no" >&6; } |
| 7054 | fi |
| 7055 | |
| 7056 | |
| 7057 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7058 | |
| 7059 | cat >>confdefs.h <<\_ACEOF |
| 7060 | #define HAVE_GRAPHVIZ 1 |
| 7061 | _ACEOF |
| 7062 | |
| 7063 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7064 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7065 | fi |
| 7066 | |
| 7067 | cat >>confdefs.h <<_ACEOF |
| 7068 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7069 | _ACEOF |
| 7070 | |
| 7071 | fi |
| 7072 | # Extract the first word of "dot", so it can be a program name with args. |
| 7073 | set dummy dot; ac_word=$2 |
| 7074 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7076 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7078 | else |
| 7079 | case $DOT in |
| 7080 | [\\/]* | ?:[\\/]*) |
| 7081 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7082 | ;; |
| 7083 | *) |
| 7084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7085 | for as_dir in $PATH |
| 7086 | do |
| 7087 | IFS=$as_save_IFS |
| 7088 | test -z "$as_dir" && as_dir=. |
| 7089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7091 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7093 | break 2 |
| 7094 | fi |
| 7095 | done |
| 7096 | done |
| 7097 | IFS=$as_save_IFS |
| 7098 | |
| 7099 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7100 | ;; |
| 7101 | esac |
| 7102 | fi |
| 7103 | DOT=$ac_cv_path_DOT |
| 7104 | if test -n "$DOT"; then |
| 7105 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7106 | echo "${ECHO_T}$DOT" >&6; } |
| 7107 | else |
| 7108 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7109 | echo "${ECHO_T}no" >&6; } |
| 7110 | fi |
| 7111 | |
| 7112 | |
| 7113 | if test "$DOT" != "echo dot" ; then |
| 7114 | |
| 7115 | cat >>confdefs.h <<\_ACEOF |
| 7116 | #define HAVE_DOT 1 |
| 7117 | _ACEOF |
| 7118 | |
| 7119 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7120 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7121 | fi |
| 7122 | |
| 7123 | cat >>confdefs.h <<_ACEOF |
| 7124 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7125 | _ACEOF |
| 7126 | |
| 7127 | fi |
| 7128 | for ac_prog in gv gsview32 |
| 7129 | do |
| 7130 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7131 | set dummy $ac_prog; ac_word=$2 |
| 7132 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7133 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7134 | if test "${ac_cv_path_GV+set}" = set; then |
| 7135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7136 | else |
| 7137 | case $GV in |
| 7138 | [\\/]* | ?:[\\/]*) |
| 7139 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7140 | ;; |
| 7141 | *) |
| 7142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7143 | for as_dir in $PATH |
| 7144 | do |
| 7145 | IFS=$as_save_IFS |
| 7146 | test -z "$as_dir" && as_dir=. |
| 7147 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7149 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7151 | break 2 |
| 7152 | fi |
| 7153 | done |
| 7154 | done |
| 7155 | IFS=$as_save_IFS |
| 7156 | |
| 7157 | ;; |
| 7158 | esac |
| 7159 | fi |
| 7160 | GV=$ac_cv_path_GV |
| 7161 | if test -n "$GV"; then |
| 7162 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7163 | echo "${ECHO_T}$GV" >&6; } |
| 7164 | else |
| 7165 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7166 | echo "${ECHO_T}no" >&6; } |
| 7167 | fi |
| 7168 | |
| 7169 | |
| 7170 | test -n "$GV" && break |
| 7171 | done |
| 7172 | test -n "$GV" || GV="echo gv" |
| 7173 | |
| 7174 | if test "$GV" != "echo gv" ; then |
| 7175 | |
| 7176 | cat >>confdefs.h <<\_ACEOF |
| 7177 | #define HAVE_GV 1 |
| 7178 | _ACEOF |
| 7179 | |
| 7180 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7181 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7182 | fi |
| 7183 | |
| 7184 | cat >>confdefs.h <<_ACEOF |
| 7185 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7186 | _ACEOF |
| 7187 | |
| 7188 | fi |
| 7189 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7190 | set dummy dotty; ac_word=$2 |
| 7191 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7193 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7195 | else |
| 7196 | case $DOTTY in |
| 7197 | [\\/]* | ?:[\\/]*) |
| 7198 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7199 | ;; |
| 7200 | *) |
| 7201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7202 | for as_dir in $PATH |
| 7203 | do |
| 7204 | IFS=$as_save_IFS |
| 7205 | test -z "$as_dir" && as_dir=. |
| 7206 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7207 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7208 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7210 | break 2 |
| 7211 | fi |
| 7212 | done |
| 7213 | done |
| 7214 | IFS=$as_save_IFS |
| 7215 | |
| 7216 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7217 | ;; |
| 7218 | esac |
| 7219 | fi |
| 7220 | DOTTY=$ac_cv_path_DOTTY |
| 7221 | if test -n "$DOTTY"; then |
| 7222 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7223 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7224 | else |
| 7225 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7226 | echo "${ECHO_T}no" >&6; } |
| 7227 | fi |
| 7228 | |
| 7229 | |
| 7230 | if test "$DOTTY" != "echo dotty" ; then |
| 7231 | |
| 7232 | cat >>confdefs.h <<\_ACEOF |
| 7233 | #define HAVE_DOTTY 1 |
| 7234 | _ACEOF |
| 7235 | |
| 7236 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7237 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7238 | fi |
| 7239 | |
| 7240 | cat >>confdefs.h <<_ACEOF |
| 7241 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7242 | _ACEOF |
| 7243 | |
| 7244 | fi |
| 7245 | |
| 7246 | |
| 7247 | # Extract the first word of "perl", so it can be a program name with args. |
| 7248 | set dummy perl; ac_word=$2 |
| 7249 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7251 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7253 | else |
| 7254 | case $PERL in |
| 7255 | [\\/]* | ?:[\\/]*) |
| 7256 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7257 | ;; |
| 7258 | *) |
| 7259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7260 | for as_dir in $PATH |
| 7261 | do |
| 7262 | IFS=$as_save_IFS |
| 7263 | test -z "$as_dir" && as_dir=. |
| 7264 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7266 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7267 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7268 | break 2 |
| 7269 | fi |
| 7270 | done |
| 7271 | done |
| 7272 | IFS=$as_save_IFS |
| 7273 | |
| 7274 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7275 | ;; |
| 7276 | esac |
| 7277 | fi |
| 7278 | PERL=$ac_cv_path_PERL |
| 7279 | if test -n "$PERL"; then |
| 7280 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7281 | echo "${ECHO_T}$PERL" >&6; } |
| 7282 | else |
| 7283 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7284 | echo "${ECHO_T}no" >&6; } |
| 7285 | fi |
| 7286 | |
| 7287 | |
| 7288 | if test "$PERL" != "none"; then |
| 7289 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7290 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7291 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7292 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7293 | echo "${ECHO_T}yes" >&6; } |
| 7294 | else |
| 7295 | PERL=none |
| 7296 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7297 | echo "${ECHO_T}not found" >&6; } |
| 7298 | fi |
| 7299 | fi |
| 7300 | |
| 7301 | |
| 7302 | if test x"$PERL" = xnone; then |
| 7303 | HAVE_PERL=0 |
| 7304 | |
| 7305 | else |
| 7306 | HAVE_PERL=1 |
| 7307 | |
| 7308 | fi |
| 7309 | |
| 7310 | # Find a good install program. We prefer a C program (faster), |
| 7311 | # so one script is as good as another. But avoid the broken or |
| 7312 | # incompatible versions: |
| 7313 | # SysV /etc/install, /usr/sbin/install |
| 7314 | # SunOS /usr/etc/install |
| 7315 | # IRIX /sbin/install |
| 7316 | # AIX /bin/install |
| 7317 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7318 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7319 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7320 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7321 | # OS/2's system install, which has a completely different semantic |
| 7322 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7323 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7324 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7325 | if test -z "$INSTALL"; then |
| 7326 | if test "${ac_cv_path_install+set}" = set; then |
| 7327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7328 | else |
| 7329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7330 | for as_dir in $PATH |
| 7331 | do |
| 7332 | IFS=$as_save_IFS |
| 7333 | test -z "$as_dir" && as_dir=. |
| 7334 | # Account for people who put trailing slashes in PATH elements. |
| 7335 | case $as_dir/ in |
| 7336 | ./ | .// | /cC/* | \ |
| 7337 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7338 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7339 | /usr/ucb/* ) ;; |
| 7340 | *) |
| 7341 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7342 | # Don't use installbsd from OSF since it installs stuff as root |
| 7343 | # by default. |
| 7344 | for ac_prog in ginstall scoinst install; do |
| 7345 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7346 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 7347 | if test $ac_prog = install && |
| 7348 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7349 | # AIX install. It has an incompatible calling convention. |
| 7350 | : |
| 7351 | elif test $ac_prog = install && |
| 7352 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7353 | # program-specific install script used by HP pwplus--don't use. |
| 7354 | : |
| 7355 | else |
| 7356 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7357 | break 3 |
| 7358 | fi |
| 7359 | fi |
| 7360 | done |
| 7361 | done |
| 7362 | ;; |
| 7363 | esac |
| 7364 | done |
| 7365 | IFS=$as_save_IFS |
| 7366 | |
| 7367 | |
| 7368 | fi |
| 7369 | if test "${ac_cv_path_install+set}" = set; then |
| 7370 | INSTALL=$ac_cv_path_install |
| 7371 | else |
| 7372 | # As a last resort, use the slow shell script. Don't cache a |
| 7373 | # value for INSTALL within a source directory, because that will |
| 7374 | # break other packages using the cache if that directory is |
| 7375 | # removed, or if the value is a relative name. |
| 7376 | INSTALL=$ac_install_sh |
| 7377 | fi |
| 7378 | fi |
| 7379 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7380 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7381 | |
| 7382 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7383 | # It thinks the first close brace ends the variable substitution. |
| 7384 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7385 | |
| 7386 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7387 | |
| 7388 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7389 | |
| 7390 | |
| 7391 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7392 | set dummy bzip2; ac_word=$2 |
| 7393 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7395 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7397 | else |
| 7398 | case $BZIP2 in |
| 7399 | [\\/]* | ?:[\\/]*) |
| 7400 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7401 | ;; |
| 7402 | *) |
| 7403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7404 | for as_dir in $PATH |
| 7405 | do |
| 7406 | IFS=$as_save_IFS |
| 7407 | test -z "$as_dir" && as_dir=. |
| 7408 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7410 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7412 | break 2 |
| 7413 | fi |
| 7414 | done |
| 7415 | done |
| 7416 | IFS=$as_save_IFS |
| 7417 | |
| 7418 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found"" |
| 7419 | ;; |
| 7420 | esac |
| 7421 | fi |
| 7422 | BZIP2=$ac_cv_path_BZIP2 |
| 7423 | if test -n "$BZIP2"; then |
| 7424 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7425 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7426 | else |
| 7427 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7428 | echo "${ECHO_T}no" >&6; } |
| 7429 | fi |
| 7430 | |
| 7431 | |
| 7432 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7433 | set dummy doxygen; ac_word=$2 |
| 7434 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7436 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7438 | else |
| 7439 | case $DOXYGEN in |
| 7440 | [\\/]* | ?:[\\/]*) |
| 7441 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7442 | ;; |
| 7443 | *) |
| 7444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7445 | for as_dir in $PATH |
| 7446 | do |
| 7447 | IFS=$as_save_IFS |
| 7448 | test -z "$as_dir" && as_dir=. |
| 7449 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7451 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7453 | break 2 |
| 7454 | fi |
| 7455 | done |
| 7456 | done |
| 7457 | IFS=$as_save_IFS |
| 7458 | |
| 7459 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found"" |
| 7460 | ;; |
| 7461 | esac |
| 7462 | fi |
| 7463 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7464 | if test -n "$DOXYGEN"; then |
| 7465 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7466 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7467 | else |
| 7468 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7469 | echo "${ECHO_T}no" >&6; } |
| 7470 | fi |
| 7471 | |
| 7472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7473 | # Extract the first word of "groff", so it can be a program name with args. |
| 7474 | set dummy groff; ac_word=$2 |
| 7475 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7477 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7479 | else |
| 7480 | case $GROFF in |
| 7481 | [\\/]* | ?:[\\/]*) |
| 7482 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7483 | ;; |
| 7484 | *) |
| 7485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7486 | for as_dir in $PATH |
| 7487 | do |
| 7488 | IFS=$as_save_IFS |
| 7489 | test -z "$as_dir" && as_dir=. |
| 7490 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7492 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7494 | break 2 |
| 7495 | fi |
| 7496 | done |
| 7497 | done |
| 7498 | IFS=$as_save_IFS |
| 7499 | |
| 7500 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found"" |
| 7501 | ;; |
| 7502 | esac |
| 7503 | fi |
| 7504 | GROFF=$ac_cv_path_GROFF |
| 7505 | if test -n "$GROFF"; then |
| 7506 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7507 | echo "${ECHO_T}$GROFF" >&6; } |
| 7508 | else |
| 7509 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7510 | echo "${ECHO_T}no" >&6; } |
| 7511 | fi |
| 7512 | |
| 7513 | |
| 7514 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7515 | set dummy gzip; ac_word=$2 |
| 7516 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7518 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7520 | else |
| 7521 | case $GZIP in |
| 7522 | [\\/]* | ?:[\\/]*) |
| 7523 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7524 | ;; |
| 7525 | *) |
| 7526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7527 | for as_dir in $PATH |
| 7528 | do |
| 7529 | IFS=$as_save_IFS |
| 7530 | test -z "$as_dir" && as_dir=. |
| 7531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7533 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7535 | break 2 |
| 7536 | fi |
| 7537 | done |
| 7538 | done |
| 7539 | IFS=$as_save_IFS |
| 7540 | |
| 7541 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found"" |
| 7542 | ;; |
| 7543 | esac |
| 7544 | fi |
| 7545 | GZIP=$ac_cv_path_GZIP |
| 7546 | if test -n "$GZIP"; then |
| 7547 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7548 | echo "${ECHO_T}$GZIP" >&6; } |
| 7549 | else |
| 7550 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7551 | echo "${ECHO_T}no" >&6; } |
| 7552 | fi |
| 7553 | |
| 7554 | |
| 7555 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7556 | set dummy pod2html; ac_word=$2 |
| 7557 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7559 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7561 | else |
| 7562 | case $POD2HTML in |
| 7563 | [\\/]* | ?:[\\/]*) |
| 7564 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7565 | ;; |
| 7566 | *) |
| 7567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7568 | for as_dir in $PATH |
| 7569 | do |
| 7570 | IFS=$as_save_IFS |
| 7571 | test -z "$as_dir" && as_dir=. |
| 7572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7573 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7574 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7576 | break 2 |
| 7577 | fi |
| 7578 | done |
| 7579 | done |
| 7580 | IFS=$as_save_IFS |
| 7581 | |
| 7582 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found"" |
| 7583 | ;; |
| 7584 | esac |
| 7585 | fi |
| 7586 | POD2HTML=$ac_cv_path_POD2HTML |
| 7587 | if test -n "$POD2HTML"; then |
| 7588 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7589 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7590 | else |
| 7591 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7592 | echo "${ECHO_T}no" >&6; } |
| 7593 | fi |
| 7594 | |
| 7595 | |
| 7596 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7597 | set dummy pod2man; ac_word=$2 |
| 7598 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7600 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7602 | else |
| 7603 | case $POD2MAN in |
| 7604 | [\\/]* | ?:[\\/]*) |
| 7605 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7606 | ;; |
| 7607 | *) |
| 7608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7609 | for as_dir in $PATH |
| 7610 | do |
| 7611 | IFS=$as_save_IFS |
| 7612 | test -z "$as_dir" && as_dir=. |
| 7613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7615 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7617 | break 2 |
| 7618 | fi |
| 7619 | done |
| 7620 | done |
| 7621 | IFS=$as_save_IFS |
| 7622 | |
| 7623 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found"" |
| 7624 | ;; |
| 7625 | esac |
| 7626 | fi |
| 7627 | POD2MAN=$ac_cv_path_POD2MAN |
| 7628 | if test -n "$POD2MAN"; then |
| 7629 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7630 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7631 | else |
| 7632 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7633 | echo "${ECHO_T}no" >&6; } |
| 7634 | fi |
| 7635 | |
| 7636 | |
| 7637 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7638 | set dummy runtest; ac_word=$2 |
| 7639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7641 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7643 | else |
| 7644 | case $RUNTEST in |
| 7645 | [\\/]* | ?:[\\/]*) |
| 7646 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7647 | ;; |
| 7648 | *) |
| 7649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7650 | for as_dir in $PATH |
| 7651 | do |
| 7652 | IFS=$as_save_IFS |
| 7653 | test -z "$as_dir" && as_dir=. |
| 7654 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7656 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7658 | break 2 |
| 7659 | fi |
| 7660 | done |
| 7661 | done |
| 7662 | IFS=$as_save_IFS |
| 7663 | |
| 7664 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found"" |
| 7665 | ;; |
| 7666 | esac |
| 7667 | fi |
| 7668 | RUNTEST=$ac_cv_path_RUNTEST |
| 7669 | if test -n "$RUNTEST"; then |
| 7670 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7671 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7672 | else |
| 7673 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7674 | echo "${ECHO_T}no" >&6; } |
| 7675 | fi |
| 7676 | |
| 7677 | |
| 7678 | |
| 7679 | no_itcl=true |
| 7680 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7681 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7682 | |
| 7683 | # Check whether --with-tclinclude was given. |
| 7684 | if test "${with_tclinclude+set}" = set; then |
| 7685 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7686 | else |
| 7687 | with_tclinclude='' |
| 7688 | fi |
| 7689 | |
| 7690 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7692 | else |
| 7693 | |
| 7694 | if test x"${with_tclinclude}" != x ; then |
| 7695 | if test -f ${with_tclinclude}/tclsh ; then |
| 7696 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7697 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7698 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7699 | else |
| 7700 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7701 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7702 | { (exit 1); exit 1; }; } |
| 7703 | fi |
| 7704 | fi |
| 7705 | |
| 7706 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7707 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7708 | echo "${ECHO_T}none" >&6; } |
| 7709 | 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 |
| 7710 | do |
| 7711 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7712 | set dummy $ac_prog; ac_word=$2 |
| 7713 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7715 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7717 | else |
| 7718 | case $TCLSH in |
| 7719 | [\\/]* | ?:[\\/]*) |
| 7720 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7721 | ;; |
| 7722 | *) |
| 7723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7724 | for as_dir in $PATH |
| 7725 | do |
| 7726 | IFS=$as_save_IFS |
| 7727 | test -z "$as_dir" && as_dir=. |
| 7728 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7729 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7730 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7731 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7732 | break 2 |
| 7733 | fi |
| 7734 | done |
| 7735 | done |
| 7736 | IFS=$as_save_IFS |
| 7737 | |
| 7738 | ;; |
| 7739 | esac |
| 7740 | fi |
| 7741 | TCLSH=$ac_cv_path_TCLSH |
| 7742 | if test -n "$TCLSH"; then |
| 7743 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7744 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7745 | else |
| 7746 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7747 | echo "${ECHO_T}no" >&6; } |
| 7748 | fi |
| 7749 | |
| 7750 | |
| 7751 | test -n "$TCLSH" && break |
| 7752 | done |
| 7753 | |
| 7754 | if test x"${TCLSH}" = x ; then |
| 7755 | ac_cv_path_tclsh=''; |
| 7756 | else |
| 7757 | ac_cv_path_tclsh="${TCLSH}"; |
| 7758 | fi |
| 7759 | else |
| 7760 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7761 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7762 | TCLSH="${ac_cv_path_tclsh}" |
| 7763 | |
| 7764 | fi |
| 7765 | |
| 7766 | fi |
| 7767 | |
| 7768 | # Extract the first word of "zip", so it can be a program name with args. |
| 7769 | set dummy zip; ac_word=$2 |
| 7770 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7772 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7774 | else |
| 7775 | case $ZIP in |
| 7776 | [\\/]* | ?:[\\/]*) |
| 7777 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7778 | ;; |
| 7779 | *) |
| 7780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7781 | for as_dir in $PATH |
| 7782 | do |
| 7783 | IFS=$as_save_IFS |
| 7784 | test -z "$as_dir" && as_dir=. |
| 7785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7787 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7789 | break 2 |
| 7790 | fi |
| 7791 | done |
| 7792 | done |
| 7793 | IFS=$as_save_IFS |
| 7794 | |
| 7795 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found"" |
| 7796 | ;; |
| 7797 | esac |
| 7798 | fi |
| 7799 | ZIP=$ac_cv_path_ZIP |
| 7800 | if test -n "$ZIP"; then |
| 7801 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7802 | echo "${ECHO_T}$ZIP" >&6; } |
| 7803 | else |
| 7804 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7805 | echo "${ECHO_T}no" >&6; } |
| 7806 | fi |
| 7807 | |
| 7808 | |
| 7809 | |
| 7810 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7811 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7812 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7814 | else |
| 7815 | ac_ext=c |
| 7816 | ac_cpp='$CPP $CPPFLAGS' |
| 7817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7820 | |
| 7821 | oldcflags="$CFLAGS" |
| 7822 | CFLAGS="$CFLAGS -Wl,-R." |
| 7823 | cat >conftest.$ac_ext <<_ACEOF |
| 7824 | /* confdefs.h. */ |
| 7825 | _ACEOF |
| 7826 | cat confdefs.h >>conftest.$ac_ext |
| 7827 | cat >>conftest.$ac_ext <<_ACEOF |
| 7828 | /* end confdefs.h. */ |
| 7829 | |
| 7830 | int |
| 7831 | main () |
| 7832 | { |
| 7833 | int main() { return 0; } |
| 7834 | ; |
| 7835 | return 0; |
| 7836 | } |
| 7837 | _ACEOF |
| 7838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7839 | if { (ac_try="$ac_link" |
| 7840 | case "(($ac_try" in |
| 7841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7842 | *) ac_try_echo=$ac_try;; |
| 7843 | esac |
| 7844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7845 | (eval "$ac_link") 2>conftest.er1 |
| 7846 | ac_status=$? |
| 7847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7848 | rm -f conftest.er1 |
| 7849 | cat conftest.err >&5 |
| 7850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7851 | (exit $ac_status); } && |
| 7852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7853 | { (case "(($ac_try" in |
| 7854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7855 | *) ac_try_echo=$ac_try;; |
| 7856 | esac |
| 7857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7858 | (eval "$ac_try") 2>&5 |
| 7859 | ac_status=$? |
| 7860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7861 | (exit $ac_status); }; } && |
| 7862 | { ac_try='test -s conftest$ac_exeext' |
| 7863 | { (case "(($ac_try" in |
| 7864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7865 | *) ac_try_echo=$ac_try;; |
| 7866 | esac |
| 7867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7868 | (eval "$ac_try") 2>&5 |
| 7869 | ac_status=$? |
| 7870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7871 | (exit $ac_status); }; }; then |
| 7872 | llvm_cv_link_use_r=yes |
| 7873 | else |
| 7874 | echo "$as_me: failed program was:" >&5 |
| 7875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7876 | |
| 7877 | llvm_cv_link_use_r=no |
| 7878 | fi |
| 7879 | |
| 7880 | rm -f core conftest.err conftest.$ac_objext \ |
| 7881 | conftest$ac_exeext conftest.$ac_ext |
| 7882 | CFLAGS="$oldcflags" |
| 7883 | ac_ext=c |
| 7884 | ac_cpp='$CPP $CPPFLAGS' |
| 7885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7888 | |
| 7889 | |
| 7890 | fi |
| 7891 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7892 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 7893 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7894 | |
| 7895 | cat >>confdefs.h <<\_ACEOF |
| 7896 | #define HAVE_LINK_R 1 |
| 7897 | _ACEOF |
| 7898 | |
| 7899 | fi |
| 7900 | |
| 7901 | |
| 7902 | |
| 7903 | |
| 7904 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7905 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 7906 | if test "${ac_cv_c_const+set}" = set; then |
| 7907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7908 | else |
| 7909 | cat >conftest.$ac_ext <<_ACEOF |
| 7910 | /* confdefs.h. */ |
| 7911 | _ACEOF |
| 7912 | cat confdefs.h >>conftest.$ac_ext |
| 7913 | cat >>conftest.$ac_ext <<_ACEOF |
| 7914 | /* end confdefs.h. */ |
| 7915 | |
| 7916 | int |
| 7917 | main () |
| 7918 | { |
| 7919 | /* FIXME: Include the comments suggested by Paul. */ |
| 7920 | #ifndef __cplusplus |
| 7921 | /* Ultrix mips cc rejects this. */ |
| 7922 | typedef int charset[2]; |
| 7923 | const charset x; |
| 7924 | /* SunOS 4.1.1 cc rejects this. */ |
| 7925 | char const *const *ccp; |
| 7926 | char **p; |
| 7927 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 7928 | struct point {int x, y;}; |
| 7929 | static struct point const zero = {0,0}; |
| 7930 | /* AIX XL C 1.02.0.0 rejects this. |
| 7931 | It does not let you subtract one const X* pointer from another in |
| 7932 | an arm of an if-expression whose if-part is not a constant |
| 7933 | expression */ |
| 7934 | const char *g = "string"; |
| 7935 | ccp = &g + (g ? g-g : 0); |
| 7936 | /* HPUX 7.0 cc rejects these. */ |
| 7937 | ++ccp; |
| 7938 | p = (char**) ccp; |
| 7939 | ccp = (char const *const *) p; |
| 7940 | { /* SCO 3.2v4 cc rejects this. */ |
| 7941 | char *t; |
| 7942 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 7943 | |
| 7944 | *t++ = 0; |
| 7945 | if (s) return 0; |
| 7946 | } |
| 7947 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 7948 | int x[] = {25, 17}; |
| 7949 | const int *foo = &x[0]; |
| 7950 | ++foo; |
| 7951 | } |
| 7952 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 7953 | typedef const int *iptr; |
| 7954 | iptr p = 0; |
| 7955 | ++p; |
| 7956 | } |
| 7957 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 7958 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 7959 | struct s { int j; const int *ap[3]; }; |
| 7960 | struct s *b; b->j = 5; |
| 7961 | } |
| 7962 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 7963 | const int foo = 10; |
| 7964 | if (!foo) return 0; |
| 7965 | } |
| 7966 | return !x[0] && !zero.x; |
| 7967 | #endif |
| 7968 | |
| 7969 | ; |
| 7970 | return 0; |
| 7971 | } |
| 7972 | _ACEOF |
| 7973 | rm -f conftest.$ac_objext |
| 7974 | if { (ac_try="$ac_compile" |
| 7975 | case "(($ac_try" in |
| 7976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7977 | *) ac_try_echo=$ac_try;; |
| 7978 | esac |
| 7979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7980 | (eval "$ac_compile") 2>conftest.er1 |
| 7981 | ac_status=$? |
| 7982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7983 | rm -f conftest.er1 |
| 7984 | cat conftest.err >&5 |
| 7985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7986 | (exit $ac_status); } && |
| 7987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7988 | { (case "(($ac_try" in |
| 7989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7990 | *) ac_try_echo=$ac_try;; |
| 7991 | esac |
| 7992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7993 | (eval "$ac_try") 2>&5 |
| 7994 | ac_status=$? |
| 7995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7996 | (exit $ac_status); }; } && |
| 7997 | { ac_try='test -s conftest.$ac_objext' |
| 7998 | { (case "(($ac_try" in |
| 7999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8000 | *) ac_try_echo=$ac_try;; |
| 8001 | esac |
| 8002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8003 | (eval "$ac_try") 2>&5 |
| 8004 | ac_status=$? |
| 8005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8006 | (exit $ac_status); }; }; then |
| 8007 | ac_cv_c_const=yes |
| 8008 | else |
| 8009 | echo "$as_me: failed program was:" >&5 |
| 8010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8011 | |
| 8012 | ac_cv_c_const=no |
| 8013 | fi |
| 8014 | |
| 8015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8016 | fi |
| 8017 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8018 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8019 | if test $ac_cv_c_const = no; then |
| 8020 | |
| 8021 | cat >>confdefs.h <<\_ACEOF |
| 8022 | #define const |
| 8023 | _ACEOF |
| 8024 | |
| 8025 | fi |
| 8026 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8027 | |
| 8028 | |
| 8029 | |
| 8030 | |
| 8031 | |
| 8032 | ac_header_dirent=no |
| 8033 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8034 | 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] | 8035 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8036 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8037 | 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] | 8038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8039 | else |
| 8040 | cat >conftest.$ac_ext <<_ACEOF |
| 8041 | /* confdefs.h. */ |
| 8042 | _ACEOF |
| 8043 | cat confdefs.h >>conftest.$ac_ext |
| 8044 | cat >>conftest.$ac_ext <<_ACEOF |
| 8045 | /* end confdefs.h. */ |
| 8046 | #include <sys/types.h> |
| 8047 | #include <$ac_hdr> |
| 8048 | |
| 8049 | int |
| 8050 | main () |
| 8051 | { |
| 8052 | if ((DIR *) 0) |
| 8053 | return 0; |
| 8054 | ; |
| 8055 | return 0; |
| 8056 | } |
| 8057 | _ACEOF |
| 8058 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8059 | if { (ac_try="$ac_compile" |
| 8060 | case "(($ac_try" in |
| 8061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8062 | *) ac_try_echo=$ac_try;; |
| 8063 | esac |
| 8064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8065 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8066 | ac_status=$? |
| 8067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8068 | rm -f conftest.er1 |
| 8069 | cat conftest.err >&5 |
| 8070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8071 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8073 | { (case "(($ac_try" in |
| 8074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8075 | *) ac_try_echo=$ac_try;; |
| 8076 | esac |
| 8077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8078 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8079 | ac_status=$? |
| 8080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8081 | (exit $ac_status); }; } && |
| 8082 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8083 | { (case "(($ac_try" in |
| 8084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8085 | *) ac_try_echo=$ac_try;; |
| 8086 | esac |
| 8087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8088 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8089 | ac_status=$? |
| 8090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8091 | (exit $ac_status); }; }; then |
| 8092 | eval "$as_ac_Header=yes" |
| 8093 | else |
| 8094 | echo "$as_me: failed program was:" >&5 |
| 8095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8097 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8099 | |
| 8100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8101 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8102 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8103 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8104 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8105 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8106 | cat >>confdefs.h <<_ACEOF |
| 8107 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8108 | _ACEOF |
| 8109 | |
| 8110 | ac_header_dirent=$ac_hdr; break |
| 8111 | fi |
| 8112 | |
| 8113 | done |
| 8114 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8115 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8116 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8117 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8118 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8120 | else |
| 8121 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8122 | cat >conftest.$ac_ext <<_ACEOF |
| 8123 | /* confdefs.h. */ |
| 8124 | _ACEOF |
| 8125 | cat confdefs.h >>conftest.$ac_ext |
| 8126 | cat >>conftest.$ac_ext <<_ACEOF |
| 8127 | /* end confdefs.h. */ |
| 8128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8129 | /* Override any GCC internal prototype to avoid an error. |
| 8130 | Use char because int might match the return type of a GCC |
| 8131 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8132 | #ifdef __cplusplus |
| 8133 | extern "C" |
| 8134 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8135 | char opendir (); |
| 8136 | int |
| 8137 | main () |
| 8138 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8139 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8140 | ; |
| 8141 | return 0; |
| 8142 | } |
| 8143 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8144 | for ac_lib in '' dir; do |
| 8145 | if test -z "$ac_lib"; then |
| 8146 | ac_res="none required" |
| 8147 | else |
| 8148 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8149 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8150 | fi |
| 8151 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8152 | if { (ac_try="$ac_link" |
| 8153 | case "(($ac_try" in |
| 8154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8155 | *) ac_try_echo=$ac_try;; |
| 8156 | esac |
| 8157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8158 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8159 | ac_status=$? |
| 8160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8161 | rm -f conftest.er1 |
| 8162 | cat conftest.err >&5 |
| 8163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8164 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8166 | { (case "(($ac_try" in |
| 8167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8168 | *) ac_try_echo=$ac_try;; |
| 8169 | esac |
| 8170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8171 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8172 | ac_status=$? |
| 8173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8174 | (exit $ac_status); }; } && |
| 8175 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8176 | { (case "(($ac_try" in |
| 8177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8178 | *) ac_try_echo=$ac_try;; |
| 8179 | esac |
| 8180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8181 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8182 | ac_status=$? |
| 8183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8184 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8185 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8186 | else |
| 8187 | echo "$as_me: failed program was:" >&5 |
| 8188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8189 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8190 | |
| 8191 | fi |
| 8192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8193 | rm -f core conftest.err conftest.$ac_objext \ |
| 8194 | conftest$ac_exeext |
| 8195 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8196 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8197 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8198 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8199 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8200 | : |
| 8201 | else |
| 8202 | ac_cv_search_opendir=no |
| 8203 | fi |
| 8204 | rm conftest.$ac_ext |
| 8205 | LIBS=$ac_func_search_save_LIBS |
| 8206 | fi |
| 8207 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8208 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8209 | ac_res=$ac_cv_search_opendir |
| 8210 | if test "$ac_res" != no; then |
| 8211 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8213 | fi |
| 8214 | |
| 8215 | else |
| 8216 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8217 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8218 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8220 | else |
| 8221 | ac_func_search_save_LIBS=$LIBS |
| 8222 | cat >conftest.$ac_ext <<_ACEOF |
| 8223 | /* confdefs.h. */ |
| 8224 | _ACEOF |
| 8225 | cat confdefs.h >>conftest.$ac_ext |
| 8226 | cat >>conftest.$ac_ext <<_ACEOF |
| 8227 | /* end confdefs.h. */ |
| 8228 | |
| 8229 | /* Override any GCC internal prototype to avoid an error. |
| 8230 | Use char because int might match the return type of a GCC |
| 8231 | builtin and then its argument prototype would still apply. */ |
| 8232 | #ifdef __cplusplus |
| 8233 | extern "C" |
| 8234 | #endif |
| 8235 | char opendir (); |
| 8236 | int |
| 8237 | main () |
| 8238 | { |
| 8239 | return opendir (); |
| 8240 | ; |
| 8241 | return 0; |
| 8242 | } |
| 8243 | _ACEOF |
| 8244 | for ac_lib in '' x; do |
| 8245 | if test -z "$ac_lib"; then |
| 8246 | ac_res="none required" |
| 8247 | else |
| 8248 | ac_res=-l$ac_lib |
| 8249 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8250 | fi |
| 8251 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8252 | if { (ac_try="$ac_link" |
| 8253 | case "(($ac_try" in |
| 8254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8255 | *) ac_try_echo=$ac_try;; |
| 8256 | esac |
| 8257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8258 | (eval "$ac_link") 2>conftest.er1 |
| 8259 | ac_status=$? |
| 8260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8261 | rm -f conftest.er1 |
| 8262 | cat conftest.err >&5 |
| 8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8264 | (exit $ac_status); } && |
| 8265 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8266 | { (case "(($ac_try" in |
| 8267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8268 | *) ac_try_echo=$ac_try;; |
| 8269 | esac |
| 8270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8271 | (eval "$ac_try") 2>&5 |
| 8272 | ac_status=$? |
| 8273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8274 | (exit $ac_status); }; } && |
| 8275 | { ac_try='test -s conftest$ac_exeext' |
| 8276 | { (case "(($ac_try" in |
| 8277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8278 | *) ac_try_echo=$ac_try;; |
| 8279 | esac |
| 8280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8281 | (eval "$ac_try") 2>&5 |
| 8282 | ac_status=$? |
| 8283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8284 | (exit $ac_status); }; }; then |
| 8285 | ac_cv_search_opendir=$ac_res |
| 8286 | else |
| 8287 | echo "$as_me: failed program was:" >&5 |
| 8288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8289 | |
| 8290 | |
| 8291 | fi |
| 8292 | |
| 8293 | rm -f core conftest.err conftest.$ac_objext \ |
| 8294 | conftest$ac_exeext |
| 8295 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8296 | break |
| 8297 | fi |
| 8298 | done |
| 8299 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8300 | : |
| 8301 | else |
| 8302 | ac_cv_search_opendir=no |
| 8303 | fi |
| 8304 | rm conftest.$ac_ext |
| 8305 | LIBS=$ac_func_search_save_LIBS |
| 8306 | fi |
| 8307 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8308 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8309 | ac_res=$ac_cv_search_opendir |
| 8310 | if test "$ac_res" != no; then |
| 8311 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8312 | |
| 8313 | fi |
| 8314 | |
| 8315 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8316 | |
| 8317 | |
| 8318 | for ac_header in dlfcn.h |
| 8319 | do |
| 8320 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8321 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8322 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8323 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8324 | 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] | 8325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8326 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8327 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8328 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8329 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8330 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8331 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8332 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8333 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8334 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8335 | /* confdefs.h. */ |
| 8336 | _ACEOF |
| 8337 | cat confdefs.h >>conftest.$ac_ext |
| 8338 | cat >>conftest.$ac_ext <<_ACEOF |
| 8339 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8340 | $ac_includes_default |
| 8341 | #include <$ac_header> |
| 8342 | _ACEOF |
| 8343 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8344 | if { (ac_try="$ac_compile" |
| 8345 | case "(($ac_try" in |
| 8346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8347 | *) ac_try_echo=$ac_try;; |
| 8348 | esac |
| 8349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8350 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8351 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8353 | rm -f conftest.er1 |
| 8354 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8356 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8357 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8358 | { (case "(($ac_try" in |
| 8359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8360 | *) ac_try_echo=$ac_try;; |
| 8361 | esac |
| 8362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8363 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8364 | ac_status=$? |
| 8365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8366 | (exit $ac_status); }; } && |
| 8367 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8368 | { (case "(($ac_try" in |
| 8369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8370 | *) ac_try_echo=$ac_try;; |
| 8371 | esac |
| 8372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8373 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8374 | ac_status=$? |
| 8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8376 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8377 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8378 | else |
| 8379 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8381 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8382 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8383 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8384 | |
| 8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8386 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8387 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8388 | |
| 8389 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8390 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8391 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8392 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8393 | /* confdefs.h. */ |
| 8394 | _ACEOF |
| 8395 | cat confdefs.h >>conftest.$ac_ext |
| 8396 | cat >>conftest.$ac_ext <<_ACEOF |
| 8397 | /* end confdefs.h. */ |
| 8398 | #include <$ac_header> |
| 8399 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8400 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8401 | case "(($ac_try" in |
| 8402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8403 | *) ac_try_echo=$ac_try;; |
| 8404 | esac |
| 8405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8406 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8407 | ac_status=$? |
| 8408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8409 | rm -f conftest.er1 |
| 8410 | cat conftest.err >&5 |
| 8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8412 | (exit $ac_status); } >/dev/null; then |
| 8413 | if test -s conftest.err; then |
| 8414 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8415 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8416 | else |
| 8417 | ac_cpp_err= |
| 8418 | fi |
| 8419 | else |
| 8420 | ac_cpp_err=yes |
| 8421 | fi |
| 8422 | if test -z "$ac_cpp_err"; then |
| 8423 | ac_header_preproc=yes |
| 8424 | else |
| 8425 | echo "$as_me: failed program was:" >&5 |
| 8426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8427 | |
| 8428 | ac_header_preproc=no |
| 8429 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8430 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8431 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8432 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8433 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8434 | |
| 8435 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8436 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8437 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8438 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8439 | 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] | 8440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8441 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8442 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8443 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8444 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8449 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8450 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8451 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8452 | 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] | 8453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8454 | 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] | 8455 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8456 | 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] | 8457 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8458 | ## ----------------------------------- ## |
| 8459 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8460 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8461 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8462 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8463 | ;; |
| 8464 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8465 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8467 | 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] | 8468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8469 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8470 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8471 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8472 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8474 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8475 | |
| 8476 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8478 | cat >>confdefs.h <<_ACEOF |
| 8479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8480 | _ACEOF |
| 8481 | |
| 8482 | fi |
| 8483 | |
| 8484 | done |
| 8485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8486 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8487 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8488 | enableval=$enable_ltdl_install; |
| 8489 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8490 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8491 | |
| 8492 | |
| 8493 | |
| 8494 | if test x"${enable_ltdl_install-no}" != xno; then |
| 8495 | INSTALL_LTDL_TRUE= |
| 8496 | INSTALL_LTDL_FALSE='#' |
| 8497 | else |
| 8498 | INSTALL_LTDL_TRUE='#' |
| 8499 | INSTALL_LTDL_FALSE= |
| 8500 | fi |
| 8501 | |
| 8502 | |
| 8503 | |
| 8504 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 8505 | CONVENIENCE_LTDL_TRUE= |
| 8506 | CONVENIENCE_LTDL_FALSE='#' |
| 8507 | else |
| 8508 | CONVENIENCE_LTDL_TRUE='#' |
| 8509 | CONVENIENCE_LTDL_FALSE= |
| 8510 | fi |
| 8511 | |
| 8512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8513 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8514 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8515 | library_names_spec= |
| 8516 | libname_spec='lib$name' |
| 8517 | soname_spec= |
| 8518 | shrext_cmds=".so" |
| 8519 | postinstall_cmds= |
| 8520 | postuninstall_cmds= |
| 8521 | finish_cmds= |
| 8522 | finish_eval= |
| 8523 | shlibpath_var= |
| 8524 | shlibpath_overrides_runpath=unknown |
| 8525 | version_type=none |
| 8526 | dynamic_linker="$host_os ld.so" |
| 8527 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8528 | if test "$GCC" = yes; then |
| 8529 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8530 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8531 | # if the path contains ";" then we assume it to be the separator |
| 8532 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8533 | # assumed that no part of a normal pathname contains ";" but that should |
| 8534 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8535 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8536 | else |
| 8537 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8538 | fi |
| 8539 | else |
| 8540 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8541 | fi |
| 8542 | need_lib_prefix=unknown |
| 8543 | hardcode_into_libs=no |
| 8544 | |
| 8545 | # when you set need_version to no, make sure it does not cause -set_version |
| 8546 | # flags to be left without arguments |
| 8547 | need_version=unknown |
| 8548 | |
| 8549 | case $host_os in |
| 8550 | aix3*) |
| 8551 | version_type=linux |
| 8552 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8553 | shlibpath_var=LIBPATH |
| 8554 | |
| 8555 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8556 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8557 | ;; |
| 8558 | |
| 8559 | aix4* | aix5*) |
| 8560 | version_type=linux |
| 8561 | need_lib_prefix=no |
| 8562 | need_version=no |
| 8563 | hardcode_into_libs=yes |
| 8564 | if test "$host_cpu" = ia64; then |
| 8565 | # AIX 5 supports IA64 |
| 8566 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8567 | shlibpath_var=LD_LIBRARY_PATH |
| 8568 | else |
| 8569 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8570 | # for dependence libraries. The import file would start with |
| 8571 | # the line `#! .'. This would cause the generated library to |
| 8572 | # depend on `.', always an invalid library. This was fixed in |
| 8573 | # development snapshots of GCC prior to 3.0. |
| 8574 | case $host_os in |
| 8575 | aix4 | aix4.[01] | aix4.[01].*) |
| 8576 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8577 | echo ' yes ' |
| 8578 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8579 | : |
| 8580 | else |
| 8581 | can_build_shared=no |
| 8582 | fi |
| 8583 | ;; |
| 8584 | esac |
| 8585 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8586 | # soname into executable. Probably we can add versioning support to |
| 8587 | # collect2, so additional links can be useful in future. |
| 8588 | if test "$aix_use_runtimelinking" = yes; then |
| 8589 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8590 | # instead of lib<name>.a to let people know that these are not |
| 8591 | # typical AIX shared libraries. |
| 8592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8593 | else |
| 8594 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8595 | # and later when we are not doing run time linking. |
| 8596 | library_names_spec='${libname}${release}.a $libname.a' |
| 8597 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8598 | fi |
| 8599 | shlibpath_var=LIBPATH |
| 8600 | fi |
| 8601 | ;; |
| 8602 | |
| 8603 | amigaos*) |
| 8604 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8605 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8606 | 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' |
| 8607 | ;; |
| 8608 | |
| 8609 | beos*) |
| 8610 | library_names_spec='${libname}${shared_ext}' |
| 8611 | dynamic_linker="$host_os ld.so" |
| 8612 | shlibpath_var=LIBRARY_PATH |
| 8613 | ;; |
| 8614 | |
| 8615 | bsdi[45]*) |
| 8616 | version_type=linux |
| 8617 | need_version=no |
| 8618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8619 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8620 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8621 | shlibpath_var=LD_LIBRARY_PATH |
| 8622 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8623 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8624 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8625 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8626 | # libtool to hard-code these into programs |
| 8627 | ;; |
| 8628 | |
| 8629 | cygwin* | mingw* | pw32*) |
| 8630 | version_type=windows |
| 8631 | shrext_cmds=".dll" |
| 8632 | need_version=no |
| 8633 | need_lib_prefix=no |
| 8634 | |
| 8635 | case $GCC,$host_os in |
| 8636 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8637 | library_names_spec='$libname.dll.a' |
| 8638 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8639 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8640 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8641 | dldir=$destdir/`dirname \$dlpath`~ |
| 8642 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8643 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8644 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8645 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8646 | dlpath=$dir/\$dldll~ |
| 8647 | $rm \$dlpath' |
| 8648 | shlibpath_overrides_runpath=yes |
| 8649 | |
| 8650 | case $host_os in |
| 8651 | cygwin*) |
| 8652 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8653 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8654 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8655 | ;; |
| 8656 | mingw*) |
| 8657 | # MinGW DLLs use traditional 'lib' prefix |
| 8658 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8659 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8660 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8661 | # It is most probably a Windows format PATH printed by |
| 8662 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8663 | # path with ; separators, and with drive letters. We can handle the |
| 8664 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8665 | # especially as we might pass files found there to a mingw objdump, |
| 8666 | # which wouldn't understand a cygwinified path. Ahh. |
| 8667 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8668 | else |
| 8669 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8670 | fi |
| 8671 | ;; |
| 8672 | pw32*) |
| 8673 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8674 | 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] | 8675 | ;; |
| 8676 | esac |
| 8677 | ;; |
| 8678 | |
| 8679 | *) |
| 8680 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8681 | ;; |
| 8682 | esac |
| 8683 | dynamic_linker='Win32 ld.exe' |
| 8684 | # FIXME: first we should search . and the directory the executable is in |
| 8685 | shlibpath_var=PATH |
| 8686 | ;; |
| 8687 | |
| 8688 | darwin* | rhapsody*) |
| 8689 | dynamic_linker="$host_os dyld" |
| 8690 | version_type=darwin |
| 8691 | need_lib_prefix=no |
| 8692 | need_version=no |
| 8693 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8694 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8695 | shlibpath_overrides_runpath=yes |
| 8696 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8697 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8698 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8699 | if test "$GCC" = yes; then |
| 8700 | 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"` |
| 8701 | else |
| 8702 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8703 | fi |
| 8704 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8705 | ;; |
| 8706 | |
| 8707 | dgux*) |
| 8708 | version_type=linux |
| 8709 | need_lib_prefix=no |
| 8710 | need_version=no |
| 8711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8712 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8713 | shlibpath_var=LD_LIBRARY_PATH |
| 8714 | ;; |
| 8715 | |
| 8716 | freebsd1*) |
| 8717 | dynamic_linker=no |
| 8718 | ;; |
| 8719 | |
| 8720 | kfreebsd*-gnu) |
| 8721 | version_type=linux |
| 8722 | need_lib_prefix=no |
| 8723 | need_version=no |
| 8724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8725 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8726 | shlibpath_var=LD_LIBRARY_PATH |
| 8727 | shlibpath_overrides_runpath=no |
| 8728 | hardcode_into_libs=yes |
| 8729 | dynamic_linker='GNU ld.so' |
| 8730 | ;; |
| 8731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8732 | freebsd* | dragonfly*) |
| 8733 | # DragonFly does not have aout. When/if they implement a new |
| 8734 | # versioning mechanism, adjust this. |
| 8735 | if test -x /usr/bin/objformat; then |
| 8736 | objformat=`/usr/bin/objformat` |
| 8737 | else |
| 8738 | case $host_os in |
| 8739 | freebsd[123]*) objformat=aout ;; |
| 8740 | *) objformat=elf ;; |
| 8741 | esac |
| 8742 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8743 | version_type=freebsd-$objformat |
| 8744 | case $version_type in |
| 8745 | freebsd-elf*) |
| 8746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8747 | need_version=no |
| 8748 | need_lib_prefix=no |
| 8749 | ;; |
| 8750 | freebsd-*) |
| 8751 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8752 | need_version=yes |
| 8753 | ;; |
| 8754 | esac |
| 8755 | shlibpath_var=LD_LIBRARY_PATH |
| 8756 | case $host_os in |
| 8757 | freebsd2*) |
| 8758 | shlibpath_overrides_runpath=yes |
| 8759 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8760 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8761 | shlibpath_overrides_runpath=yes |
| 8762 | hardcode_into_libs=yes |
| 8763 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8764 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8765 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8766 | shlibpath_overrides_runpath=no |
| 8767 | hardcode_into_libs=yes |
| 8768 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8769 | freebsd*) # from 4.6 on |
| 8770 | shlibpath_overrides_runpath=yes |
| 8771 | hardcode_into_libs=yes |
| 8772 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8773 | esac |
| 8774 | ;; |
| 8775 | |
| 8776 | gnu*) |
| 8777 | version_type=linux |
| 8778 | need_lib_prefix=no |
| 8779 | need_version=no |
| 8780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8781 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8782 | shlibpath_var=LD_LIBRARY_PATH |
| 8783 | hardcode_into_libs=yes |
| 8784 | ;; |
| 8785 | |
| 8786 | hpux9* | hpux10* | hpux11*) |
| 8787 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8788 | # link against other versions. |
| 8789 | version_type=sunos |
| 8790 | need_lib_prefix=no |
| 8791 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8792 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8793 | ia64*) |
| 8794 | shrext_cmds='.so' |
| 8795 | hardcode_into_libs=yes |
| 8796 | dynamic_linker="$host_os dld.so" |
| 8797 | shlibpath_var=LD_LIBRARY_PATH |
| 8798 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8800 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8801 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8802 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8803 | else |
| 8804 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8805 | fi |
| 8806 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8807 | ;; |
| 8808 | hppa*64*) |
| 8809 | shrext_cmds='.sl' |
| 8810 | hardcode_into_libs=yes |
| 8811 | dynamic_linker="$host_os dld.sl" |
| 8812 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8813 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8815 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8816 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8817 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8818 | ;; |
| 8819 | *) |
| 8820 | shrext_cmds='.sl' |
| 8821 | dynamic_linker="$host_os dld.sl" |
| 8822 | shlibpath_var=SHLIB_PATH |
| 8823 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8825 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8826 | ;; |
| 8827 | esac |
| 8828 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8829 | postinstall_cmds='chmod 555 $lib' |
| 8830 | ;; |
| 8831 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8832 | interix3*) |
| 8833 | version_type=linux |
| 8834 | need_lib_prefix=no |
| 8835 | need_version=no |
| 8836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8837 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8838 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8839 | shlibpath_var=LD_LIBRARY_PATH |
| 8840 | shlibpath_overrides_runpath=no |
| 8841 | hardcode_into_libs=yes |
| 8842 | ;; |
| 8843 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8844 | irix5* | irix6* | nonstopux*) |
| 8845 | case $host_os in |
| 8846 | nonstopux*) version_type=nonstopux ;; |
| 8847 | *) |
| 8848 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8849 | version_type=linux |
| 8850 | else |
| 8851 | version_type=irix |
| 8852 | fi ;; |
| 8853 | esac |
| 8854 | need_lib_prefix=no |
| 8855 | need_version=no |
| 8856 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8858 | case $host_os in |
| 8859 | irix5* | nonstopux*) |
| 8860 | libsuff= shlibsuff= |
| 8861 | ;; |
| 8862 | *) |
| 8863 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8864 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8865 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8866 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8867 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8868 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8869 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8870 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8871 | esac |
| 8872 | ;; |
| 8873 | esac |
| 8874 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8875 | shlibpath_overrides_runpath=no |
| 8876 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8877 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8878 | hardcode_into_libs=yes |
| 8879 | ;; |
| 8880 | |
| 8881 | # No shared lib support for Linux oldld, aout, or coff. |
| 8882 | linux*oldld* | linux*aout* | linux*coff*) |
| 8883 | dynamic_linker=no |
| 8884 | ;; |
| 8885 | |
| 8886 | # This must be Linux ELF. |
| 8887 | linux*) |
| 8888 | version_type=linux |
| 8889 | need_lib_prefix=no |
| 8890 | need_version=no |
| 8891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8892 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8893 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8894 | shlibpath_var=LD_LIBRARY_PATH |
| 8895 | shlibpath_overrides_runpath=no |
| 8896 | # This implies no fast_install, which is unacceptable. |
| 8897 | # Some rework will be needed to allow for fast_install |
| 8898 | # before this can be enabled. |
| 8899 | hardcode_into_libs=yes |
| 8900 | |
| 8901 | # Append ld.so.conf contents to the search path |
| 8902 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8903 | 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] | 8904 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8905 | fi |
| 8906 | |
| 8907 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8908 | # powerpc, because MkLinux only supported shared libraries with the |
| 8909 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8910 | # most powerpc-linux boxes support dynamic linking these days and |
| 8911 | # people can always --disable-shared, the test was removed, and we |
| 8912 | # assume the GNU/Linux dynamic linker is in use. |
| 8913 | dynamic_linker='GNU/Linux ld.so' |
| 8914 | ;; |
| 8915 | |
| 8916 | knetbsd*-gnu) |
| 8917 | version_type=linux |
| 8918 | need_lib_prefix=no |
| 8919 | need_version=no |
| 8920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8921 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8922 | shlibpath_var=LD_LIBRARY_PATH |
| 8923 | shlibpath_overrides_runpath=no |
| 8924 | hardcode_into_libs=yes |
| 8925 | dynamic_linker='GNU ld.so' |
| 8926 | ;; |
| 8927 | |
| 8928 | netbsd*) |
| 8929 | version_type=sunos |
| 8930 | need_lib_prefix=no |
| 8931 | need_version=no |
| 8932 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8934 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8935 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8936 | else |
| 8937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8938 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8939 | dynamic_linker='NetBSD ld.elf_so' |
| 8940 | fi |
| 8941 | shlibpath_var=LD_LIBRARY_PATH |
| 8942 | shlibpath_overrides_runpath=yes |
| 8943 | hardcode_into_libs=yes |
| 8944 | ;; |
| 8945 | |
| 8946 | newsos6) |
| 8947 | version_type=linux |
| 8948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8949 | shlibpath_var=LD_LIBRARY_PATH |
| 8950 | shlibpath_overrides_runpath=yes |
| 8951 | ;; |
| 8952 | |
| 8953 | nto-qnx*) |
| 8954 | version_type=linux |
| 8955 | need_lib_prefix=no |
| 8956 | need_version=no |
| 8957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8958 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8959 | shlibpath_var=LD_LIBRARY_PATH |
| 8960 | shlibpath_overrides_runpath=yes |
| 8961 | ;; |
| 8962 | |
| 8963 | openbsd*) |
| 8964 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8965 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8966 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8967 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 8968 | case $host_os in |
| 8969 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 8970 | *) need_version=no ;; |
| 8971 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8973 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8974 | shlibpath_var=LD_LIBRARY_PATH |
| 8975 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8976 | case $host_os in |
| 8977 | openbsd2.[89] | openbsd2.[89].*) |
| 8978 | shlibpath_overrides_runpath=no |
| 8979 | ;; |
| 8980 | *) |
| 8981 | shlibpath_overrides_runpath=yes |
| 8982 | ;; |
| 8983 | esac |
| 8984 | else |
| 8985 | shlibpath_overrides_runpath=yes |
| 8986 | fi |
| 8987 | ;; |
| 8988 | |
| 8989 | os2*) |
| 8990 | libname_spec='$name' |
| 8991 | shrext_cmds=".dll" |
| 8992 | need_lib_prefix=no |
| 8993 | library_names_spec='$libname${shared_ext} $libname.a' |
| 8994 | dynamic_linker='OS/2 ld.exe' |
| 8995 | shlibpath_var=LIBPATH |
| 8996 | ;; |
| 8997 | |
| 8998 | osf3* | osf4* | osf5*) |
| 8999 | version_type=osf |
| 9000 | need_lib_prefix=no |
| 9001 | need_version=no |
| 9002 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9004 | shlibpath_var=LD_LIBRARY_PATH |
| 9005 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9006 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9007 | ;; |
| 9008 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9009 | solaris*) |
| 9010 | version_type=linux |
| 9011 | need_lib_prefix=no |
| 9012 | need_version=no |
| 9013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9014 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9015 | shlibpath_var=LD_LIBRARY_PATH |
| 9016 | shlibpath_overrides_runpath=yes |
| 9017 | hardcode_into_libs=yes |
| 9018 | # ldd complains unless libraries are executable |
| 9019 | postinstall_cmds='chmod +x $lib' |
| 9020 | ;; |
| 9021 | |
| 9022 | sunos4*) |
| 9023 | version_type=sunos |
| 9024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9025 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9026 | shlibpath_var=LD_LIBRARY_PATH |
| 9027 | shlibpath_overrides_runpath=yes |
| 9028 | if test "$with_gnu_ld" = yes; then |
| 9029 | need_lib_prefix=no |
| 9030 | fi |
| 9031 | need_version=yes |
| 9032 | ;; |
| 9033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9034 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9035 | version_type=linux |
| 9036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9037 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9038 | shlibpath_var=LD_LIBRARY_PATH |
| 9039 | case $host_vendor in |
| 9040 | sni) |
| 9041 | shlibpath_overrides_runpath=no |
| 9042 | need_lib_prefix=no |
| 9043 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9044 | runpath_var=LD_RUN_PATH |
| 9045 | ;; |
| 9046 | siemens) |
| 9047 | need_lib_prefix=no |
| 9048 | ;; |
| 9049 | motorola) |
| 9050 | need_lib_prefix=no |
| 9051 | need_version=no |
| 9052 | shlibpath_overrides_runpath=no |
| 9053 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9054 | ;; |
| 9055 | esac |
| 9056 | ;; |
| 9057 | |
| 9058 | sysv4*MP*) |
| 9059 | if test -d /usr/nec ;then |
| 9060 | version_type=linux |
| 9061 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9062 | soname_spec='$libname${shared_ext}.$major' |
| 9063 | shlibpath_var=LD_LIBRARY_PATH |
| 9064 | fi |
| 9065 | ;; |
| 9066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9067 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9068 | version_type=freebsd-elf |
| 9069 | need_lib_prefix=no |
| 9070 | need_version=no |
| 9071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9072 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9073 | shlibpath_var=LD_LIBRARY_PATH |
| 9074 | hardcode_into_libs=yes |
| 9075 | if test "$with_gnu_ld" = yes; then |
| 9076 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9077 | shlibpath_overrides_runpath=no |
| 9078 | else |
| 9079 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9080 | shlibpath_overrides_runpath=yes |
| 9081 | case $host_os in |
| 9082 | sco3.2v5*) |
| 9083 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9084 | ;; |
| 9085 | esac |
| 9086 | fi |
| 9087 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9088 | ;; |
| 9089 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9090 | uts4*) |
| 9091 | version_type=linux |
| 9092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9093 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9094 | shlibpath_var=LD_LIBRARY_PATH |
| 9095 | ;; |
| 9096 | |
| 9097 | *) |
| 9098 | dynamic_linker=no |
| 9099 | ;; |
| 9100 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9101 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9102 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9103 | test "$dynamic_linker" = no && can_build_shared=no |
| 9104 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9105 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9106 | if test "$GCC" = yes; then |
| 9107 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9108 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9109 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9110 | |
| 9111 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9112 | 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] | 9113 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9115 | else |
| 9116 | |
| 9117 | module=yes |
| 9118 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9119 | |
| 9120 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9121 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9122 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9123 | if test -n "$libltdl_cv_shlibext"; then |
| 9124 | |
| 9125 | cat >>confdefs.h <<_ACEOF |
| 9126 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9127 | _ACEOF |
| 9128 | |
| 9129 | fi |
| 9130 | |
| 9131 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9132 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9133 | 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] | 9134 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9136 | else |
| 9137 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9138 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9139 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9140 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9141 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9142 | |
| 9143 | cat >>confdefs.h <<_ACEOF |
| 9144 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9145 | _ACEOF |
| 9146 | |
| 9147 | fi |
| 9148 | |
| 9149 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9150 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9151 | 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] | 9152 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9154 | else |
| 9155 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9156 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9157 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9158 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9159 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9160 | sys_search_path= |
| 9161 | for dir in $libltdl_cv_sys_search_path; do |
| 9162 | if test -z "$sys_search_path"; then |
| 9163 | sys_search_path="$dir" |
| 9164 | else |
| 9165 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9166 | fi |
| 9167 | done |
| 9168 | |
| 9169 | cat >>confdefs.h <<_ACEOF |
| 9170 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9171 | _ACEOF |
| 9172 | |
| 9173 | fi |
| 9174 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9175 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9176 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9177 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9179 | else |
| 9180 | libltdl_cv_objdir="$objdir" |
| 9181 | if test -n "$objdir"; then |
| 9182 | : |
| 9183 | else |
| 9184 | rm -f .libs 2>/dev/null |
| 9185 | mkdir .libs 2>/dev/null |
| 9186 | if test -d .libs; then |
| 9187 | libltdl_cv_objdir=.libs |
| 9188 | else |
| 9189 | # MS-DOS does not allow filenames that begin with a dot. |
| 9190 | libltdl_cv_objdir=_libs |
| 9191 | fi |
| 9192 | rmdir .libs 2>/dev/null |
| 9193 | fi |
| 9194 | |
| 9195 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9196 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9197 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9198 | |
| 9199 | cat >>confdefs.h <<_ACEOF |
| 9200 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9201 | _ACEOF |
| 9202 | |
| 9203 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9204 | |
| 9205 | |
| 9206 | |
| 9207 | |
| 9208 | # 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] | 9209 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9210 | 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] | 9211 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9213 | else |
| 9214 | |
| 9215 | # These are sane defaults that work on at least a few old systems. |
| 9216 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9217 | |
| 9218 | # Character class describing NM global symbol codes. |
| 9219 | symcode='[BCDEGRST]' |
| 9220 | |
| 9221 | # Regexp to match symbols that can be accessed directly from C. |
| 9222 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9223 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9224 | # Transform an extracted symbol line into a proper C declaration |
| 9225 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9226 | |
| 9227 | # Transform an extracted symbol line into symbol name and symbol address |
| 9228 | 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'" |
| 9229 | |
| 9230 | # Define system-specific variables. |
| 9231 | case $host_os in |
| 9232 | aix*) |
| 9233 | symcode='[BCDT]' |
| 9234 | ;; |
| 9235 | cygwin* | mingw* | pw32*) |
| 9236 | symcode='[ABCDGISTW]' |
| 9237 | ;; |
| 9238 | hpux*) # Its linker distinguishes data from code symbols |
| 9239 | if test "$host_cpu" = ia64; then |
| 9240 | symcode='[ABCDEGRST]' |
| 9241 | fi |
| 9242 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9243 | 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'" |
| 9244 | ;; |
| 9245 | linux*) |
| 9246 | if test "$host_cpu" = ia64; then |
| 9247 | symcode='[ABCDGIRSTW]' |
| 9248 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9249 | 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'" |
| 9250 | fi |
| 9251 | ;; |
| 9252 | irix* | nonstopux*) |
| 9253 | symcode='[BCDEGRST]' |
| 9254 | ;; |
| 9255 | osf*) |
| 9256 | symcode='[BCDEGQRST]' |
| 9257 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9258 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9259 | symcode='[BDRT]' |
| 9260 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9261 | sco3.2v5*) |
| 9262 | symcode='[DT]' |
| 9263 | ;; |
| 9264 | sysv4.2uw2*) |
| 9265 | symcode='[DT]' |
| 9266 | ;; |
| 9267 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9268 | symcode='[ABDT]' |
| 9269 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9270 | sysv4) |
| 9271 | symcode='[DFNSTU]' |
| 9272 | ;; |
| 9273 | esac |
| 9274 | |
| 9275 | # Handle CRLF in mingw tool chain |
| 9276 | opt_cr= |
| 9277 | case $build_os in |
| 9278 | mingw*) |
| 9279 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9280 | ;; |
| 9281 | esac |
| 9282 | |
| 9283 | # If we're using GNU nm, then use its standard symbol codes. |
| 9284 | case `$NM -V 2>&1` in |
| 9285 | *GNU* | *'with BFD'*) |
| 9286 | symcode='[ABCDGIRSTW]' ;; |
| 9287 | esac |
| 9288 | |
| 9289 | # Try without a prefix undercore, then with it. |
| 9290 | for ac_symprfx in "" "_"; do |
| 9291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9292 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9293 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9294 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9295 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9296 | 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] | 9297 | |
| 9298 | # Check to see that the pipe works correctly. |
| 9299 | pipe_works=no |
| 9300 | |
| 9301 | rm -f conftest* |
| 9302 | cat > conftest.$ac_ext <<EOF |
| 9303 | #ifdef __cplusplus |
| 9304 | extern "C" { |
| 9305 | #endif |
| 9306 | char nm_test_var; |
| 9307 | void nm_test_func(){} |
| 9308 | #ifdef __cplusplus |
| 9309 | } |
| 9310 | #endif |
| 9311 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9312 | EOF |
| 9313 | |
| 9314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9315 | (eval $ac_compile) 2>&5 |
| 9316 | ac_status=$? |
| 9317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9318 | (exit $ac_status); }; then |
| 9319 | # Now try to grab the symbols. |
| 9320 | nlist=conftest.nm |
| 9321 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9322 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9323 | ac_status=$? |
| 9324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9325 | (exit $ac_status); } && test -s "$nlist"; then |
| 9326 | # Try sorting and uniquifying the output. |
| 9327 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9328 | mv -f "$nlist"T "$nlist" |
| 9329 | else |
| 9330 | rm -f "$nlist"T |
| 9331 | fi |
| 9332 | |
| 9333 | # Make sure that we snagged all the symbols we need. |
| 9334 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9335 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9336 | cat <<EOF > conftest.$ac_ext |
| 9337 | #ifdef __cplusplus |
| 9338 | extern "C" { |
| 9339 | #endif |
| 9340 | |
| 9341 | EOF |
| 9342 | # Now generate the symbol file. |
| 9343 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9344 | |
| 9345 | cat <<EOF >> conftest.$ac_ext |
| 9346 | #if defined (__STDC__) && __STDC__ |
| 9347 | # define lt_ptr_t void * |
| 9348 | #else |
| 9349 | # define lt_ptr_t char * |
| 9350 | # define const |
| 9351 | #endif |
| 9352 | |
| 9353 | /* The mapping between symbol names and symbols. */ |
| 9354 | const struct { |
| 9355 | const char *name; |
| 9356 | lt_ptr_t address; |
| 9357 | } |
| 9358 | lt_preloaded_symbols[] = |
| 9359 | { |
| 9360 | EOF |
| 9361 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9362 | cat <<\EOF >> conftest.$ac_ext |
| 9363 | {0, (lt_ptr_t) 0} |
| 9364 | }; |
| 9365 | |
| 9366 | #ifdef __cplusplus |
| 9367 | } |
| 9368 | #endif |
| 9369 | EOF |
| 9370 | # Now try linking the two files. |
| 9371 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9372 | lt_save_LIBS="$LIBS" |
| 9373 | lt_save_CFLAGS="$CFLAGS" |
| 9374 | LIBS="conftstm.$ac_objext" |
| 9375 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9377 | (eval $ac_link) 2>&5 |
| 9378 | ac_status=$? |
| 9379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9380 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9381 | pipe_works=yes |
| 9382 | fi |
| 9383 | LIBS="$lt_save_LIBS" |
| 9384 | CFLAGS="$lt_save_CFLAGS" |
| 9385 | else |
| 9386 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9387 | fi |
| 9388 | else |
| 9389 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9390 | fi |
| 9391 | else |
| 9392 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9393 | fi |
| 9394 | else |
| 9395 | echo "$progname: failed program was:" >&5 |
| 9396 | cat conftest.$ac_ext >&5 |
| 9397 | fi |
| 9398 | rm -f conftest* conftst* |
| 9399 | |
| 9400 | # Do not use the global_symbol_pipe unless it works. |
| 9401 | if test "$pipe_works" = yes; then |
| 9402 | break |
| 9403 | else |
| 9404 | lt_cv_sys_global_symbol_pipe= |
| 9405 | fi |
| 9406 | done |
| 9407 | |
| 9408 | fi |
| 9409 | |
| 9410 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9411 | lt_cv_sys_global_symbol_to_cdecl= |
| 9412 | fi |
| 9413 | 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] | 9414 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9415 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9416 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9417 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9418 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9419 | fi |
| 9420 | |
| 9421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9422 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9423 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9424 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9426 | else |
| 9427 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9428 | libltdl_cv_preloaded_symbols=yes |
| 9429 | else |
| 9430 | libltdl_cv_preloaded_symbols=no |
| 9431 | fi |
| 9432 | |
| 9433 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9434 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9435 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9436 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9437 | |
| 9438 | cat >>confdefs.h <<\_ACEOF |
| 9439 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9440 | _ACEOF |
| 9441 | |
| 9442 | fi |
| 9443 | |
| 9444 | LIBADD_DL= |
| 9445 | |
| 9446 | ac_ext=c |
| 9447 | ac_cpp='$CPP $CPPFLAGS' |
| 9448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9451 | |
| 9452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9453 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9454 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9455 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9457 | else |
| 9458 | cat >conftest.$ac_ext <<_ACEOF |
| 9459 | /* confdefs.h. */ |
| 9460 | _ACEOF |
| 9461 | cat confdefs.h >>conftest.$ac_ext |
| 9462 | cat >>conftest.$ac_ext <<_ACEOF |
| 9463 | /* end confdefs.h. */ |
| 9464 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9465 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9466 | #define shl_load innocuous_shl_load |
| 9467 | |
| 9468 | /* System header to define __stub macros and hopefully few prototypes, |
| 9469 | which can conflict with char shl_load (); below. |
| 9470 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9471 | <limits.h> exists even on freestanding compilers. */ |
| 9472 | |
| 9473 | #ifdef __STDC__ |
| 9474 | # include <limits.h> |
| 9475 | #else |
| 9476 | # include <assert.h> |
| 9477 | #endif |
| 9478 | |
| 9479 | #undef shl_load |
| 9480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9481 | /* Override any GCC internal prototype to avoid an error. |
| 9482 | Use char because int might match the return type of a GCC |
| 9483 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9484 | #ifdef __cplusplus |
| 9485 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9486 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9487 | char shl_load (); |
| 9488 | /* The GNU C library defines this for functions which it implements |
| 9489 | to always fail with ENOSYS. Some functions are actually named |
| 9490 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9491 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9492 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9493 | #endif |
| 9494 | |
| 9495 | int |
| 9496 | main () |
| 9497 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9498 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9499 | ; |
| 9500 | return 0; |
| 9501 | } |
| 9502 | _ACEOF |
| 9503 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9504 | if { (ac_try="$ac_link" |
| 9505 | case "(($ac_try" in |
| 9506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9507 | *) ac_try_echo=$ac_try;; |
| 9508 | esac |
| 9509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9510 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9511 | ac_status=$? |
| 9512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9513 | rm -f conftest.er1 |
| 9514 | cat conftest.err >&5 |
| 9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9516 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9518 | { (case "(($ac_try" in |
| 9519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9520 | *) ac_try_echo=$ac_try;; |
| 9521 | esac |
| 9522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9523 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9524 | ac_status=$? |
| 9525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9526 | (exit $ac_status); }; } && |
| 9527 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9528 | { (case "(($ac_try" in |
| 9529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9530 | *) ac_try_echo=$ac_try;; |
| 9531 | esac |
| 9532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9533 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9534 | ac_status=$? |
| 9535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9536 | (exit $ac_status); }; }; then |
| 9537 | ac_cv_func_shl_load=yes |
| 9538 | else |
| 9539 | echo "$as_me: failed program was:" >&5 |
| 9540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9542 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9544 | |
| 9545 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9546 | conftest$ac_exeext conftest.$ac_ext |
| 9547 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9548 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9549 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9550 | if test $ac_cv_func_shl_load = yes; then |
| 9551 | |
| 9552 | cat >>confdefs.h <<\_ACEOF |
| 9553 | #define HAVE_SHL_LOAD 1 |
| 9554 | _ACEOF |
| 9555 | |
| 9556 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9557 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9558 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9559 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9561 | else |
| 9562 | ac_check_lib_save_LIBS=$LIBS |
| 9563 | LIBS="-ldld $LIBS" |
| 9564 | cat >conftest.$ac_ext <<_ACEOF |
| 9565 | /* confdefs.h. */ |
| 9566 | _ACEOF |
| 9567 | cat confdefs.h >>conftest.$ac_ext |
| 9568 | cat >>conftest.$ac_ext <<_ACEOF |
| 9569 | /* end confdefs.h. */ |
| 9570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9571 | /* Override any GCC internal prototype to avoid an error. |
| 9572 | Use char because int might match the return type of a GCC |
| 9573 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9574 | #ifdef __cplusplus |
| 9575 | extern "C" |
| 9576 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9577 | char shl_load (); |
| 9578 | int |
| 9579 | main () |
| 9580 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9581 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9582 | ; |
| 9583 | return 0; |
| 9584 | } |
| 9585 | _ACEOF |
| 9586 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9587 | if { (ac_try="$ac_link" |
| 9588 | case "(($ac_try" in |
| 9589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9590 | *) ac_try_echo=$ac_try;; |
| 9591 | esac |
| 9592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9593 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9594 | ac_status=$? |
| 9595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9596 | rm -f conftest.er1 |
| 9597 | cat conftest.err >&5 |
| 9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9599 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9601 | { (case "(($ac_try" in |
| 9602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9603 | *) ac_try_echo=$ac_try;; |
| 9604 | esac |
| 9605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9606 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9607 | ac_status=$? |
| 9608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9609 | (exit $ac_status); }; } && |
| 9610 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9611 | { (case "(($ac_try" in |
| 9612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9613 | *) ac_try_echo=$ac_try;; |
| 9614 | esac |
| 9615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9616 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9617 | ac_status=$? |
| 9618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9619 | (exit $ac_status); }; }; then |
| 9620 | ac_cv_lib_dld_shl_load=yes |
| 9621 | else |
| 9622 | echo "$as_me: failed program was:" >&5 |
| 9623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9625 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9626 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9627 | |
| 9628 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9629 | conftest$ac_exeext conftest.$ac_ext |
| 9630 | LIBS=$ac_check_lib_save_LIBS |
| 9631 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9632 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9633 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9634 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9635 | |
| 9636 | cat >>confdefs.h <<\_ACEOF |
| 9637 | #define HAVE_SHL_LOAD 1 |
| 9638 | _ACEOF |
| 9639 | |
| 9640 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9641 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9642 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9643 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9644 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9646 | else |
| 9647 | ac_check_lib_save_LIBS=$LIBS |
| 9648 | LIBS="-ldl $LIBS" |
| 9649 | cat >conftest.$ac_ext <<_ACEOF |
| 9650 | /* confdefs.h. */ |
| 9651 | _ACEOF |
| 9652 | cat confdefs.h >>conftest.$ac_ext |
| 9653 | cat >>conftest.$ac_ext <<_ACEOF |
| 9654 | /* end confdefs.h. */ |
| 9655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9656 | /* Override any GCC internal prototype to avoid an error. |
| 9657 | Use char because int might match the return type of a GCC |
| 9658 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9659 | #ifdef __cplusplus |
| 9660 | extern "C" |
| 9661 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9662 | char dlopen (); |
| 9663 | int |
| 9664 | main () |
| 9665 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9666 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9667 | ; |
| 9668 | return 0; |
| 9669 | } |
| 9670 | _ACEOF |
| 9671 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9672 | if { (ac_try="$ac_link" |
| 9673 | case "(($ac_try" in |
| 9674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9675 | *) ac_try_echo=$ac_try;; |
| 9676 | esac |
| 9677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9678 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9679 | ac_status=$? |
| 9680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9681 | rm -f conftest.er1 |
| 9682 | cat conftest.err >&5 |
| 9683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9684 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9686 | { (case "(($ac_try" in |
| 9687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9688 | *) ac_try_echo=$ac_try;; |
| 9689 | esac |
| 9690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9691 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9692 | ac_status=$? |
| 9693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9694 | (exit $ac_status); }; } && |
| 9695 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9696 | { (case "(($ac_try" in |
| 9697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9698 | *) ac_try_echo=$ac_try;; |
| 9699 | esac |
| 9700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9701 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9702 | ac_status=$? |
| 9703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9704 | (exit $ac_status); }; }; then |
| 9705 | ac_cv_lib_dl_dlopen=yes |
| 9706 | else |
| 9707 | echo "$as_me: failed program was:" >&5 |
| 9708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9709 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9710 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9711 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9712 | |
| 9713 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9714 | conftest$ac_exeext conftest.$ac_ext |
| 9715 | LIBS=$ac_check_lib_save_LIBS |
| 9716 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9717 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9718 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9719 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9720 | |
| 9721 | cat >>confdefs.h <<\_ACEOF |
| 9722 | #define HAVE_LIBDL 1 |
| 9723 | _ACEOF |
| 9724 | |
| 9725 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9726 | else |
| 9727 | cat >conftest.$ac_ext <<_ACEOF |
| 9728 | /* confdefs.h. */ |
| 9729 | _ACEOF |
| 9730 | cat confdefs.h >>conftest.$ac_ext |
| 9731 | cat >>conftest.$ac_ext <<_ACEOF |
| 9732 | /* end confdefs.h. */ |
| 9733 | #if HAVE_DLFCN_H |
| 9734 | # include <dlfcn.h> |
| 9735 | #endif |
| 9736 | |
| 9737 | int |
| 9738 | main () |
| 9739 | { |
| 9740 | dlopen(0, 0); |
| 9741 | ; |
| 9742 | return 0; |
| 9743 | } |
| 9744 | _ACEOF |
| 9745 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9746 | if { (ac_try="$ac_link" |
| 9747 | case "(($ac_try" in |
| 9748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9749 | *) ac_try_echo=$ac_try;; |
| 9750 | esac |
| 9751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9752 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9753 | ac_status=$? |
| 9754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9755 | rm -f conftest.er1 |
| 9756 | cat conftest.err >&5 |
| 9757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9758 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9759 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9760 | { (case "(($ac_try" in |
| 9761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9762 | *) ac_try_echo=$ac_try;; |
| 9763 | esac |
| 9764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9765 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9766 | ac_status=$? |
| 9767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9768 | (exit $ac_status); }; } && |
| 9769 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9770 | { (case "(($ac_try" in |
| 9771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9772 | *) ac_try_echo=$ac_try;; |
| 9773 | esac |
| 9774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9775 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9776 | ac_status=$? |
| 9777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9778 | (exit $ac_status); }; }; then |
| 9779 | |
| 9780 | cat >>confdefs.h <<\_ACEOF |
| 9781 | #define HAVE_LIBDL 1 |
| 9782 | _ACEOF |
| 9783 | libltdl_cv_func_dlopen="yes" |
| 9784 | else |
| 9785 | echo "$as_me: failed program was:" >&5 |
| 9786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9788 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9789 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9790 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9792 | else |
| 9793 | ac_check_lib_save_LIBS=$LIBS |
| 9794 | LIBS="-lsvld $LIBS" |
| 9795 | cat >conftest.$ac_ext <<_ACEOF |
| 9796 | /* confdefs.h. */ |
| 9797 | _ACEOF |
| 9798 | cat confdefs.h >>conftest.$ac_ext |
| 9799 | cat >>conftest.$ac_ext <<_ACEOF |
| 9800 | /* end confdefs.h. */ |
| 9801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9802 | /* Override any GCC internal prototype to avoid an error. |
| 9803 | Use char because int might match the return type of a GCC |
| 9804 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9805 | #ifdef __cplusplus |
| 9806 | extern "C" |
| 9807 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9808 | char dlopen (); |
| 9809 | int |
| 9810 | main () |
| 9811 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9812 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9813 | ; |
| 9814 | return 0; |
| 9815 | } |
| 9816 | _ACEOF |
| 9817 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9818 | if { (ac_try="$ac_link" |
| 9819 | case "(($ac_try" in |
| 9820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9821 | *) ac_try_echo=$ac_try;; |
| 9822 | esac |
| 9823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9824 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9825 | ac_status=$? |
| 9826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9827 | rm -f conftest.er1 |
| 9828 | cat conftest.err >&5 |
| 9829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9830 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9832 | { (case "(($ac_try" in |
| 9833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9834 | *) ac_try_echo=$ac_try;; |
| 9835 | esac |
| 9836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9837 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9838 | ac_status=$? |
| 9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9840 | (exit $ac_status); }; } && |
| 9841 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9842 | { (case "(($ac_try" in |
| 9843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9844 | *) ac_try_echo=$ac_try;; |
| 9845 | esac |
| 9846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9847 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9848 | ac_status=$? |
| 9849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9850 | (exit $ac_status); }; }; then |
| 9851 | ac_cv_lib_svld_dlopen=yes |
| 9852 | else |
| 9853 | echo "$as_me: failed program was:" >&5 |
| 9854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9856 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9857 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9858 | |
| 9859 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9860 | conftest$ac_exeext conftest.$ac_ext |
| 9861 | LIBS=$ac_check_lib_save_LIBS |
| 9862 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9863 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9864 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9865 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9866 | |
| 9867 | cat >>confdefs.h <<\_ACEOF |
| 9868 | #define HAVE_LIBDL 1 |
| 9869 | _ACEOF |
| 9870 | |
| 9871 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 9872 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9873 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9874 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9875 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9877 | else |
| 9878 | ac_check_lib_save_LIBS=$LIBS |
| 9879 | LIBS="-ldld $LIBS" |
| 9880 | cat >conftest.$ac_ext <<_ACEOF |
| 9881 | /* confdefs.h. */ |
| 9882 | _ACEOF |
| 9883 | cat confdefs.h >>conftest.$ac_ext |
| 9884 | cat >>conftest.$ac_ext <<_ACEOF |
| 9885 | /* end confdefs.h. */ |
| 9886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9887 | /* Override any GCC internal prototype to avoid an error. |
| 9888 | Use char because int might match the return type of a GCC |
| 9889 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9890 | #ifdef __cplusplus |
| 9891 | extern "C" |
| 9892 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9893 | char dld_link (); |
| 9894 | int |
| 9895 | main () |
| 9896 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9897 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9898 | ; |
| 9899 | return 0; |
| 9900 | } |
| 9901 | _ACEOF |
| 9902 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9903 | if { (ac_try="$ac_link" |
| 9904 | case "(($ac_try" in |
| 9905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9906 | *) ac_try_echo=$ac_try;; |
| 9907 | esac |
| 9908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9909 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9910 | ac_status=$? |
| 9911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9912 | rm -f conftest.er1 |
| 9913 | cat conftest.err >&5 |
| 9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9915 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9916 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9917 | { (case "(($ac_try" in |
| 9918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9919 | *) ac_try_echo=$ac_try;; |
| 9920 | esac |
| 9921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9922 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9923 | ac_status=$? |
| 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9925 | (exit $ac_status); }; } && |
| 9926 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9927 | { (case "(($ac_try" in |
| 9928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9929 | *) ac_try_echo=$ac_try;; |
| 9930 | esac |
| 9931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9932 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9933 | ac_status=$? |
| 9934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9935 | (exit $ac_status); }; }; then |
| 9936 | ac_cv_lib_dld_dld_link=yes |
| 9937 | else |
| 9938 | echo "$as_me: failed program was:" >&5 |
| 9939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9940 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9941 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9942 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9943 | |
| 9944 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9945 | conftest$ac_exeext conftest.$ac_ext |
| 9946 | LIBS=$ac_check_lib_save_LIBS |
| 9947 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9948 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9949 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9950 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9951 | |
| 9952 | cat >>confdefs.h <<\_ACEOF |
| 9953 | #define HAVE_DLD 1 |
| 9954 | _ACEOF |
| 9955 | |
| 9956 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9957 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9958 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 9959 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9960 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 9961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9962 | else |
| 9963 | cat >conftest.$ac_ext <<_ACEOF |
| 9964 | /* confdefs.h. */ |
| 9965 | _ACEOF |
| 9966 | cat confdefs.h >>conftest.$ac_ext |
| 9967 | cat >>conftest.$ac_ext <<_ACEOF |
| 9968 | /* end confdefs.h. */ |
| 9969 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 9970 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9971 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 9972 | |
| 9973 | /* System header to define __stub macros and hopefully few prototypes, |
| 9974 | which can conflict with char _dyld_func_lookup (); below. |
| 9975 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9976 | <limits.h> exists even on freestanding compilers. */ |
| 9977 | |
| 9978 | #ifdef __STDC__ |
| 9979 | # include <limits.h> |
| 9980 | #else |
| 9981 | # include <assert.h> |
| 9982 | #endif |
| 9983 | |
| 9984 | #undef _dyld_func_lookup |
| 9985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9986 | /* Override any GCC internal prototype to avoid an error. |
| 9987 | Use char because int might match the return type of a GCC |
| 9988 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9989 | #ifdef __cplusplus |
| 9990 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9991 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9992 | char _dyld_func_lookup (); |
| 9993 | /* The GNU C library defines this for functions which it implements |
| 9994 | to always fail with ENOSYS. Some functions are actually named |
| 9995 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9996 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9997 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9998 | #endif |
| 9999 | |
| 10000 | int |
| 10001 | main () |
| 10002 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10003 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10004 | ; |
| 10005 | return 0; |
| 10006 | } |
| 10007 | _ACEOF |
| 10008 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10009 | if { (ac_try="$ac_link" |
| 10010 | case "(($ac_try" in |
| 10011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10012 | *) ac_try_echo=$ac_try;; |
| 10013 | esac |
| 10014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10015 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10016 | ac_status=$? |
| 10017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10018 | rm -f conftest.er1 |
| 10019 | cat conftest.err >&5 |
| 10020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10021 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10022 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10023 | { (case "(($ac_try" in |
| 10024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10025 | *) ac_try_echo=$ac_try;; |
| 10026 | esac |
| 10027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10028 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10029 | ac_status=$? |
| 10030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10031 | (exit $ac_status); }; } && |
| 10032 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10033 | { (case "(($ac_try" in |
| 10034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10035 | *) ac_try_echo=$ac_try;; |
| 10036 | esac |
| 10037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10038 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10039 | ac_status=$? |
| 10040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10041 | (exit $ac_status); }; }; then |
| 10042 | ac_cv_func__dyld_func_lookup=yes |
| 10043 | else |
| 10044 | echo "$as_me: failed program was:" >&5 |
| 10045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10046 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10047 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10048 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10049 | |
| 10050 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10051 | conftest$ac_exeext conftest.$ac_ext |
| 10052 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10053 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10054 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10055 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10056 | |
| 10057 | cat >>confdefs.h <<\_ACEOF |
| 10058 | #define HAVE_DYLD 1 |
| 10059 | _ACEOF |
| 10060 | |
| 10061 | fi |
| 10062 | |
| 10063 | |
| 10064 | fi |
| 10065 | |
| 10066 | |
| 10067 | fi |
| 10068 | |
| 10069 | |
| 10070 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10071 | |
| 10072 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10073 | conftest$ac_exeext conftest.$ac_ext |
| 10074 | |
| 10075 | fi |
| 10076 | |
| 10077 | |
| 10078 | fi |
| 10079 | |
| 10080 | |
| 10081 | fi |
| 10082 | |
| 10083 | |
| 10084 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10085 | then |
| 10086 | lt_save_LIBS="$LIBS" |
| 10087 | LIBS="$LIBS $LIBADD_DL" |
| 10088 | |
| 10089 | for ac_func in dlerror |
| 10090 | do |
| 10091 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10092 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10093 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10094 | 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] | 10095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10096 | else |
| 10097 | cat >conftest.$ac_ext <<_ACEOF |
| 10098 | /* confdefs.h. */ |
| 10099 | _ACEOF |
| 10100 | cat confdefs.h >>conftest.$ac_ext |
| 10101 | cat >>conftest.$ac_ext <<_ACEOF |
| 10102 | /* end confdefs.h. */ |
| 10103 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10105 | #define $ac_func innocuous_$ac_func |
| 10106 | |
| 10107 | /* System header to define __stub macros and hopefully few prototypes, |
| 10108 | which can conflict with char $ac_func (); below. |
| 10109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10110 | <limits.h> exists even on freestanding compilers. */ |
| 10111 | |
| 10112 | #ifdef __STDC__ |
| 10113 | # include <limits.h> |
| 10114 | #else |
| 10115 | # include <assert.h> |
| 10116 | #endif |
| 10117 | |
| 10118 | #undef $ac_func |
| 10119 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10120 | /* Override any GCC internal prototype to avoid an error. |
| 10121 | Use char because int might match the return type of a GCC |
| 10122 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10123 | #ifdef __cplusplus |
| 10124 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10125 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10126 | char $ac_func (); |
| 10127 | /* The GNU C library defines this for functions which it implements |
| 10128 | to always fail with ENOSYS. Some functions are actually named |
| 10129 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10130 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10131 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10132 | #endif |
| 10133 | |
| 10134 | int |
| 10135 | main () |
| 10136 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10137 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10138 | ; |
| 10139 | return 0; |
| 10140 | } |
| 10141 | _ACEOF |
| 10142 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10143 | if { (ac_try="$ac_link" |
| 10144 | case "(($ac_try" in |
| 10145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10146 | *) ac_try_echo=$ac_try;; |
| 10147 | esac |
| 10148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10149 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10150 | ac_status=$? |
| 10151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10152 | rm -f conftest.er1 |
| 10153 | cat conftest.err >&5 |
| 10154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10155 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10157 | { (case "(($ac_try" in |
| 10158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10159 | *) ac_try_echo=$ac_try;; |
| 10160 | esac |
| 10161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10162 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10163 | ac_status=$? |
| 10164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10165 | (exit $ac_status); }; } && |
| 10166 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10167 | { (case "(($ac_try" in |
| 10168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10169 | *) ac_try_echo=$ac_try;; |
| 10170 | esac |
| 10171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10172 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10173 | ac_status=$? |
| 10174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10175 | (exit $ac_status); }; }; then |
| 10176 | eval "$as_ac_var=yes" |
| 10177 | else |
| 10178 | echo "$as_me: failed program was:" >&5 |
| 10179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10181 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10183 | |
| 10184 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10185 | conftest$ac_exeext conftest.$ac_ext |
| 10186 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10187 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10188 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10189 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10190 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10191 | cat >>confdefs.h <<_ACEOF |
| 10192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10193 | _ACEOF |
| 10194 | |
| 10195 | fi |
| 10196 | done |
| 10197 | |
| 10198 | LIBS="$lt_save_LIBS" |
| 10199 | fi |
| 10200 | ac_ext=c |
| 10201 | ac_cpp='$CPP $CPPFLAGS' |
| 10202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10205 | |
| 10206 | |
| 10207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10208 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10209 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10210 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10212 | else |
| 10213 | ac_cv_sys_symbol_underscore=no |
| 10214 | cat > conftest.$ac_ext <<EOF |
| 10215 | void nm_test_func(){} |
| 10216 | int main(){nm_test_func;return 0;} |
| 10217 | EOF |
| 10218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10219 | (eval $ac_compile) 2>&5 |
| 10220 | ac_status=$? |
| 10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10222 | (exit $ac_status); }; then |
| 10223 | # Now try to grab the symbols. |
| 10224 | ac_nlist=conftest.nm |
| 10225 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10226 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10227 | ac_status=$? |
| 10228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10229 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10230 | # See whether the symbols have a leading underscore. |
| 10231 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10232 | ac_cv_sys_symbol_underscore=yes |
| 10233 | else |
| 10234 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10235 | : |
| 10236 | else |
| 10237 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10238 | fi |
| 10239 | fi |
| 10240 | else |
| 10241 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10242 | fi |
| 10243 | else |
| 10244 | echo "configure: failed program was:" >&5 |
| 10245 | cat conftest.c >&5 |
| 10246 | fi |
| 10247 | rm -rf conftest* |
| 10248 | |
| 10249 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10250 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10251 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10252 | |
| 10253 | |
| 10254 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10255 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10256 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10257 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10258 | 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] | 10259 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10261 | else |
| 10262 | libltdl_cv_need_uscore=unknown |
| 10263 | save_LIBS="$LIBS" |
| 10264 | LIBS="$LIBS $LIBADD_DL" |
| 10265 | if test "$cross_compiling" = yes; then : |
| 10266 | libltdl_cv_need_uscore=cross |
| 10267 | else |
| 10268 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10269 | lt_status=$lt_dlunknown |
| 10270 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 10271 | #line 10271 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10272 | #include "confdefs.h" |
| 10273 | |
| 10274 | #if HAVE_DLFCN_H |
| 10275 | #include <dlfcn.h> |
| 10276 | #endif |
| 10277 | |
| 10278 | #include <stdio.h> |
| 10279 | |
| 10280 | #ifdef RTLD_GLOBAL |
| 10281 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10282 | #else |
| 10283 | # ifdef DL_GLOBAL |
| 10284 | # define LT_DLGLOBAL DL_GLOBAL |
| 10285 | # else |
| 10286 | # define LT_DLGLOBAL 0 |
| 10287 | # endif |
| 10288 | #endif |
| 10289 | |
| 10290 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10291 | find out it does not work in some platform. */ |
| 10292 | #ifndef LT_DLLAZY_OR_NOW |
| 10293 | # ifdef RTLD_LAZY |
| 10294 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10295 | # else |
| 10296 | # ifdef DL_LAZY |
| 10297 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10298 | # else |
| 10299 | # ifdef RTLD_NOW |
| 10300 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10301 | # else |
| 10302 | # ifdef DL_NOW |
| 10303 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10304 | # else |
| 10305 | # define LT_DLLAZY_OR_NOW 0 |
| 10306 | # endif |
| 10307 | # endif |
| 10308 | # endif |
| 10309 | # endif |
| 10310 | #endif |
| 10311 | |
| 10312 | #ifdef __cplusplus |
| 10313 | extern "C" void exit (int); |
| 10314 | #endif |
| 10315 | |
| 10316 | void fnord() { int i=42;} |
| 10317 | int main () |
| 10318 | { |
| 10319 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10320 | int status = $lt_dlunknown; |
| 10321 | |
| 10322 | if (self) |
| 10323 | { |
| 10324 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10325 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10326 | /* dlclose (self); */ |
| 10327 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10328 | else |
| 10329 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10330 | |
| 10331 | exit (status); |
| 10332 | } |
| 10333 | EOF |
| 10334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10335 | (eval $ac_link) 2>&5 |
| 10336 | ac_status=$? |
| 10337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10338 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10339 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10340 | lt_status=$? |
| 10341 | case x$lt_status in |
| 10342 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10343 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10344 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10345 | esac |
| 10346 | else : |
| 10347 | # compilation failed |
| 10348 | |
| 10349 | fi |
| 10350 | fi |
| 10351 | rm -fr conftest* |
| 10352 | |
| 10353 | LIBS="$save_LIBS" |
| 10354 | |
| 10355 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10356 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10357 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10358 | fi |
| 10359 | fi |
| 10360 | |
| 10361 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10362 | |
| 10363 | cat >>confdefs.h <<\_ACEOF |
| 10364 | #define NEED_USCORE 1 |
| 10365 | _ACEOF |
| 10366 | |
| 10367 | fi |
| 10368 | |
| 10369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10370 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10371 | 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] | 10372 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10374 | else |
| 10375 | # PORTME does your system automatically load deplibs for dlopen? |
| 10376 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10377 | # For now, we just catch OSes we know something about -- in the |
| 10378 | # future, we'll try test this programmatically. |
| 10379 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10380 | case "$host_os" in |
| 10381 | aix3*|aix4.1.*|aix4.2.*) |
| 10382 | # Unknown whether this is true for these versions of AIX, but |
| 10383 | # we want this `case' here to explicitly catch those versions. |
| 10384 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10385 | ;; |
| 10386 | aix[45]*) |
| 10387 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10388 | ;; |
| 10389 | darwin*) |
| 10390 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10391 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10392 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10393 | ;; |
| 10394 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10395 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10396 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10397 | ;; |
| 10398 | hpux10*|hpux11*) |
| 10399 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10400 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10401 | interix*) |
| 10402 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10403 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10404 | irix[12345]*|irix6.[01]*) |
| 10405 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10406 | # know how it worked for any of those versions. |
| 10407 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10408 | ;; |
| 10409 | irix*) |
| 10410 | # The case above catches anything before 6.2, and it's known that |
| 10411 | # at 6.2 and later dlopen does load deplibs. |
| 10412 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10413 | ;; |
| 10414 | netbsd*) |
| 10415 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10416 | ;; |
| 10417 | openbsd*) |
| 10418 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10419 | ;; |
| 10420 | osf[1234]*) |
| 10421 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10422 | # it did *not* use an RPATH in a shared library to find objects the |
| 10423 | # library depends on, so we explictly say `no'. |
| 10424 | libltdl_cv_sys_dlopen_deplibs=no |
| 10425 | ;; |
| 10426 | osf5.0|osf5.0a|osf5.1) |
| 10427 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10428 | # it even uses RPATH in a shared library to search for shared objects |
| 10429 | # that the library depends on, but there's no easy way to know if that |
| 10430 | # patch is installed. Since this is the case, all we can really |
| 10431 | # say is unknown -- it depends on the patch being installed. If |
| 10432 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10433 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10434 | ;; |
| 10435 | osf*) |
| 10436 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10437 | # the comments above for what we know about them. |
| 10438 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10439 | # is used to find them so we can finally say `yes'. |
| 10440 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10441 | ;; |
| 10442 | solaris*) |
| 10443 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10444 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10445 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10446 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10447 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10448 | esac |
| 10449 | |
| 10450 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10451 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10452 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10453 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10454 | |
| 10455 | cat >>confdefs.h <<\_ACEOF |
| 10456 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10457 | _ACEOF |
| 10458 | |
| 10459 | fi |
| 10460 | |
| 10461 | |
| 10462 | for ac_header in argz.h |
| 10463 | do |
| 10464 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10466 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10468 | 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] | 10469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10471 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10472 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10473 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10474 | else |
| 10475 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10476 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10477 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10478 | cat >conftest.$ac_ext <<_ACEOF |
| 10479 | /* confdefs.h. */ |
| 10480 | _ACEOF |
| 10481 | cat confdefs.h >>conftest.$ac_ext |
| 10482 | cat >>conftest.$ac_ext <<_ACEOF |
| 10483 | /* end confdefs.h. */ |
| 10484 | $ac_includes_default |
| 10485 | #include <$ac_header> |
| 10486 | _ACEOF |
| 10487 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10488 | if { (ac_try="$ac_compile" |
| 10489 | case "(($ac_try" in |
| 10490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10491 | *) ac_try_echo=$ac_try;; |
| 10492 | esac |
| 10493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10494 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10495 | ac_status=$? |
| 10496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10497 | rm -f conftest.er1 |
| 10498 | cat conftest.err >&5 |
| 10499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10500 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10502 | { (case "(($ac_try" in |
| 10503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10504 | *) ac_try_echo=$ac_try;; |
| 10505 | esac |
| 10506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10507 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10508 | ac_status=$? |
| 10509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10510 | (exit $ac_status); }; } && |
| 10511 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10512 | { (case "(($ac_try" in |
| 10513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10514 | *) ac_try_echo=$ac_try;; |
| 10515 | esac |
| 10516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10517 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10518 | ac_status=$? |
| 10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10520 | (exit $ac_status); }; }; then |
| 10521 | ac_header_compiler=yes |
| 10522 | else |
| 10523 | echo "$as_me: failed program was:" >&5 |
| 10524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10526 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10527 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10528 | |
| 10529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10530 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10531 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10532 | |
| 10533 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10534 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10535 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10536 | cat >conftest.$ac_ext <<_ACEOF |
| 10537 | /* confdefs.h. */ |
| 10538 | _ACEOF |
| 10539 | cat confdefs.h >>conftest.$ac_ext |
| 10540 | cat >>conftest.$ac_ext <<_ACEOF |
| 10541 | /* end confdefs.h. */ |
| 10542 | #include <$ac_header> |
| 10543 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10544 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10545 | case "(($ac_try" in |
| 10546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10547 | *) ac_try_echo=$ac_try;; |
| 10548 | esac |
| 10549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10550 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10551 | ac_status=$? |
| 10552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10553 | rm -f conftest.er1 |
| 10554 | cat conftest.err >&5 |
| 10555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10556 | (exit $ac_status); } >/dev/null; then |
| 10557 | if test -s conftest.err; then |
| 10558 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10559 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10560 | else |
| 10561 | ac_cpp_err= |
| 10562 | fi |
| 10563 | else |
| 10564 | ac_cpp_err=yes |
| 10565 | fi |
| 10566 | if test -z "$ac_cpp_err"; then |
| 10567 | ac_header_preproc=yes |
| 10568 | else |
| 10569 | echo "$as_me: failed program was:" >&5 |
| 10570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10571 | |
| 10572 | ac_header_preproc=no |
| 10573 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10574 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10575 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10576 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10577 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10578 | |
| 10579 | # So? What about this header? |
| 10580 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10581 | yes:no: ) |
| 10582 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10583 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10584 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10585 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10586 | ac_header_preproc=yes |
| 10587 | ;; |
| 10588 | no:yes:* ) |
| 10589 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10590 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10591 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10592 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10593 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10594 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10595 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10596 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10597 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10598 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10599 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10600 | 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] | 10601 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10602 | ## ----------------------------------- ## |
| 10603 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10604 | ## ----------------------------------- ## |
| 10605 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10606 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10607 | ;; |
| 10608 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10609 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10610 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10611 | 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] | 10612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10613 | else |
| 10614 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10615 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10616 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10617 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10618 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10619 | |
| 10620 | fi |
| 10621 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10622 | cat >>confdefs.h <<_ACEOF |
| 10623 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10624 | _ACEOF |
| 10625 | |
| 10626 | fi |
| 10627 | |
| 10628 | done |
| 10629 | |
| 10630 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10631 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10632 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10633 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10635 | else |
| 10636 | cat >conftest.$ac_ext <<_ACEOF |
| 10637 | /* confdefs.h. */ |
| 10638 | _ACEOF |
| 10639 | cat confdefs.h >>conftest.$ac_ext |
| 10640 | cat >>conftest.$ac_ext <<_ACEOF |
| 10641 | /* end confdefs.h. */ |
| 10642 | #if HAVE_ARGZ_H |
| 10643 | # include <argz.h> |
| 10644 | #endif |
| 10645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10646 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10647 | int |
| 10648 | main () |
| 10649 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10650 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10651 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10652 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10653 | return 0; |
| 10654 | ; |
| 10655 | return 0; |
| 10656 | } |
| 10657 | _ACEOF |
| 10658 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10659 | if { (ac_try="$ac_compile" |
| 10660 | case "(($ac_try" in |
| 10661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10662 | *) ac_try_echo=$ac_try;; |
| 10663 | esac |
| 10664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10665 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10666 | ac_status=$? |
| 10667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10668 | rm -f conftest.er1 |
| 10669 | cat conftest.err >&5 |
| 10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10671 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10673 | { (case "(($ac_try" in |
| 10674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10675 | *) ac_try_echo=$ac_try;; |
| 10676 | esac |
| 10677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10678 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10679 | ac_status=$? |
| 10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10681 | (exit $ac_status); }; } && |
| 10682 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10683 | { (case "(($ac_try" in |
| 10684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10685 | *) ac_try_echo=$ac_try;; |
| 10686 | esac |
| 10687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10688 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10689 | ac_status=$? |
| 10690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10691 | (exit $ac_status); }; }; then |
| 10692 | ac_cv_type_error_t=yes |
| 10693 | else |
| 10694 | echo "$as_me: failed program was:" >&5 |
| 10695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10696 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10697 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10698 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10699 | |
| 10700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10701 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10702 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10703 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10704 | if test $ac_cv_type_error_t = yes; then |
| 10705 | |
| 10706 | cat >>confdefs.h <<_ACEOF |
| 10707 | #define HAVE_ERROR_T 1 |
| 10708 | _ACEOF |
| 10709 | |
| 10710 | |
| 10711 | else |
| 10712 | |
| 10713 | cat >>confdefs.h <<\_ACEOF |
| 10714 | #define error_t int |
| 10715 | _ACEOF |
| 10716 | |
| 10717 | fi |
| 10718 | |
| 10719 | |
| 10720 | |
| 10721 | |
| 10722 | |
| 10723 | |
| 10724 | |
| 10725 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 10726 | do |
| 10727 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10728 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10729 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10730 | 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] | 10731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10732 | else |
| 10733 | cat >conftest.$ac_ext <<_ACEOF |
| 10734 | /* confdefs.h. */ |
| 10735 | _ACEOF |
| 10736 | cat confdefs.h >>conftest.$ac_ext |
| 10737 | cat >>conftest.$ac_ext <<_ACEOF |
| 10738 | /* end confdefs.h. */ |
| 10739 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10741 | #define $ac_func innocuous_$ac_func |
| 10742 | |
| 10743 | /* System header to define __stub macros and hopefully few prototypes, |
| 10744 | which can conflict with char $ac_func (); below. |
| 10745 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10746 | <limits.h> exists even on freestanding compilers. */ |
| 10747 | |
| 10748 | #ifdef __STDC__ |
| 10749 | # include <limits.h> |
| 10750 | #else |
| 10751 | # include <assert.h> |
| 10752 | #endif |
| 10753 | |
| 10754 | #undef $ac_func |
| 10755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10756 | /* Override any GCC internal prototype to avoid an error. |
| 10757 | Use char because int might match the return type of a GCC |
| 10758 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10759 | #ifdef __cplusplus |
| 10760 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10761 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10762 | char $ac_func (); |
| 10763 | /* The GNU C library defines this for functions which it implements |
| 10764 | to always fail with ENOSYS. Some functions are actually named |
| 10765 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10766 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10767 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10768 | #endif |
| 10769 | |
| 10770 | int |
| 10771 | main () |
| 10772 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10773 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10774 | ; |
| 10775 | return 0; |
| 10776 | } |
| 10777 | _ACEOF |
| 10778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10779 | if { (ac_try="$ac_link" |
| 10780 | case "(($ac_try" in |
| 10781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10782 | *) ac_try_echo=$ac_try;; |
| 10783 | esac |
| 10784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10785 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10786 | ac_status=$? |
| 10787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10788 | rm -f conftest.er1 |
| 10789 | cat conftest.err >&5 |
| 10790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10791 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10793 | { (case "(($ac_try" in |
| 10794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10795 | *) ac_try_echo=$ac_try;; |
| 10796 | esac |
| 10797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10798 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10799 | ac_status=$? |
| 10800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10801 | (exit $ac_status); }; } && |
| 10802 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10803 | { (case "(($ac_try" in |
| 10804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10805 | *) ac_try_echo=$ac_try;; |
| 10806 | esac |
| 10807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10808 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10809 | ac_status=$? |
| 10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10811 | (exit $ac_status); }; }; then |
| 10812 | eval "$as_ac_var=yes" |
| 10813 | else |
| 10814 | echo "$as_me: failed program was:" >&5 |
| 10815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10817 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10818 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10819 | |
| 10820 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10821 | conftest$ac_exeext conftest.$ac_ext |
| 10822 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10823 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10825 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10826 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10827 | cat >>confdefs.h <<_ACEOF |
| 10828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10829 | _ACEOF |
| 10830 | |
| 10831 | fi |
| 10832 | done |
| 10833 | |
| 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 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 10862 | stdio.h unistd.h |
| 10863 | do |
| 10864 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10866 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10868 | 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] | 10869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10870 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10871 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10872 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10873 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10874 | else |
| 10875 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10876 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10877 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10878 | cat >conftest.$ac_ext <<_ACEOF |
| 10879 | /* confdefs.h. */ |
| 10880 | _ACEOF |
| 10881 | cat confdefs.h >>conftest.$ac_ext |
| 10882 | cat >>conftest.$ac_ext <<_ACEOF |
| 10883 | /* end confdefs.h. */ |
| 10884 | $ac_includes_default |
| 10885 | #include <$ac_header> |
| 10886 | _ACEOF |
| 10887 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10888 | if { (ac_try="$ac_compile" |
| 10889 | case "(($ac_try" in |
| 10890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10891 | *) ac_try_echo=$ac_try;; |
| 10892 | esac |
| 10893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10894 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10895 | ac_status=$? |
| 10896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10897 | rm -f conftest.er1 |
| 10898 | cat conftest.err >&5 |
| 10899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10900 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10902 | { (case "(($ac_try" in |
| 10903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10904 | *) ac_try_echo=$ac_try;; |
| 10905 | esac |
| 10906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10907 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10908 | ac_status=$? |
| 10909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10910 | (exit $ac_status); }; } && |
| 10911 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10912 | { (case "(($ac_try" in |
| 10913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10914 | *) ac_try_echo=$ac_try;; |
| 10915 | esac |
| 10916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10917 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10918 | ac_status=$? |
| 10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10920 | (exit $ac_status); }; }; then |
| 10921 | ac_header_compiler=yes |
| 10922 | else |
| 10923 | echo "$as_me: failed program was:" >&5 |
| 10924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10926 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10928 | |
| 10929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10930 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10931 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10932 | |
| 10933 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10934 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10935 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10936 | cat >conftest.$ac_ext <<_ACEOF |
| 10937 | /* confdefs.h. */ |
| 10938 | _ACEOF |
| 10939 | cat confdefs.h >>conftest.$ac_ext |
| 10940 | cat >>conftest.$ac_ext <<_ACEOF |
| 10941 | /* end confdefs.h. */ |
| 10942 | #include <$ac_header> |
| 10943 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10944 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10945 | case "(($ac_try" in |
| 10946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10947 | *) ac_try_echo=$ac_try;; |
| 10948 | esac |
| 10949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10950 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10951 | ac_status=$? |
| 10952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10953 | rm -f conftest.er1 |
| 10954 | cat conftest.err >&5 |
| 10955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10956 | (exit $ac_status); } >/dev/null; then |
| 10957 | if test -s conftest.err; then |
| 10958 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10959 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10960 | else |
| 10961 | ac_cpp_err= |
| 10962 | fi |
| 10963 | else |
| 10964 | ac_cpp_err=yes |
| 10965 | fi |
| 10966 | if test -z "$ac_cpp_err"; then |
| 10967 | ac_header_preproc=yes |
| 10968 | else |
| 10969 | echo "$as_me: failed program was:" >&5 |
| 10970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10971 | |
| 10972 | ac_header_preproc=no |
| 10973 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10974 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10975 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10976 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10977 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10978 | |
| 10979 | # So? What about this header? |
| 10980 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10981 | yes:no: ) |
| 10982 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10983 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10984 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10985 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10986 | ac_header_preproc=yes |
| 10987 | ;; |
| 10988 | no:yes:* ) |
| 10989 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10990 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10991 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10992 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10993 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10994 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10995 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10996 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10997 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10998 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10999 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11000 | 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] | 11001 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11002 | ## ----------------------------------- ## |
| 11003 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11004 | ## ----------------------------------- ## |
| 11005 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11006 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11007 | ;; |
| 11008 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11009 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11010 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11011 | 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] | 11012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11013 | else |
| 11014 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11015 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11016 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11017 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11018 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11019 | |
| 11020 | fi |
| 11021 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11022 | cat >>confdefs.h <<_ACEOF |
| 11023 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11024 | _ACEOF |
| 11025 | |
| 11026 | fi |
| 11027 | |
| 11028 | done |
| 11029 | |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11035 | do |
| 11036 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11037 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11038 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11039 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11040 | 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] | 11041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11042 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11043 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11044 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11045 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11046 | else |
| 11047 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11048 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11049 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11050 | cat >conftest.$ac_ext <<_ACEOF |
| 11051 | /* confdefs.h. */ |
| 11052 | _ACEOF |
| 11053 | cat confdefs.h >>conftest.$ac_ext |
| 11054 | cat >>conftest.$ac_ext <<_ACEOF |
| 11055 | /* end confdefs.h. */ |
| 11056 | $ac_includes_default |
| 11057 | #include <$ac_header> |
| 11058 | _ACEOF |
| 11059 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11060 | if { (ac_try="$ac_compile" |
| 11061 | case "(($ac_try" in |
| 11062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11063 | *) ac_try_echo=$ac_try;; |
| 11064 | esac |
| 11065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11066 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11067 | ac_status=$? |
| 11068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11069 | rm -f conftest.er1 |
| 11070 | cat conftest.err >&5 |
| 11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11072 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11074 | { (case "(($ac_try" in |
| 11075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11076 | *) ac_try_echo=$ac_try;; |
| 11077 | esac |
| 11078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11079 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11080 | ac_status=$? |
| 11081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11082 | (exit $ac_status); }; } && |
| 11083 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11084 | { (case "(($ac_try" in |
| 11085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11086 | *) ac_try_echo=$ac_try;; |
| 11087 | esac |
| 11088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11089 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11090 | ac_status=$? |
| 11091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11092 | (exit $ac_status); }; }; then |
| 11093 | ac_header_compiler=yes |
| 11094 | else |
| 11095 | echo "$as_me: failed program was:" >&5 |
| 11096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11098 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11099 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11100 | |
| 11101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11102 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11103 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11104 | |
| 11105 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11106 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11107 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11108 | cat >conftest.$ac_ext <<_ACEOF |
| 11109 | /* confdefs.h. */ |
| 11110 | _ACEOF |
| 11111 | cat confdefs.h >>conftest.$ac_ext |
| 11112 | cat >>conftest.$ac_ext <<_ACEOF |
| 11113 | /* end confdefs.h. */ |
| 11114 | #include <$ac_header> |
| 11115 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11116 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11117 | case "(($ac_try" in |
| 11118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11119 | *) ac_try_echo=$ac_try;; |
| 11120 | esac |
| 11121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11122 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11123 | ac_status=$? |
| 11124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11125 | rm -f conftest.er1 |
| 11126 | cat conftest.err >&5 |
| 11127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11128 | (exit $ac_status); } >/dev/null; then |
| 11129 | if test -s conftest.err; then |
| 11130 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11131 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11132 | else |
| 11133 | ac_cpp_err= |
| 11134 | fi |
| 11135 | else |
| 11136 | ac_cpp_err=yes |
| 11137 | fi |
| 11138 | if test -z "$ac_cpp_err"; then |
| 11139 | ac_header_preproc=yes |
| 11140 | else |
| 11141 | echo "$as_me: failed program was:" >&5 |
| 11142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11143 | |
| 11144 | ac_header_preproc=no |
| 11145 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11146 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11147 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11148 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11149 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11150 | |
| 11151 | # So? What about this header? |
| 11152 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11153 | yes:no: ) |
| 11154 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11155 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11156 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11157 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11158 | ac_header_preproc=yes |
| 11159 | ;; |
| 11160 | no:yes:* ) |
| 11161 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11162 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11163 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11164 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11165 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11166 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11167 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11168 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11170 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11171 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11172 | 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] | 11173 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11174 | ## ----------------------------------- ## |
| 11175 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11176 | ## ----------------------------------- ## |
| 11177 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11178 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11179 | ;; |
| 11180 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11181 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11182 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11183 | 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] | 11184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11185 | else |
| 11186 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11187 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11188 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11189 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11190 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11191 | |
| 11192 | fi |
| 11193 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11194 | cat >>confdefs.h <<_ACEOF |
| 11195 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11196 | _ACEOF |
| 11197 | |
| 11198 | fi |
| 11199 | |
| 11200 | done |
| 11201 | |
| 11202 | |
| 11203 | |
| 11204 | for ac_header in string.h strings.h |
| 11205 | do |
| 11206 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11207 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11208 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11209 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11210 | 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] | 11211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11212 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11213 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11214 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11215 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11216 | else |
| 11217 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11218 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11219 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11220 | cat >conftest.$ac_ext <<_ACEOF |
| 11221 | /* confdefs.h. */ |
| 11222 | _ACEOF |
| 11223 | cat confdefs.h >>conftest.$ac_ext |
| 11224 | cat >>conftest.$ac_ext <<_ACEOF |
| 11225 | /* end confdefs.h. */ |
| 11226 | $ac_includes_default |
| 11227 | #include <$ac_header> |
| 11228 | _ACEOF |
| 11229 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11230 | if { (ac_try="$ac_compile" |
| 11231 | case "(($ac_try" in |
| 11232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11233 | *) ac_try_echo=$ac_try;; |
| 11234 | esac |
| 11235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11236 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11237 | ac_status=$? |
| 11238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11239 | rm -f conftest.er1 |
| 11240 | cat conftest.err >&5 |
| 11241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11242 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11244 | { (case "(($ac_try" in |
| 11245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11246 | *) ac_try_echo=$ac_try;; |
| 11247 | esac |
| 11248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11249 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11250 | ac_status=$? |
| 11251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11252 | (exit $ac_status); }; } && |
| 11253 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11254 | { (case "(($ac_try" in |
| 11255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11256 | *) ac_try_echo=$ac_try;; |
| 11257 | esac |
| 11258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11259 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11260 | ac_status=$? |
| 11261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11262 | (exit $ac_status); }; }; then |
| 11263 | ac_header_compiler=yes |
| 11264 | else |
| 11265 | echo "$as_me: failed program was:" >&5 |
| 11266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11268 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11269 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11270 | |
| 11271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11272 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11273 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11274 | |
| 11275 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11276 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11277 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11278 | cat >conftest.$ac_ext <<_ACEOF |
| 11279 | /* confdefs.h. */ |
| 11280 | _ACEOF |
| 11281 | cat confdefs.h >>conftest.$ac_ext |
| 11282 | cat >>conftest.$ac_ext <<_ACEOF |
| 11283 | /* end confdefs.h. */ |
| 11284 | #include <$ac_header> |
| 11285 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11286 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11287 | case "(($ac_try" in |
| 11288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11289 | *) ac_try_echo=$ac_try;; |
| 11290 | esac |
| 11291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11292 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11293 | ac_status=$? |
| 11294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11295 | rm -f conftest.er1 |
| 11296 | cat conftest.err >&5 |
| 11297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11298 | (exit $ac_status); } >/dev/null; then |
| 11299 | if test -s conftest.err; then |
| 11300 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11301 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11302 | else |
| 11303 | ac_cpp_err= |
| 11304 | fi |
| 11305 | else |
| 11306 | ac_cpp_err=yes |
| 11307 | fi |
| 11308 | if test -z "$ac_cpp_err"; then |
| 11309 | ac_header_preproc=yes |
| 11310 | else |
| 11311 | echo "$as_me: failed program was:" >&5 |
| 11312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11313 | |
| 11314 | ac_header_preproc=no |
| 11315 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11316 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11317 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11318 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11319 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11320 | |
| 11321 | # So? What about this header? |
| 11322 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11323 | yes:no: ) |
| 11324 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11325 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11326 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11327 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11328 | ac_header_preproc=yes |
| 11329 | ;; |
| 11330 | no:yes:* ) |
| 11331 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11332 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11333 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11334 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11335 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11336 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11337 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11338 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11340 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11341 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11342 | 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] | 11343 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11344 | ## ----------------------------------- ## |
| 11345 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11346 | ## ----------------------------------- ## |
| 11347 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11348 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11349 | ;; |
| 11350 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11353 | 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] | 11354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11355 | else |
| 11356 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11357 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11358 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11359 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11360 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11361 | |
| 11362 | fi |
| 11363 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11364 | cat >>confdefs.h <<_ACEOF |
| 11365 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11366 | _ACEOF |
| 11367 | break |
| 11368 | fi |
| 11369 | |
| 11370 | done |
| 11371 | |
| 11372 | |
| 11373 | |
| 11374 | |
| 11375 | for ac_func in strchr index |
| 11376 | do |
| 11377 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11378 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11379 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11380 | 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] | 11381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11382 | else |
| 11383 | cat >conftest.$ac_ext <<_ACEOF |
| 11384 | /* confdefs.h. */ |
| 11385 | _ACEOF |
| 11386 | cat confdefs.h >>conftest.$ac_ext |
| 11387 | cat >>conftest.$ac_ext <<_ACEOF |
| 11388 | /* end confdefs.h. */ |
| 11389 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11390 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11391 | #define $ac_func innocuous_$ac_func |
| 11392 | |
| 11393 | /* System header to define __stub macros and hopefully few prototypes, |
| 11394 | which can conflict with char $ac_func (); below. |
| 11395 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11396 | <limits.h> exists even on freestanding compilers. */ |
| 11397 | |
| 11398 | #ifdef __STDC__ |
| 11399 | # include <limits.h> |
| 11400 | #else |
| 11401 | # include <assert.h> |
| 11402 | #endif |
| 11403 | |
| 11404 | #undef $ac_func |
| 11405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11406 | /* Override any GCC internal prototype to avoid an error. |
| 11407 | Use char because int might match the return type of a GCC |
| 11408 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11409 | #ifdef __cplusplus |
| 11410 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11411 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11412 | char $ac_func (); |
| 11413 | /* The GNU C library defines this for functions which it implements |
| 11414 | to always fail with ENOSYS. Some functions are actually named |
| 11415 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11416 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11417 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11418 | #endif |
| 11419 | |
| 11420 | int |
| 11421 | main () |
| 11422 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11423 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11424 | ; |
| 11425 | return 0; |
| 11426 | } |
| 11427 | _ACEOF |
| 11428 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11429 | if { (ac_try="$ac_link" |
| 11430 | case "(($ac_try" in |
| 11431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11432 | *) ac_try_echo=$ac_try;; |
| 11433 | esac |
| 11434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11435 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11436 | ac_status=$? |
| 11437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11438 | rm -f conftest.er1 |
| 11439 | cat conftest.err >&5 |
| 11440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11441 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11443 | { (case "(($ac_try" in |
| 11444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11445 | *) ac_try_echo=$ac_try;; |
| 11446 | esac |
| 11447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11448 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11449 | ac_status=$? |
| 11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11451 | (exit $ac_status); }; } && |
| 11452 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11453 | { (case "(($ac_try" in |
| 11454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11455 | *) ac_try_echo=$ac_try;; |
| 11456 | esac |
| 11457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11458 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11459 | ac_status=$? |
| 11460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11461 | (exit $ac_status); }; }; then |
| 11462 | eval "$as_ac_var=yes" |
| 11463 | else |
| 11464 | echo "$as_me: failed program was:" >&5 |
| 11465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11467 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11468 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11469 | |
| 11470 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11471 | conftest$ac_exeext conftest.$ac_ext |
| 11472 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11473 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11474 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11475 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11476 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11477 | cat >>confdefs.h <<_ACEOF |
| 11478 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11479 | _ACEOF |
| 11480 | break |
| 11481 | fi |
| 11482 | done |
| 11483 | |
| 11484 | |
| 11485 | |
| 11486 | for ac_func in strrchr rindex |
| 11487 | do |
| 11488 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11489 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11490 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11491 | 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] | 11492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11493 | else |
| 11494 | cat >conftest.$ac_ext <<_ACEOF |
| 11495 | /* confdefs.h. */ |
| 11496 | _ACEOF |
| 11497 | cat confdefs.h >>conftest.$ac_ext |
| 11498 | cat >>conftest.$ac_ext <<_ACEOF |
| 11499 | /* end confdefs.h. */ |
| 11500 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11501 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11502 | #define $ac_func innocuous_$ac_func |
| 11503 | |
| 11504 | /* System header to define __stub macros and hopefully few prototypes, |
| 11505 | which can conflict with char $ac_func (); below. |
| 11506 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11507 | <limits.h> exists even on freestanding compilers. */ |
| 11508 | |
| 11509 | #ifdef __STDC__ |
| 11510 | # include <limits.h> |
| 11511 | #else |
| 11512 | # include <assert.h> |
| 11513 | #endif |
| 11514 | |
| 11515 | #undef $ac_func |
| 11516 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11517 | /* Override any GCC internal prototype to avoid an error. |
| 11518 | Use char because int might match the return type of a GCC |
| 11519 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11520 | #ifdef __cplusplus |
| 11521 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11522 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11523 | char $ac_func (); |
| 11524 | /* The GNU C library defines this for functions which it implements |
| 11525 | to always fail with ENOSYS. Some functions are actually named |
| 11526 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11527 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11528 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11529 | #endif |
| 11530 | |
| 11531 | int |
| 11532 | main () |
| 11533 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11534 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11535 | ; |
| 11536 | return 0; |
| 11537 | } |
| 11538 | _ACEOF |
| 11539 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11540 | if { (ac_try="$ac_link" |
| 11541 | case "(($ac_try" in |
| 11542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11543 | *) ac_try_echo=$ac_try;; |
| 11544 | esac |
| 11545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11546 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11547 | ac_status=$? |
| 11548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11549 | rm -f conftest.er1 |
| 11550 | cat conftest.err >&5 |
| 11551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11552 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11554 | { (case "(($ac_try" in |
| 11555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11556 | *) ac_try_echo=$ac_try;; |
| 11557 | esac |
| 11558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11559 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11560 | ac_status=$? |
| 11561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11562 | (exit $ac_status); }; } && |
| 11563 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11564 | { (case "(($ac_try" in |
| 11565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11566 | *) ac_try_echo=$ac_try;; |
| 11567 | esac |
| 11568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11569 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11570 | ac_status=$? |
| 11571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11572 | (exit $ac_status); }; }; then |
| 11573 | eval "$as_ac_var=yes" |
| 11574 | else |
| 11575 | echo "$as_me: failed program was:" >&5 |
| 11576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11578 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11579 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11580 | |
| 11581 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11582 | conftest$ac_exeext conftest.$ac_ext |
| 11583 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11584 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11585 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11586 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11587 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11588 | cat >>confdefs.h <<_ACEOF |
| 11589 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11590 | _ACEOF |
| 11591 | break |
| 11592 | fi |
| 11593 | done |
| 11594 | |
| 11595 | |
| 11596 | |
| 11597 | for ac_func in memcpy bcopy |
| 11598 | do |
| 11599 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11600 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11601 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11602 | 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] | 11603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11604 | else |
| 11605 | cat >conftest.$ac_ext <<_ACEOF |
| 11606 | /* confdefs.h. */ |
| 11607 | _ACEOF |
| 11608 | cat confdefs.h >>conftest.$ac_ext |
| 11609 | cat >>conftest.$ac_ext <<_ACEOF |
| 11610 | /* end confdefs.h. */ |
| 11611 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11612 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11613 | #define $ac_func innocuous_$ac_func |
| 11614 | |
| 11615 | /* System header to define __stub macros and hopefully few prototypes, |
| 11616 | which can conflict with char $ac_func (); below. |
| 11617 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11618 | <limits.h> exists even on freestanding compilers. */ |
| 11619 | |
| 11620 | #ifdef __STDC__ |
| 11621 | # include <limits.h> |
| 11622 | #else |
| 11623 | # include <assert.h> |
| 11624 | #endif |
| 11625 | |
| 11626 | #undef $ac_func |
| 11627 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11628 | /* Override any GCC internal prototype to avoid an error. |
| 11629 | Use char because int might match the return type of a GCC |
| 11630 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11631 | #ifdef __cplusplus |
| 11632 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11633 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11634 | char $ac_func (); |
| 11635 | /* The GNU C library defines this for functions which it implements |
| 11636 | to always fail with ENOSYS. Some functions are actually named |
| 11637 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11638 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11639 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11640 | #endif |
| 11641 | |
| 11642 | int |
| 11643 | main () |
| 11644 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11645 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11646 | ; |
| 11647 | return 0; |
| 11648 | } |
| 11649 | _ACEOF |
| 11650 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11651 | if { (ac_try="$ac_link" |
| 11652 | case "(($ac_try" in |
| 11653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11654 | *) ac_try_echo=$ac_try;; |
| 11655 | esac |
| 11656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11657 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11658 | ac_status=$? |
| 11659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11660 | rm -f conftest.er1 |
| 11661 | cat conftest.err >&5 |
| 11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11663 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11665 | { (case "(($ac_try" in |
| 11666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11667 | *) ac_try_echo=$ac_try;; |
| 11668 | esac |
| 11669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11670 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11671 | ac_status=$? |
| 11672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11673 | (exit $ac_status); }; } && |
| 11674 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11675 | { (case "(($ac_try" in |
| 11676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11677 | *) ac_try_echo=$ac_try;; |
| 11678 | esac |
| 11679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11680 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11681 | ac_status=$? |
| 11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11683 | (exit $ac_status); }; }; then |
| 11684 | eval "$as_ac_var=yes" |
| 11685 | else |
| 11686 | echo "$as_me: failed program was:" >&5 |
| 11687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11689 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11690 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11691 | |
| 11692 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11693 | conftest$ac_exeext conftest.$ac_ext |
| 11694 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11695 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11696 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11697 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11698 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11699 | cat >>confdefs.h <<_ACEOF |
| 11700 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11701 | _ACEOF |
| 11702 | break |
| 11703 | fi |
| 11704 | done |
| 11705 | |
| 11706 | |
| 11707 | |
| 11708 | for ac_func in memmove strcmp |
| 11709 | do |
| 11710 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11711 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11712 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11713 | 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] | 11714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11715 | else |
| 11716 | cat >conftest.$ac_ext <<_ACEOF |
| 11717 | /* confdefs.h. */ |
| 11718 | _ACEOF |
| 11719 | cat confdefs.h >>conftest.$ac_ext |
| 11720 | cat >>conftest.$ac_ext <<_ACEOF |
| 11721 | /* end confdefs.h. */ |
| 11722 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11723 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11724 | #define $ac_func innocuous_$ac_func |
| 11725 | |
| 11726 | /* System header to define __stub macros and hopefully few prototypes, |
| 11727 | which can conflict with char $ac_func (); below. |
| 11728 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11729 | <limits.h> exists even on freestanding compilers. */ |
| 11730 | |
| 11731 | #ifdef __STDC__ |
| 11732 | # include <limits.h> |
| 11733 | #else |
| 11734 | # include <assert.h> |
| 11735 | #endif |
| 11736 | |
| 11737 | #undef $ac_func |
| 11738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11739 | /* Override any GCC internal prototype to avoid an error. |
| 11740 | Use char because int might match the return type of a GCC |
| 11741 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11742 | #ifdef __cplusplus |
| 11743 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11744 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11745 | char $ac_func (); |
| 11746 | /* The GNU C library defines this for functions which it implements |
| 11747 | to always fail with ENOSYS. Some functions are actually named |
| 11748 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11749 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11750 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11751 | #endif |
| 11752 | |
| 11753 | int |
| 11754 | main () |
| 11755 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11756 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11757 | ; |
| 11758 | return 0; |
| 11759 | } |
| 11760 | _ACEOF |
| 11761 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11762 | if { (ac_try="$ac_link" |
| 11763 | case "(($ac_try" in |
| 11764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11765 | *) ac_try_echo=$ac_try;; |
| 11766 | esac |
| 11767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11768 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11769 | ac_status=$? |
| 11770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11771 | rm -f conftest.er1 |
| 11772 | cat conftest.err >&5 |
| 11773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11774 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11776 | { (case "(($ac_try" in |
| 11777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11778 | *) ac_try_echo=$ac_try;; |
| 11779 | esac |
| 11780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11781 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11782 | ac_status=$? |
| 11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11784 | (exit $ac_status); }; } && |
| 11785 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11786 | { (case "(($ac_try" in |
| 11787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11788 | *) ac_try_echo=$ac_try;; |
| 11789 | esac |
| 11790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11791 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11792 | ac_status=$? |
| 11793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11794 | (exit $ac_status); }; }; then |
| 11795 | eval "$as_ac_var=yes" |
| 11796 | else |
| 11797 | echo "$as_me: failed program was:" >&5 |
| 11798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11799 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11800 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11801 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11802 | |
| 11803 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11804 | conftest$ac_exeext conftest.$ac_ext |
| 11805 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11806 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11807 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11808 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11809 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11810 | cat >>confdefs.h <<_ACEOF |
| 11811 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11812 | _ACEOF |
| 11813 | |
| 11814 | fi |
| 11815 | done |
| 11816 | |
| 11817 | |
| 11818 | |
| 11819 | |
| 11820 | for ac_func in closedir opendir readdir |
| 11821 | do |
| 11822 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11823 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11824 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11825 | 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] | 11826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11827 | else |
| 11828 | cat >conftest.$ac_ext <<_ACEOF |
| 11829 | /* confdefs.h. */ |
| 11830 | _ACEOF |
| 11831 | cat confdefs.h >>conftest.$ac_ext |
| 11832 | cat >>conftest.$ac_ext <<_ACEOF |
| 11833 | /* end confdefs.h. */ |
| 11834 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11836 | #define $ac_func innocuous_$ac_func |
| 11837 | |
| 11838 | /* System header to define __stub macros and hopefully few prototypes, |
| 11839 | which can conflict with char $ac_func (); below. |
| 11840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11841 | <limits.h> exists even on freestanding compilers. */ |
| 11842 | |
| 11843 | #ifdef __STDC__ |
| 11844 | # include <limits.h> |
| 11845 | #else |
| 11846 | # include <assert.h> |
| 11847 | #endif |
| 11848 | |
| 11849 | #undef $ac_func |
| 11850 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11851 | /* Override any GCC internal prototype to avoid an error. |
| 11852 | Use char because int might match the return type of a GCC |
| 11853 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11854 | #ifdef __cplusplus |
| 11855 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11856 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11857 | char $ac_func (); |
| 11858 | /* The GNU C library defines this for functions which it implements |
| 11859 | to always fail with ENOSYS. Some functions are actually named |
| 11860 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11861 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11862 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11863 | #endif |
| 11864 | |
| 11865 | int |
| 11866 | main () |
| 11867 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11868 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11869 | ; |
| 11870 | return 0; |
| 11871 | } |
| 11872 | _ACEOF |
| 11873 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11874 | if { (ac_try="$ac_link" |
| 11875 | case "(($ac_try" in |
| 11876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11877 | *) ac_try_echo=$ac_try;; |
| 11878 | esac |
| 11879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11880 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11881 | ac_status=$? |
| 11882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11883 | rm -f conftest.er1 |
| 11884 | cat conftest.err >&5 |
| 11885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11886 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11888 | { (case "(($ac_try" in |
| 11889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11890 | *) ac_try_echo=$ac_try;; |
| 11891 | esac |
| 11892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11893 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11894 | ac_status=$? |
| 11895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11896 | (exit $ac_status); }; } && |
| 11897 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11898 | { (case "(($ac_try" in |
| 11899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11900 | *) ac_try_echo=$ac_try;; |
| 11901 | esac |
| 11902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11903 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11904 | ac_status=$? |
| 11905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11906 | (exit $ac_status); }; }; then |
| 11907 | eval "$as_ac_var=yes" |
| 11908 | else |
| 11909 | echo "$as_me: failed program was:" >&5 |
| 11910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11912 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11913 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11914 | |
| 11915 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11916 | conftest$ac_exeext conftest.$ac_ext |
| 11917 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11918 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11919 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11920 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11921 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11922 | cat >>confdefs.h <<_ACEOF |
| 11923 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11924 | _ACEOF |
| 11925 | |
| 11926 | fi |
| 11927 | done |
| 11928 | |
| 11929 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11930 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11931 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11932 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11933 | case $enableval in |
| 11934 | yes) enable_shared=yes ;; |
| 11935 | no) enable_shared=no ;; |
| 11936 | *) |
| 11937 | enable_shared=no |
| 11938 | # Look at the argument we got. We use all the common list separators. |
| 11939 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11940 | for pkg in $enableval; do |
| 11941 | IFS="$lt_save_ifs" |
| 11942 | if test "X$pkg" = "X$p"; then |
| 11943 | enable_shared=yes |
| 11944 | fi |
| 11945 | done |
| 11946 | IFS="$lt_save_ifs" |
| 11947 | ;; |
| 11948 | esac |
| 11949 | else |
| 11950 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11951 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11952 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11953 | |
| 11954 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11955 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11956 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11957 | case $enableval in |
| 11958 | yes) enable_static=yes ;; |
| 11959 | no) enable_static=no ;; |
| 11960 | *) |
| 11961 | enable_static=no |
| 11962 | # Look at the argument we got. We use all the common list separators. |
| 11963 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11964 | for pkg in $enableval; do |
| 11965 | IFS="$lt_save_ifs" |
| 11966 | if test "X$pkg" = "X$p"; then |
| 11967 | enable_static=yes |
| 11968 | fi |
| 11969 | done |
| 11970 | IFS="$lt_save_ifs" |
| 11971 | ;; |
| 11972 | esac |
| 11973 | else |
| 11974 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11975 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11976 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11977 | |
| 11978 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11979 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11980 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11981 | case $enableval in |
| 11982 | yes) enable_fast_install=yes ;; |
| 11983 | no) enable_fast_install=no ;; |
| 11984 | *) |
| 11985 | enable_fast_install=no |
| 11986 | # Look at the argument we got. We use all the common list separators. |
| 11987 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11988 | for pkg in $enableval; do |
| 11989 | IFS="$lt_save_ifs" |
| 11990 | if test "X$pkg" = "X$p"; then |
| 11991 | enable_fast_install=yes |
| 11992 | fi |
| 11993 | done |
| 11994 | IFS="$lt_save_ifs" |
| 11995 | ;; |
| 11996 | esac |
| 11997 | else |
| 11998 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11999 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12001 | |
| 12002 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12003 | 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] | 12004 | if test "${lt_cv_path_SED+set}" = set; then |
| 12005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12006 | else |
| 12007 | # Loop through the user's path and test for sed and gsed. |
| 12008 | # Then use that list of sed's as ones to test for truncation. |
| 12009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12010 | for as_dir in $PATH |
| 12011 | do |
| 12012 | IFS=$as_save_IFS |
| 12013 | test -z "$as_dir" && as_dir=. |
| 12014 | for lt_ac_prog in sed gsed; do |
| 12015 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12016 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12017 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12018 | fi |
| 12019 | done |
| 12020 | done |
| 12021 | done |
| 12022 | lt_ac_max=0 |
| 12023 | lt_ac_count=0 |
| 12024 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12025 | # along with /bin/sed that truncates output. |
| 12026 | 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] | 12027 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12028 | cat /dev/null > conftest.in |
| 12029 | lt_ac_count=0 |
| 12030 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12031 | # Check for GNU sed and select it if it is found. |
| 12032 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12033 | lt_cv_path_SED=$lt_ac_sed |
| 12034 | break |
| 12035 | fi |
| 12036 | while true; do |
| 12037 | cat conftest.in conftest.in >conftest.tmp |
| 12038 | mv conftest.tmp conftest.in |
| 12039 | cp conftest.in conftest.nl |
| 12040 | echo >>conftest.nl |
| 12041 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12042 | cmp -s conftest.out conftest.nl || break |
| 12043 | # 10000 chars as input seems more than enough |
| 12044 | test $lt_ac_count -gt 10 && break |
| 12045 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12046 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12047 | lt_ac_max=$lt_ac_count |
| 12048 | lt_cv_path_SED=$lt_ac_sed |
| 12049 | fi |
| 12050 | done |
| 12051 | done |
| 12052 | |
| 12053 | fi |
| 12054 | |
| 12055 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12056 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12057 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12058 | |
| 12059 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12060 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12061 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12062 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12063 | else |
| 12064 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12065 | fi |
| 12066 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12067 | ac_prog=ld |
| 12068 | if test "$GCC" = yes; then |
| 12069 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12070 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12071 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12072 | case $host in |
| 12073 | *-*-mingw*) |
| 12074 | # gcc leaves a trailing carriage return which upsets mingw |
| 12075 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12076 | *) |
| 12077 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12078 | esac |
| 12079 | case $ac_prog in |
| 12080 | # Accept absolute paths. |
| 12081 | [\\/]* | ?:[\\/]*) |
| 12082 | re_direlt='/[^/][^/]*/\.\./' |
| 12083 | # Canonicalize the pathname of ld |
| 12084 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12085 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12086 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12087 | done |
| 12088 | test -z "$LD" && LD="$ac_prog" |
| 12089 | ;; |
| 12090 | "") |
| 12091 | # If it fails, then pretend we aren't using GCC. |
| 12092 | ac_prog=ld |
| 12093 | ;; |
| 12094 | *) |
| 12095 | # If it is relative, then search for the first ld in PATH. |
| 12096 | with_gnu_ld=unknown |
| 12097 | ;; |
| 12098 | esac |
| 12099 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12100 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12101 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12102 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12103 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12104 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12105 | fi |
| 12106 | if test "${lt_cv_path_LD+set}" = set; then |
| 12107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12108 | else |
| 12109 | if test -z "$LD"; then |
| 12110 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12111 | for ac_dir in $PATH; do |
| 12112 | IFS="$lt_save_ifs" |
| 12113 | test -z "$ac_dir" && ac_dir=. |
| 12114 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12115 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12116 | # 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] | 12117 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12118 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12119 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12120 | *GNU* | *'with BFD'*) |
| 12121 | test "$with_gnu_ld" != no && break |
| 12122 | ;; |
| 12123 | *) |
| 12124 | test "$with_gnu_ld" != yes && break |
| 12125 | ;; |
| 12126 | esac |
| 12127 | fi |
| 12128 | done |
| 12129 | IFS="$lt_save_ifs" |
| 12130 | else |
| 12131 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12132 | fi |
| 12133 | fi |
| 12134 | |
| 12135 | LD="$lt_cv_path_LD" |
| 12136 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12137 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12138 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12139 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12140 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12141 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12142 | fi |
| 12143 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12144 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12145 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12146 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12147 | 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] | 12148 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12150 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12151 | # 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] | 12152 | case `$LD -v 2>&1 </dev/null` in |
| 12153 | *GNU* | *'with BFD'*) |
| 12154 | lt_cv_prog_gnu_ld=yes |
| 12155 | ;; |
| 12156 | *) |
| 12157 | lt_cv_prog_gnu_ld=no |
| 12158 | ;; |
| 12159 | esac |
| 12160 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12161 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12162 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12163 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12164 | |
| 12165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12166 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12167 | 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] | 12168 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12170 | else |
| 12171 | lt_cv_ld_reload_flag='-r' |
| 12172 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12173 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12174 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12175 | reload_flag=$lt_cv_ld_reload_flag |
| 12176 | case $reload_flag in |
| 12177 | "" | " "*) ;; |
| 12178 | *) reload_flag=" $reload_flag" ;; |
| 12179 | esac |
| 12180 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12181 | case $host_os in |
| 12182 | darwin*) |
| 12183 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12184 | 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] | 12185 | else |
| 12186 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12187 | fi |
| 12188 | ;; |
| 12189 | esac |
| 12190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12191 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12192 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12193 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12195 | else |
| 12196 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12197 | lt_cv_file_magic_test_file= |
| 12198 | lt_cv_deplibs_check_method='unknown' |
| 12199 | # Need to set the preceding variable on all platforms that support |
| 12200 | # interlibrary dependencies. |
| 12201 | # 'none' -- dependencies not supported. |
| 12202 | # `unknown' -- same as none, but documents that we really don't know. |
| 12203 | # 'pass_all' -- all dependencies passed with no checks. |
| 12204 | # 'test_compile' -- check by making test program. |
| 12205 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12206 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12207 | # If you have `file' or equivalent on your system and you're not sure |
| 12208 | # whether `pass_all' will *always* work, you probably want this one. |
| 12209 | |
| 12210 | case $host_os in |
| 12211 | aix4* | aix5*) |
| 12212 | lt_cv_deplibs_check_method=pass_all |
| 12213 | ;; |
| 12214 | |
| 12215 | beos*) |
| 12216 | lt_cv_deplibs_check_method=pass_all |
| 12217 | ;; |
| 12218 | |
| 12219 | bsdi[45]*) |
| 12220 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12221 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12222 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12223 | ;; |
| 12224 | |
| 12225 | cygwin*) |
| 12226 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12227 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12228 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12229 | ;; |
| 12230 | |
| 12231 | mingw* | pw32*) |
| 12232 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12233 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12234 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12235 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12236 | ;; |
| 12237 | |
| 12238 | darwin* | rhapsody*) |
| 12239 | lt_cv_deplibs_check_method=pass_all |
| 12240 | ;; |
| 12241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12242 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12243 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12244 | case $host_cpu in |
| 12245 | i*86 ) |
| 12246 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12247 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12248 | 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] | 12249 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12250 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12251 | ;; |
| 12252 | esac |
| 12253 | else |
| 12254 | lt_cv_deplibs_check_method=pass_all |
| 12255 | fi |
| 12256 | ;; |
| 12257 | |
| 12258 | gnu*) |
| 12259 | lt_cv_deplibs_check_method=pass_all |
| 12260 | ;; |
| 12261 | |
| 12262 | hpux10.20* | hpux11*) |
| 12263 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12264 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12265 | ia64*) |
| 12266 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12267 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12268 | ;; |
| 12269 | hppa*64*) |
| 12270 | 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]' |
| 12271 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12272 | ;; |
| 12273 | *) |
| 12274 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12275 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12276 | ;; |
| 12277 | esac |
| 12278 | ;; |
| 12279 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12280 | interix3*) |
| 12281 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12282 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12283 | ;; |
| 12284 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12285 | irix5* | irix6* | nonstopux*) |
| 12286 | case $LD in |
| 12287 | *-32|*"-32 ") libmagic=32-bit;; |
| 12288 | *-n32|*"-n32 ") libmagic=N32;; |
| 12289 | *-64|*"-64 ") libmagic=64-bit;; |
| 12290 | *) libmagic=never-match;; |
| 12291 | esac |
| 12292 | lt_cv_deplibs_check_method=pass_all |
| 12293 | ;; |
| 12294 | |
| 12295 | # This must be Linux ELF. |
| 12296 | linux*) |
| 12297 | lt_cv_deplibs_check_method=pass_all |
| 12298 | ;; |
| 12299 | |
| 12300 | netbsd*) |
| 12301 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12302 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12303 | else |
| 12304 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12305 | fi |
| 12306 | ;; |
| 12307 | |
| 12308 | newos6*) |
| 12309 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12310 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12311 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12312 | ;; |
| 12313 | |
| 12314 | nto-qnx*) |
| 12315 | lt_cv_deplibs_check_method=unknown |
| 12316 | ;; |
| 12317 | |
| 12318 | openbsd*) |
| 12319 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12320 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12321 | else |
| 12322 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12323 | fi |
| 12324 | ;; |
| 12325 | |
| 12326 | osf3* | osf4* | osf5*) |
| 12327 | lt_cv_deplibs_check_method=pass_all |
| 12328 | ;; |
| 12329 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12330 | solaris*) |
| 12331 | lt_cv_deplibs_check_method=pass_all |
| 12332 | ;; |
| 12333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12334 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12335 | case $host_vendor in |
| 12336 | motorola) |
| 12337 | 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]' |
| 12338 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12339 | ;; |
| 12340 | ncr) |
| 12341 | lt_cv_deplibs_check_method=pass_all |
| 12342 | ;; |
| 12343 | sequent) |
| 12344 | lt_cv_file_magic_cmd='/bin/file' |
| 12345 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12346 | ;; |
| 12347 | sni) |
| 12348 | lt_cv_file_magic_cmd='/bin/file' |
| 12349 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12350 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12351 | ;; |
| 12352 | siemens) |
| 12353 | lt_cv_deplibs_check_method=pass_all |
| 12354 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12355 | pc) |
| 12356 | lt_cv_deplibs_check_method=pass_all |
| 12357 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12358 | esac |
| 12359 | ;; |
| 12360 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12361 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12362 | lt_cv_deplibs_check_method=pass_all |
| 12363 | ;; |
| 12364 | esac |
| 12365 | |
| 12366 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12367 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12368 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12369 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12370 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12371 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12372 | |
| 12373 | |
| 12374 | |
| 12375 | # If no C compiler was specified, use CC. |
| 12376 | LTCC=${LTCC-"$CC"} |
| 12377 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12378 | # If no C compiler flags were specified, use CFLAGS. |
| 12379 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12380 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12381 | # Allow CC to be a program name with arguments. |
| 12382 | compiler=$CC |
| 12383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12384 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12385 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12386 | enableval=$enable_libtool_lock; |
| 12387 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12388 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12389 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12390 | |
| 12391 | # Some flags need to be propagated to the compiler or linker for good |
| 12392 | # libtool support. |
| 12393 | case $host in |
| 12394 | ia64-*-hpux*) |
| 12395 | # Find out which ABI we are using. |
| 12396 | echo 'int i;' > conftest.$ac_ext |
| 12397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12398 | (eval $ac_compile) 2>&5 |
| 12399 | ac_status=$? |
| 12400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12401 | (exit $ac_status); }; then |
| 12402 | case `/usr/bin/file conftest.$ac_objext` in |
| 12403 | *ELF-32*) |
| 12404 | HPUX_IA64_MODE="32" |
| 12405 | ;; |
| 12406 | *ELF-64*) |
| 12407 | HPUX_IA64_MODE="64" |
| 12408 | ;; |
| 12409 | esac |
| 12410 | fi |
| 12411 | rm -rf conftest* |
| 12412 | ;; |
| 12413 | *-*-irix6*) |
| 12414 | # Find out which ABI we are using. |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 12415 | echo '#line 12415 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12417 | (eval $ac_compile) 2>&5 |
| 12418 | ac_status=$? |
| 12419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12420 | (exit $ac_status); }; then |
| 12421 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12422 | case `/usr/bin/file conftest.$ac_objext` in |
| 12423 | *32-bit*) |
| 12424 | LD="${LD-ld} -melf32bsmip" |
| 12425 | ;; |
| 12426 | *N32*) |
| 12427 | LD="${LD-ld} -melf32bmipn32" |
| 12428 | ;; |
| 12429 | *64-bit*) |
| 12430 | LD="${LD-ld} -melf64bmip" |
| 12431 | ;; |
| 12432 | esac |
| 12433 | else |
| 12434 | case `/usr/bin/file conftest.$ac_objext` in |
| 12435 | *32-bit*) |
| 12436 | LD="${LD-ld} -32" |
| 12437 | ;; |
| 12438 | *N32*) |
| 12439 | LD="${LD-ld} -n32" |
| 12440 | ;; |
| 12441 | *64-bit*) |
| 12442 | LD="${LD-ld} -64" |
| 12443 | ;; |
| 12444 | esac |
| 12445 | fi |
| 12446 | fi |
| 12447 | rm -rf conftest* |
| 12448 | ;; |
| 12449 | |
| 12450 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 12451 | # Find out which ABI we are using. |
| 12452 | echo 'int i;' > conftest.$ac_ext |
| 12453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12454 | (eval $ac_compile) 2>&5 |
| 12455 | ac_status=$? |
| 12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12457 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12458 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12459 | *32-bit*) |
| 12460 | case $host in |
| 12461 | x86_64-*linux*) |
| 12462 | LD="${LD-ld} -m elf_i386" |
| 12463 | ;; |
| 12464 | ppc64-*linux*|powerpc64-*linux*) |
| 12465 | LD="${LD-ld} -m elf32ppclinux" |
| 12466 | ;; |
| 12467 | s390x-*linux*) |
| 12468 | LD="${LD-ld} -m elf_s390" |
| 12469 | ;; |
| 12470 | sparc64-*linux*) |
| 12471 | LD="${LD-ld} -m elf32_sparc" |
| 12472 | ;; |
| 12473 | esac |
| 12474 | ;; |
| 12475 | *64-bit*) |
| 12476 | case $host in |
| 12477 | x86_64-*linux*) |
| 12478 | LD="${LD-ld} -m elf_x86_64" |
| 12479 | ;; |
| 12480 | ppc*-*linux*|powerpc*-*linux*) |
| 12481 | LD="${LD-ld} -m elf64ppc" |
| 12482 | ;; |
| 12483 | s390*-*linux*) |
| 12484 | LD="${LD-ld} -m elf64_s390" |
| 12485 | ;; |
| 12486 | sparc*-*linux*) |
| 12487 | LD="${LD-ld} -m elf64_sparc" |
| 12488 | ;; |
| 12489 | esac |
| 12490 | ;; |
| 12491 | esac |
| 12492 | fi |
| 12493 | rm -rf conftest* |
| 12494 | ;; |
| 12495 | |
| 12496 | *-*-sco3.2v5*) |
| 12497 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12498 | SAVE_CFLAGS="$CFLAGS" |
| 12499 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12500 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 12501 | 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] | 12502 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 12503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12504 | else |
| 12505 | ac_ext=c |
| 12506 | ac_cpp='$CPP $CPPFLAGS' |
| 12507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12510 | |
| 12511 | cat >conftest.$ac_ext <<_ACEOF |
| 12512 | /* confdefs.h. */ |
| 12513 | _ACEOF |
| 12514 | cat confdefs.h >>conftest.$ac_ext |
| 12515 | cat >>conftest.$ac_ext <<_ACEOF |
| 12516 | /* end confdefs.h. */ |
| 12517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12518 | int |
| 12519 | main () |
| 12520 | { |
| 12521 | |
| 12522 | ; |
| 12523 | return 0; |
| 12524 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12525 | _ACEOF |
| 12526 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12527 | if { (ac_try="$ac_link" |
| 12528 | case "(($ac_try" in |
| 12529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12530 | *) ac_try_echo=$ac_try;; |
| 12531 | esac |
| 12532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12533 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12534 | ac_status=$? |
| 12535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12536 | rm -f conftest.er1 |
| 12537 | cat conftest.err >&5 |
| 12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12539 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12541 | { (case "(($ac_try" in |
| 12542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12543 | *) ac_try_echo=$ac_try;; |
| 12544 | esac |
| 12545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12546 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12547 | ac_status=$? |
| 12548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12549 | (exit $ac_status); }; } && |
| 12550 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12551 | { (case "(($ac_try" in |
| 12552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12553 | *) ac_try_echo=$ac_try;; |
| 12554 | esac |
| 12555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12556 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12557 | ac_status=$? |
| 12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12559 | (exit $ac_status); }; }; then |
| 12560 | lt_cv_cc_needs_belf=yes |
| 12561 | else |
| 12562 | echo "$as_me: failed program was:" >&5 |
| 12563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12565 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12566 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12567 | |
| 12568 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12569 | conftest$ac_exeext conftest.$ac_ext |
| 12570 | ac_ext=c |
| 12571 | ac_cpp='$CPP $CPPFLAGS' |
| 12572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12575 | |
| 12576 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12577 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 12578 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12579 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12580 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12581 | CFLAGS="$SAVE_CFLAGS" |
| 12582 | fi |
| 12583 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12584 | sparc*-*solaris*) |
| 12585 | # Find out which ABI we are using. |
| 12586 | echo 'int i;' > conftest.$ac_ext |
| 12587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12588 | (eval $ac_compile) 2>&5 |
| 12589 | ac_status=$? |
| 12590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12591 | (exit $ac_status); }; then |
| 12592 | case `/usr/bin/file conftest.o` in |
| 12593 | *64-bit*) |
| 12594 | case $lt_cv_prog_gnu_ld in |
| 12595 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 12596 | *) LD="${LD-ld} -64" ;; |
| 12597 | esac |
| 12598 | ;; |
| 12599 | esac |
| 12600 | fi |
| 12601 | rm -rf conftest* |
| 12602 | ;; |
| 12603 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12604 | |
| 12605 | esac |
| 12606 | |
| 12607 | need_locks="$enable_libtool_lock" |
| 12608 | |
| 12609 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12610 | |
| 12611 | |
| 12612 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12613 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12614 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12615 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12616 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12617 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12618 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12619 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12620 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12621 | 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] | 12622 | if test -z "$CXXCPP"; then |
| 12623 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12625 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12626 | # Double quotes because CXXCPP needs to be expanded |
| 12627 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12628 | do |
| 12629 | ac_preproc_ok=false |
| 12630 | for ac_cxx_preproc_warn_flag in '' yes |
| 12631 | do |
| 12632 | # Use a header file that comes with gcc, so configuring glibc |
| 12633 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12634 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12635 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12636 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12637 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12638 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12639 | /* confdefs.h. */ |
| 12640 | _ACEOF |
| 12641 | cat confdefs.h >>conftest.$ac_ext |
| 12642 | cat >>conftest.$ac_ext <<_ACEOF |
| 12643 | /* end confdefs.h. */ |
| 12644 | #ifdef __STDC__ |
| 12645 | # include <limits.h> |
| 12646 | #else |
| 12647 | # include <assert.h> |
| 12648 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12649 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12650 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12651 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12652 | case "(($ac_try" in |
| 12653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12654 | *) ac_try_echo=$ac_try;; |
| 12655 | esac |
| 12656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12657 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12658 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12659 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12660 | rm -f conftest.er1 |
| 12661 | cat conftest.err >&5 |
| 12662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12663 | (exit $ac_status); } >/dev/null; then |
| 12664 | if test -s conftest.err; then |
| 12665 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12666 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12667 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12668 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12669 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12670 | else |
| 12671 | ac_cpp_err=yes |
| 12672 | fi |
| 12673 | if test -z "$ac_cpp_err"; then |
| 12674 | : |
| 12675 | else |
| 12676 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12678 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12679 | # Broken: fails on valid input. |
| 12680 | continue |
| 12681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12682 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12683 | rm -f conftest.err conftest.$ac_ext |
| 12684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12685 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12686 | # can be detected and how. |
| 12687 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12688 | /* confdefs.h. */ |
| 12689 | _ACEOF |
| 12690 | cat confdefs.h >>conftest.$ac_ext |
| 12691 | cat >>conftest.$ac_ext <<_ACEOF |
| 12692 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12693 | #include <ac_nonexistent.h> |
| 12694 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12695 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12696 | case "(($ac_try" in |
| 12697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12698 | *) ac_try_echo=$ac_try;; |
| 12699 | esac |
| 12700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12701 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12702 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12703 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12704 | rm -f conftest.er1 |
| 12705 | cat conftest.err >&5 |
| 12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12707 | (exit $ac_status); } >/dev/null; then |
| 12708 | if test -s conftest.err; then |
| 12709 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12710 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12711 | else |
| 12712 | ac_cpp_err= |
| 12713 | fi |
| 12714 | else |
| 12715 | ac_cpp_err=yes |
| 12716 | fi |
| 12717 | if test -z "$ac_cpp_err"; then |
| 12718 | # Broken: success on invalid input. |
| 12719 | continue |
| 12720 | else |
| 12721 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12723 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12724 | # Passes both tests. |
| 12725 | ac_preproc_ok=: |
| 12726 | break |
| 12727 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12728 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12729 | rm -f conftest.err conftest.$ac_ext |
| 12730 | |
| 12731 | done |
| 12732 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12733 | rm -f conftest.err conftest.$ac_ext |
| 12734 | if $ac_preproc_ok; then |
| 12735 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12736 | fi |
| 12737 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12738 | done |
| 12739 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12740 | |
| 12741 | fi |
| 12742 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12743 | else |
| 12744 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12745 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12746 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 12747 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12748 | ac_preproc_ok=false |
| 12749 | for ac_cxx_preproc_warn_flag in '' yes |
| 12750 | do |
| 12751 | # Use a header file that comes with gcc, so configuring glibc |
| 12752 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12753 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12754 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12755 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12756 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12757 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12758 | /* confdefs.h. */ |
| 12759 | _ACEOF |
| 12760 | cat confdefs.h >>conftest.$ac_ext |
| 12761 | cat >>conftest.$ac_ext <<_ACEOF |
| 12762 | /* end confdefs.h. */ |
| 12763 | #ifdef __STDC__ |
| 12764 | # include <limits.h> |
| 12765 | #else |
| 12766 | # include <assert.h> |
| 12767 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12768 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12769 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12770 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12771 | case "(($ac_try" in |
| 12772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12773 | *) ac_try_echo=$ac_try;; |
| 12774 | esac |
| 12775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12776 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12777 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12778 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12779 | rm -f conftest.er1 |
| 12780 | cat conftest.err >&5 |
| 12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12782 | (exit $ac_status); } >/dev/null; then |
| 12783 | if test -s conftest.err; then |
| 12784 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12785 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12786 | else |
| 12787 | ac_cpp_err= |
| 12788 | fi |
| 12789 | else |
| 12790 | ac_cpp_err=yes |
| 12791 | fi |
| 12792 | if test -z "$ac_cpp_err"; then |
| 12793 | : |
| 12794 | else |
| 12795 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12797 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12798 | # Broken: fails on valid input. |
| 12799 | continue |
| 12800 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12801 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12802 | rm -f conftest.err conftest.$ac_ext |
| 12803 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12804 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12805 | # can be detected and how. |
| 12806 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12807 | /* confdefs.h. */ |
| 12808 | _ACEOF |
| 12809 | cat confdefs.h >>conftest.$ac_ext |
| 12810 | cat >>conftest.$ac_ext <<_ACEOF |
| 12811 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12812 | #include <ac_nonexistent.h> |
| 12813 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12814 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12815 | case "(($ac_try" in |
| 12816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12817 | *) ac_try_echo=$ac_try;; |
| 12818 | esac |
| 12819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12821 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12822 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12823 | rm -f conftest.er1 |
| 12824 | cat conftest.err >&5 |
| 12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12826 | (exit $ac_status); } >/dev/null; then |
| 12827 | if test -s conftest.err; then |
| 12828 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12829 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12830 | else |
| 12831 | ac_cpp_err= |
| 12832 | fi |
| 12833 | else |
| 12834 | ac_cpp_err=yes |
| 12835 | fi |
| 12836 | if test -z "$ac_cpp_err"; then |
| 12837 | # Broken: success on invalid input. |
| 12838 | continue |
| 12839 | else |
| 12840 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12842 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12843 | # Passes both tests. |
| 12844 | ac_preproc_ok=: |
| 12845 | break |
| 12846 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12847 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12848 | rm -f conftest.err conftest.$ac_ext |
| 12849 | |
| 12850 | done |
| 12851 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12852 | rm -f conftest.err conftest.$ac_ext |
| 12853 | if $ac_preproc_ok; then |
| 12854 | : |
| 12855 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12856 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12857 | See \`config.log' for more details." >&5 |
| 12858 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12859 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12860 | { (exit 1); exit 1; }; } |
| 12861 | fi |
| 12862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12863 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12864 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12865 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12866 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12867 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12868 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12869 | fi |
| 12870 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12871 | |
| 12872 | ac_ext=f |
| 12873 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12874 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12875 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12876 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12877 | 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] | 12878 | do |
| 12879 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12880 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12881 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12883 | if test "${ac_cv_prog_F77+set}" = set; then |
| 12884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12885 | else |
| 12886 | if test -n "$F77"; then |
| 12887 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 12888 | else |
| 12889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12890 | for as_dir in $PATH |
| 12891 | do |
| 12892 | IFS=$as_save_IFS |
| 12893 | test -z "$as_dir" && as_dir=. |
| 12894 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12895 | 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] | 12896 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 12897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12898 | break 2 |
| 12899 | fi |
| 12900 | done |
| 12901 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12902 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12903 | |
| 12904 | fi |
| 12905 | fi |
| 12906 | F77=$ac_cv_prog_F77 |
| 12907 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12908 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 12909 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12910 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12911 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12912 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12913 | fi |
| 12914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12915 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12916 | test -n "$F77" && break |
| 12917 | done |
| 12918 | fi |
| 12919 | if test -z "$F77"; then |
| 12920 | ac_ct_F77=$F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12921 | 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] | 12922 | do |
| 12923 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12924 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12925 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12927 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 12928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12929 | else |
| 12930 | if test -n "$ac_ct_F77"; then |
| 12931 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 12932 | else |
| 12933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12934 | for as_dir in $PATH |
| 12935 | do |
| 12936 | IFS=$as_save_IFS |
| 12937 | test -z "$as_dir" && as_dir=. |
| 12938 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12939 | 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] | 12940 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 12941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12942 | break 2 |
| 12943 | fi |
| 12944 | done |
| 12945 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12946 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12947 | |
| 12948 | fi |
| 12949 | fi |
| 12950 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 12951 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12952 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 12953 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12954 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12955 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12956 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12957 | fi |
| 12958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12959 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12960 | test -n "$ac_ct_F77" && break |
| 12961 | done |
| 12962 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12963 | if test "x$ac_ct_F77" = x; then |
| 12964 | F77="" |
| 12965 | else |
| 12966 | case $cross_compiling:$ac_tool_warned in |
| 12967 | yes:) |
| 12968 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12969 | whose name does not start with the host triplet. If you think this |
| 12970 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12971 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12972 | whose name does not start with the host triplet. If you think this |
| 12973 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12974 | ac_tool_warned=yes ;; |
| 12975 | esac |
| 12976 | F77=$ac_ct_F77 |
| 12977 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12978 | fi |
| 12979 | |
| 12980 | |
| 12981 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12982 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12983 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12984 | { (ac_try="$ac_compiler --version >&5" |
| 12985 | case "(($ac_try" in |
| 12986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12987 | *) ac_try_echo=$ac_try;; |
| 12988 | esac |
| 12989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12990 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12991 | ac_status=$? |
| 12992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12993 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12994 | { (ac_try="$ac_compiler -v >&5" |
| 12995 | case "(($ac_try" in |
| 12996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12997 | *) ac_try_echo=$ac_try;; |
| 12998 | esac |
| 12999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13000 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13001 | ac_status=$? |
| 13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13003 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13004 | { (ac_try="$ac_compiler -V >&5" |
| 13005 | case "(($ac_try" in |
| 13006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13007 | *) ac_try_echo=$ac_try;; |
| 13008 | esac |
| 13009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13010 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13011 | ac_status=$? |
| 13012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13013 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13014 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13015 | |
| 13016 | # 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] | 13017 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13018 | ac_save_ext=$ac_ext |
| 13019 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13020 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13021 | 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] | 13022 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13024 | else |
| 13025 | cat >conftest.$ac_ext <<_ACEOF |
| 13026 | program main |
| 13027 | #ifndef __GNUC__ |
| 13028 | choke me |
| 13029 | #endif |
| 13030 | |
| 13031 | end |
| 13032 | _ACEOF |
| 13033 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13034 | if { (ac_try="$ac_compile" |
| 13035 | case "(($ac_try" in |
| 13036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13037 | *) ac_try_echo=$ac_try;; |
| 13038 | esac |
| 13039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13040 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13041 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13043 | rm -f conftest.er1 |
| 13044 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13046 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13047 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13048 | { (case "(($ac_try" in |
| 13049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13050 | *) ac_try_echo=$ac_try;; |
| 13051 | esac |
| 13052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13053 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13054 | ac_status=$? |
| 13055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13056 | (exit $ac_status); }; } && |
| 13057 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13058 | { (case "(($ac_try" in |
| 13059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13060 | *) ac_try_echo=$ac_try;; |
| 13061 | esac |
| 13062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13063 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13064 | ac_status=$? |
| 13065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13066 | (exit $ac_status); }; }; then |
| 13067 | ac_compiler_gnu=yes |
| 13068 | else |
| 13069 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13072 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13073 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13074 | |
| 13075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13076 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13077 | |
| 13078 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13079 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13080 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13081 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13082 | ac_test_FFLAGS=${FFLAGS+set} |
| 13083 | ac_save_FFLAGS=$FFLAGS |
| 13084 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13085 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13086 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13087 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13089 | else |
| 13090 | FFLAGS=-g |
| 13091 | cat >conftest.$ac_ext <<_ACEOF |
| 13092 | program main |
| 13093 | |
| 13094 | end |
| 13095 | _ACEOF |
| 13096 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13097 | if { (ac_try="$ac_compile" |
| 13098 | case "(($ac_try" in |
| 13099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13100 | *) ac_try_echo=$ac_try;; |
| 13101 | esac |
| 13102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13103 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13104 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13106 | rm -f conftest.er1 |
| 13107 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13109 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13110 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13111 | { (case "(($ac_try" in |
| 13112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13113 | *) ac_try_echo=$ac_try;; |
| 13114 | esac |
| 13115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13116 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13117 | ac_status=$? |
| 13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13119 | (exit $ac_status); }; } && |
| 13120 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13121 | { (case "(($ac_try" in |
| 13122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13123 | *) ac_try_echo=$ac_try;; |
| 13124 | esac |
| 13125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13126 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13127 | ac_status=$? |
| 13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13129 | (exit $ac_status); }; }; then |
| 13130 | ac_cv_prog_f77_g=yes |
| 13131 | else |
| 13132 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13135 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13137 | |
| 13138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13139 | |
| 13140 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13141 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13142 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13143 | if test "$ac_test_FFLAGS" = set; then |
| 13144 | FFLAGS=$ac_save_FFLAGS |
| 13145 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13146 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13147 | FFLAGS="-g -O2" |
| 13148 | else |
| 13149 | FFLAGS="-g" |
| 13150 | fi |
| 13151 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13152 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13153 | FFLAGS="-O2" |
| 13154 | else |
| 13155 | FFLAGS= |
| 13156 | fi |
| 13157 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13158 | |
| 13159 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13160 | ac_ext=c |
| 13161 | ac_cpp='$CPP $CPPFLAGS' |
| 13162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13165 | |
| 13166 | |
| 13167 | |
| 13168 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13169 | |
| 13170 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13171 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13172 | 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] | 13173 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13175 | else |
| 13176 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13177 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13178 | |
| 13179 | case $build_os in |
| 13180 | msdosdjgpp*) |
| 13181 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13182 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13183 | # during glob expansion). Even if it were fixed, the result of this |
| 13184 | # check would be larger than it should be. |
| 13185 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13186 | ;; |
| 13187 | |
| 13188 | gnu*) |
| 13189 | # Under GNU Hurd, this test is not required because there is |
| 13190 | # no limit to the length of command line arguments. |
| 13191 | # Libtool will interpret -1 as no limit whatsoever |
| 13192 | lt_cv_sys_max_cmd_len=-1; |
| 13193 | ;; |
| 13194 | |
| 13195 | cygwin* | mingw*) |
| 13196 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13197 | # about 5 minutes as the teststring grows exponentially. |
| 13198 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13199 | # you end up with a "frozen" computer, even though with patience |
| 13200 | # the test eventually succeeds (with a max line length of 256k). |
| 13201 | # Instead, let's just punt: use the minimum linelength reported by |
| 13202 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13203 | lt_cv_sys_max_cmd_len=8192; |
| 13204 | ;; |
| 13205 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13206 | amigaos*) |
| 13207 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13208 | # So we just punt and use a minimum line length of 8192. |
| 13209 | lt_cv_sys_max_cmd_len=8192; |
| 13210 | ;; |
| 13211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13212 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13213 | # This has been around since 386BSD, at least. Likely further. |
| 13214 | if test -x /sbin/sysctl; then |
| 13215 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13216 | elif test -x /usr/sbin/sysctl; then |
| 13217 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13218 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13219 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13220 | fi |
| 13221 | # And add a safety zone |
| 13222 | 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] | 13223 | 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] | 13224 | ;; |
| 13225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13226 | interix*) |
| 13227 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13228 | lt_cv_sys_max_cmd_len=196608 |
| 13229 | ;; |
| 13230 | |
| 13231 | osf*) |
| 13232 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13233 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13234 | # nice to cause kernel panics so lets avoid the loop below. |
| 13235 | # First set a reasonable default. |
| 13236 | lt_cv_sys_max_cmd_len=16384 |
| 13237 | # |
| 13238 | if test -x /sbin/sysconfig; then |
| 13239 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13240 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13241 | esac |
| 13242 | fi |
| 13243 | ;; |
| 13244 | sco3.2v5*) |
| 13245 | lt_cv_sys_max_cmd_len=102400 |
| 13246 | ;; |
| 13247 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13248 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13249 | if test -n "$kargmax"; then |
| 13250 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13251 | else |
| 13252 | lt_cv_sys_max_cmd_len=32768 |
| 13253 | fi |
| 13254 | ;; |
| 13255 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13256 | # If test is not a shell built-in, we'll probably end up computing a |
| 13257 | # maximum length that is only half of the actual maximum length, but |
| 13258 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13259 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13260 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13261 | = "XX$teststring") >/dev/null 2>&1 && |
| 13262 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13263 | lt_cv_sys_max_cmd_len=$new_result && |
| 13264 | test $i != 17 # 1/2 MB should be enough |
| 13265 | do |
| 13266 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13267 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13268 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13269 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13270 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13271 | # amounts of additional arguments before passing them to the linker. |
| 13272 | # It appears as though 1/2 is a usable value. |
| 13273 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13274 | ;; |
| 13275 | esac |
| 13276 | |
| 13277 | fi |
| 13278 | |
| 13279 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13280 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13281 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13282 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13283 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13284 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13285 | fi |
| 13286 | |
| 13287 | |
| 13288 | |
| 13289 | |
| 13290 | # 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] | 13291 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13292 | 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] | 13293 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13295 | else |
| 13296 | |
| 13297 | # These are sane defaults that work on at least a few old systems. |
| 13298 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13299 | |
| 13300 | # Character class describing NM global symbol codes. |
| 13301 | symcode='[BCDEGRST]' |
| 13302 | |
| 13303 | # Regexp to match symbols that can be accessed directly from C. |
| 13304 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13305 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13306 | # Transform an extracted symbol line into a proper C declaration |
| 13307 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13308 | |
| 13309 | # Transform an extracted symbol line into symbol name and symbol address |
| 13310 | 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'" |
| 13311 | |
| 13312 | # Define system-specific variables. |
| 13313 | case $host_os in |
| 13314 | aix*) |
| 13315 | symcode='[BCDT]' |
| 13316 | ;; |
| 13317 | cygwin* | mingw* | pw32*) |
| 13318 | symcode='[ABCDGISTW]' |
| 13319 | ;; |
| 13320 | hpux*) # Its linker distinguishes data from code symbols |
| 13321 | if test "$host_cpu" = ia64; then |
| 13322 | symcode='[ABCDEGRST]' |
| 13323 | fi |
| 13324 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13325 | 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'" |
| 13326 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13327 | linux*) |
| 13328 | if test "$host_cpu" = ia64; then |
| 13329 | symcode='[ABCDGIRSTW]' |
| 13330 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13331 | 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'" |
| 13332 | fi |
| 13333 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13334 | irix* | nonstopux*) |
| 13335 | symcode='[BCDEGRST]' |
| 13336 | ;; |
| 13337 | osf*) |
| 13338 | symcode='[BCDEGQRST]' |
| 13339 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13340 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13341 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13342 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13343 | sco3.2v5*) |
| 13344 | symcode='[DT]' |
| 13345 | ;; |
| 13346 | sysv4.2uw2*) |
| 13347 | symcode='[DT]' |
| 13348 | ;; |
| 13349 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13350 | symcode='[ABDT]' |
| 13351 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13352 | sysv4) |
| 13353 | symcode='[DFNSTU]' |
| 13354 | ;; |
| 13355 | esac |
| 13356 | |
| 13357 | # Handle CRLF in mingw tool chain |
| 13358 | opt_cr= |
| 13359 | case $build_os in |
| 13360 | mingw*) |
| 13361 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13362 | ;; |
| 13363 | esac |
| 13364 | |
| 13365 | # If we're using GNU nm, then use its standard symbol codes. |
| 13366 | case `$NM -V 2>&1` in |
| 13367 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13368 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13369 | esac |
| 13370 | |
| 13371 | # Try without a prefix undercore, then with it. |
| 13372 | for ac_symprfx in "" "_"; do |
| 13373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13374 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13375 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13376 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13377 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13378 | 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] | 13379 | |
| 13380 | # Check to see that the pipe works correctly. |
| 13381 | pipe_works=no |
| 13382 | |
| 13383 | rm -f conftest* |
| 13384 | cat > conftest.$ac_ext <<EOF |
| 13385 | #ifdef __cplusplus |
| 13386 | extern "C" { |
| 13387 | #endif |
| 13388 | char nm_test_var; |
| 13389 | void nm_test_func(){} |
| 13390 | #ifdef __cplusplus |
| 13391 | } |
| 13392 | #endif |
| 13393 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13394 | EOF |
| 13395 | |
| 13396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13397 | (eval $ac_compile) 2>&5 |
| 13398 | ac_status=$? |
| 13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13400 | (exit $ac_status); }; then |
| 13401 | # Now try to grab the symbols. |
| 13402 | nlist=conftest.nm |
| 13403 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13404 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13405 | ac_status=$? |
| 13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13407 | (exit $ac_status); } && test -s "$nlist"; then |
| 13408 | # Try sorting and uniquifying the output. |
| 13409 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13410 | mv -f "$nlist"T "$nlist" |
| 13411 | else |
| 13412 | rm -f "$nlist"T |
| 13413 | fi |
| 13414 | |
| 13415 | # Make sure that we snagged all the symbols we need. |
| 13416 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13417 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13418 | cat <<EOF > conftest.$ac_ext |
| 13419 | #ifdef __cplusplus |
| 13420 | extern "C" { |
| 13421 | #endif |
| 13422 | |
| 13423 | EOF |
| 13424 | # Now generate the symbol file. |
| 13425 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13426 | |
| 13427 | cat <<EOF >> conftest.$ac_ext |
| 13428 | #if defined (__STDC__) && __STDC__ |
| 13429 | # define lt_ptr_t void * |
| 13430 | #else |
| 13431 | # define lt_ptr_t char * |
| 13432 | # define const |
| 13433 | #endif |
| 13434 | |
| 13435 | /* The mapping between symbol names and symbols. */ |
| 13436 | const struct { |
| 13437 | const char *name; |
| 13438 | lt_ptr_t address; |
| 13439 | } |
| 13440 | lt_preloaded_symbols[] = |
| 13441 | { |
| 13442 | EOF |
| 13443 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 13444 | cat <<\EOF >> conftest.$ac_ext |
| 13445 | {0, (lt_ptr_t) 0} |
| 13446 | }; |
| 13447 | |
| 13448 | #ifdef __cplusplus |
| 13449 | } |
| 13450 | #endif |
| 13451 | EOF |
| 13452 | # Now try linking the two files. |
| 13453 | mv conftest.$ac_objext conftstm.$ac_objext |
| 13454 | lt_save_LIBS="$LIBS" |
| 13455 | lt_save_CFLAGS="$CFLAGS" |
| 13456 | LIBS="conftstm.$ac_objext" |
| 13457 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 13458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13459 | (eval $ac_link) 2>&5 |
| 13460 | ac_status=$? |
| 13461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13462 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 13463 | pipe_works=yes |
| 13464 | fi |
| 13465 | LIBS="$lt_save_LIBS" |
| 13466 | CFLAGS="$lt_save_CFLAGS" |
| 13467 | else |
| 13468 | echo "cannot find nm_test_func in $nlist" >&5 |
| 13469 | fi |
| 13470 | else |
| 13471 | echo "cannot find nm_test_var in $nlist" >&5 |
| 13472 | fi |
| 13473 | else |
| 13474 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 13475 | fi |
| 13476 | else |
| 13477 | echo "$progname: failed program was:" >&5 |
| 13478 | cat conftest.$ac_ext >&5 |
| 13479 | fi |
| 13480 | rm -f conftest* conftst* |
| 13481 | |
| 13482 | # Do not use the global_symbol_pipe unless it works. |
| 13483 | if test "$pipe_works" = yes; then |
| 13484 | break |
| 13485 | else |
| 13486 | lt_cv_sys_global_symbol_pipe= |
| 13487 | fi |
| 13488 | done |
| 13489 | |
| 13490 | fi |
| 13491 | |
| 13492 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 13493 | lt_cv_sys_global_symbol_to_cdecl= |
| 13494 | fi |
| 13495 | 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] | 13496 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 13497 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13498 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13499 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13500 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13501 | fi |
| 13502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13503 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 13504 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13505 | if test "${lt_cv_objdir+set}" = set; then |
| 13506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13507 | else |
| 13508 | rm -f .libs 2>/dev/null |
| 13509 | mkdir .libs 2>/dev/null |
| 13510 | if test -d .libs; then |
| 13511 | lt_cv_objdir=.libs |
| 13512 | else |
| 13513 | # MS-DOS does not allow filenames that begin with a dot. |
| 13514 | lt_cv_objdir=_libs |
| 13515 | fi |
| 13516 | rmdir .libs 2>/dev/null |
| 13517 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13518 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 13519 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13520 | objdir=$lt_cv_objdir |
| 13521 | |
| 13522 | |
| 13523 | |
| 13524 | |
| 13525 | |
| 13526 | case $host_os in |
| 13527 | aix3*) |
| 13528 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13529 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13530 | # vanish in a puff of smoke. |
| 13531 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13532 | COLLECT_NAMES= |
| 13533 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13534 | fi |
| 13535 | ;; |
| 13536 | esac |
| 13537 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13538 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13539 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13540 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13541 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 13542 | |
| 13543 | # Same as above, but do not quote variable references. |
| 13544 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 13545 | |
| 13546 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13547 | # double_quote_subst'ed string. |
| 13548 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13549 | |
| 13550 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13551 | no_glob_subst='s/\*/\\\*/g' |
| 13552 | |
| 13553 | # Constants: |
| 13554 | rm="rm -f" |
| 13555 | |
| 13556 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 13557 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13558 | can_build_shared=yes |
| 13559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13560 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13561 | # which needs '.lib'). |
| 13562 | libext=a |
| 13563 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13564 | ofile="$default_ofile" |
| 13565 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13566 | |
| 13567 | if test -n "$ac_tool_prefix"; then |
| 13568 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 13569 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13570 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13572 | if test "${ac_cv_prog_AR+set}" = set; then |
| 13573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13574 | else |
| 13575 | if test -n "$AR"; then |
| 13576 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 13577 | else |
| 13578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13579 | for as_dir in $PATH |
| 13580 | do |
| 13581 | IFS=$as_save_IFS |
| 13582 | test -z "$as_dir" && as_dir=. |
| 13583 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13584 | 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] | 13585 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 13586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13587 | break 2 |
| 13588 | fi |
| 13589 | done |
| 13590 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13591 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13592 | |
| 13593 | fi |
| 13594 | fi |
| 13595 | AR=$ac_cv_prog_AR |
| 13596 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13597 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13598 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13599 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13600 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13601 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13602 | fi |
| 13603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13604 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13605 | fi |
| 13606 | if test -z "$ac_cv_prog_AR"; then |
| 13607 | ac_ct_AR=$AR |
| 13608 | # Extract the first word of "ar", so it can be a program name with args. |
| 13609 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13610 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13612 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 13613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13614 | else |
| 13615 | if test -n "$ac_ct_AR"; then |
| 13616 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 13617 | else |
| 13618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13619 | for as_dir in $PATH |
| 13620 | do |
| 13621 | IFS=$as_save_IFS |
| 13622 | test -z "$as_dir" && as_dir=. |
| 13623 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13624 | 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] | 13625 | ac_cv_prog_ac_ct_AR="ar" |
| 13626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13627 | break 2 |
| 13628 | fi |
| 13629 | done |
| 13630 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13631 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13632 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13633 | fi |
| 13634 | fi |
| 13635 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 13636 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13637 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 13638 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13639 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13640 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13641 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13642 | fi |
| 13643 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13644 | if test "x$ac_ct_AR" = x; then |
| 13645 | AR="false" |
| 13646 | else |
| 13647 | case $cross_compiling:$ac_tool_warned in |
| 13648 | yes:) |
| 13649 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13650 | whose name does not start with the host triplet. If you think this |
| 13651 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13652 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13653 | whose name does not start with the host triplet. If you think this |
| 13654 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13655 | ac_tool_warned=yes ;; |
| 13656 | esac |
| 13657 | AR=$ac_ct_AR |
| 13658 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13659 | else |
| 13660 | AR="$ac_cv_prog_AR" |
| 13661 | fi |
| 13662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13663 | if test -n "$ac_tool_prefix"; then |
| 13664 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 13665 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13666 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13668 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 13669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13670 | else |
| 13671 | if test -n "$RANLIB"; then |
| 13672 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 13673 | else |
| 13674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13675 | for as_dir in $PATH |
| 13676 | do |
| 13677 | IFS=$as_save_IFS |
| 13678 | test -z "$as_dir" && as_dir=. |
| 13679 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13680 | 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] | 13681 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 13682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13683 | break 2 |
| 13684 | fi |
| 13685 | done |
| 13686 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13687 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13688 | |
| 13689 | fi |
| 13690 | fi |
| 13691 | RANLIB=$ac_cv_prog_RANLIB |
| 13692 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13693 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 13694 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13695 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13696 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13697 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13698 | fi |
| 13699 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13700 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13701 | fi |
| 13702 | if test -z "$ac_cv_prog_RANLIB"; then |
| 13703 | ac_ct_RANLIB=$RANLIB |
| 13704 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 13705 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13706 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13708 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 13709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13710 | else |
| 13711 | if test -n "$ac_ct_RANLIB"; then |
| 13712 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 13713 | else |
| 13714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13715 | for as_dir in $PATH |
| 13716 | do |
| 13717 | IFS=$as_save_IFS |
| 13718 | test -z "$as_dir" && as_dir=. |
| 13719 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13720 | 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] | 13721 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 13722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13723 | break 2 |
| 13724 | fi |
| 13725 | done |
| 13726 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13727 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13728 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13729 | fi |
| 13730 | fi |
| 13731 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 13732 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13733 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 13734 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13735 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13736 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13737 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13738 | fi |
| 13739 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13740 | if test "x$ac_ct_RANLIB" = x; then |
| 13741 | RANLIB=":" |
| 13742 | else |
| 13743 | case $cross_compiling:$ac_tool_warned in |
| 13744 | yes:) |
| 13745 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13746 | whose name does not start with the host triplet. If you think this |
| 13747 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13748 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13749 | whose name does not start with the host triplet. If you think this |
| 13750 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13751 | ac_tool_warned=yes ;; |
| 13752 | esac |
| 13753 | RANLIB=$ac_ct_RANLIB |
| 13754 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13755 | else |
| 13756 | RANLIB="$ac_cv_prog_RANLIB" |
| 13757 | fi |
| 13758 | |
| 13759 | if test -n "$ac_tool_prefix"; then |
| 13760 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 13761 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13762 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13764 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 13765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13766 | else |
| 13767 | if test -n "$STRIP"; then |
| 13768 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 13769 | else |
| 13770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13771 | for as_dir in $PATH |
| 13772 | do |
| 13773 | IFS=$as_save_IFS |
| 13774 | test -z "$as_dir" && as_dir=. |
| 13775 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13776 | 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] | 13777 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 13778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13779 | break 2 |
| 13780 | fi |
| 13781 | done |
| 13782 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13783 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13784 | |
| 13785 | fi |
| 13786 | fi |
| 13787 | STRIP=$ac_cv_prog_STRIP |
| 13788 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13789 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 13790 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13791 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13792 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13793 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13794 | fi |
| 13795 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13796 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13797 | fi |
| 13798 | if test -z "$ac_cv_prog_STRIP"; then |
| 13799 | ac_ct_STRIP=$STRIP |
| 13800 | # Extract the first word of "strip", so it can be a program name with args. |
| 13801 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13802 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13804 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 13805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13806 | else |
| 13807 | if test -n "$ac_ct_STRIP"; then |
| 13808 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 13809 | else |
| 13810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13811 | for as_dir in $PATH |
| 13812 | do |
| 13813 | IFS=$as_save_IFS |
| 13814 | test -z "$as_dir" && as_dir=. |
| 13815 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13816 | 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] | 13817 | ac_cv_prog_ac_ct_STRIP="strip" |
| 13818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13819 | break 2 |
| 13820 | fi |
| 13821 | done |
| 13822 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13823 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13824 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13825 | fi |
| 13826 | fi |
| 13827 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 13828 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13829 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 13830 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13831 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13832 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13833 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13834 | fi |
| 13835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13836 | if test "x$ac_ct_STRIP" = x; then |
| 13837 | STRIP=":" |
| 13838 | else |
| 13839 | case $cross_compiling:$ac_tool_warned in |
| 13840 | yes:) |
| 13841 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13842 | whose name does not start with the host triplet. If you think this |
| 13843 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13844 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13845 | whose name does not start with the host triplet. If you think this |
| 13846 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13847 | ac_tool_warned=yes ;; |
| 13848 | esac |
| 13849 | STRIP=$ac_ct_STRIP |
| 13850 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13851 | else |
| 13852 | STRIP="$ac_cv_prog_STRIP" |
| 13853 | fi |
| 13854 | |
| 13855 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13856 | old_CC="$CC" |
| 13857 | old_CFLAGS="$CFLAGS" |
| 13858 | |
| 13859 | # Set sane defaults for various variables |
| 13860 | test -z "$AR" && AR=ar |
| 13861 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 13862 | test -z "$AS" && AS=as |
| 13863 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13864 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13865 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13866 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 13867 | test -z "$LD" && LD=ld |
| 13868 | test -z "$LN_S" && LN_S="ln -s" |
| 13869 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13870 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13871 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13872 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 13873 | test -z "$RANLIB" && RANLIB=: |
| 13874 | test -z "$STRIP" && STRIP=: |
| 13875 | test -z "$ac_objext" && ac_objext=o |
| 13876 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13877 | # Determine commands to create old-style static archives. |
| 13878 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 13879 | old_postinstall_cmds='chmod 644 $oldlib' |
| 13880 | old_postuninstall_cmds= |
| 13881 | |
| 13882 | if test -n "$RANLIB"; then |
| 13883 | case $host_os in |
| 13884 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13885 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13886 | ;; |
| 13887 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13888 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13889 | ;; |
| 13890 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13891 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13892 | fi |
| 13893 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13894 | for cc_temp in $compiler""; do |
| 13895 | case $cc_temp in |
| 13896 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13897 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13898 | \-*) ;; |
| 13899 | *) break;; |
| 13900 | esac |
| 13901 | done |
| 13902 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 13903 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13904 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13905 | # Only perform the check for file, if the check method requires it |
| 13906 | case $deplibs_check_method in |
| 13907 | file_magic*) |
| 13908 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13909 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 13910 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13911 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 13912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13913 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13914 | case $MAGIC_CMD in |
| 13915 | [\\/*] | ?:[\\/]*) |
| 13916 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13917 | ;; |
| 13918 | *) |
| 13919 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13920 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13921 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13922 | for ac_dir in $ac_dummy; do |
| 13923 | IFS="$lt_save_ifs" |
| 13924 | test -z "$ac_dir" && ac_dir=. |
| 13925 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 13926 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 13927 | if test -n "$file_magic_test_file"; then |
| 13928 | case $deplibs_check_method in |
| 13929 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13930 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13931 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13932 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13933 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13934 | : |
| 13935 | else |
| 13936 | cat <<EOF 1>&2 |
| 13937 | |
| 13938 | *** Warning: the command libtool uses to detect shared libraries, |
| 13939 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 13940 | *** The result is that libtool may fail to recognize shared libraries |
| 13941 | *** as such. This will affect the creation of libtool libraries that |
| 13942 | *** depend on shared libraries, but programs linked with such libtool |
| 13943 | *** libraries will work regardless of this problem. Nevertheless, you |
| 13944 | *** may want to report the problem to your system manager and/or to |
| 13945 | *** bug-libtool@gnu.org |
| 13946 | |
| 13947 | EOF |
| 13948 | fi ;; |
| 13949 | esac |
| 13950 | fi |
| 13951 | break |
| 13952 | fi |
| 13953 | done |
| 13954 | IFS="$lt_save_ifs" |
| 13955 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 13956 | ;; |
| 13957 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13958 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13959 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13960 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13961 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13962 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 13963 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13964 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13965 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13966 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13967 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13968 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13969 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 13970 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13971 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 13972 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13973 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 13974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13975 | else |
| 13976 | case $MAGIC_CMD in |
| 13977 | [\\/*] | ?:[\\/]*) |
| 13978 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13979 | ;; |
| 13980 | *) |
| 13981 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13982 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13983 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13984 | for ac_dir in $ac_dummy; do |
| 13985 | IFS="$lt_save_ifs" |
| 13986 | test -z "$ac_dir" && ac_dir=. |
| 13987 | if test -f $ac_dir/file; then |
| 13988 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 13989 | if test -n "$file_magic_test_file"; then |
| 13990 | case $deplibs_check_method in |
| 13991 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13992 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13993 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13994 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13995 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13996 | : |
| 13997 | else |
| 13998 | cat <<EOF 1>&2 |
| 13999 | |
| 14000 | *** Warning: the command libtool uses to detect shared libraries, |
| 14001 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14002 | *** The result is that libtool may fail to recognize shared libraries |
| 14003 | *** as such. This will affect the creation of libtool libraries that |
| 14004 | *** depend on shared libraries, but programs linked with such libtool |
| 14005 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14006 | *** may want to report the problem to your system manager and/or to |
| 14007 | *** bug-libtool@gnu.org |
| 14008 | |
| 14009 | EOF |
| 14010 | fi ;; |
| 14011 | esac |
| 14012 | fi |
| 14013 | break |
| 14014 | fi |
| 14015 | done |
| 14016 | IFS="$lt_save_ifs" |
| 14017 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14018 | ;; |
| 14019 | esac |
| 14020 | fi |
| 14021 | |
| 14022 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14023 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14024 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14025 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14026 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14027 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14028 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14029 | fi |
| 14030 | |
| 14031 | else |
| 14032 | MAGIC_CMD=: |
| 14033 | fi |
| 14034 | fi |
| 14035 | |
| 14036 | fi |
| 14037 | ;; |
| 14038 | esac |
| 14039 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14040 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14041 | enable_win32_dll=no |
| 14042 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14043 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14044 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14045 | enableval=$enable_libtool_lock; |
| 14046 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14047 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14048 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14049 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14051 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14052 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14053 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14054 | else |
| 14055 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14056 | fi |
| 14057 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14058 | test -z "$pic_mode" && pic_mode=default |
| 14059 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14060 | # Use C for the default configuration in the libtool script |
| 14061 | tagname= |
| 14062 | lt_save_CC="$CC" |
| 14063 | ac_ext=c |
| 14064 | ac_cpp='$CPP $CPPFLAGS' |
| 14065 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14066 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14067 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14068 | |
| 14069 | |
| 14070 | # Source file extension for C test sources. |
| 14071 | ac_ext=c |
| 14072 | |
| 14073 | # Object file extension for compiled C test sources. |
| 14074 | objext=o |
| 14075 | objext=$objext |
| 14076 | |
| 14077 | # Code to be used in simple compile tests |
| 14078 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14079 | |
| 14080 | # Code to be used in simple link tests |
| 14081 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14082 | |
| 14083 | |
| 14084 | # If no C compiler was specified, use CC. |
| 14085 | LTCC=${LTCC-"$CC"} |
| 14086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14087 | # If no C compiler flags were specified, use CFLAGS. |
| 14088 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14089 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14090 | # Allow CC to be a program name with arguments. |
| 14091 | compiler=$CC |
| 14092 | |
| 14093 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14094 | # save warnings/boilerplate of simple test code |
| 14095 | ac_outfile=conftest.$ac_objext |
| 14096 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14097 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14098 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14099 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14100 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14101 | ac_outfile=conftest.$ac_objext |
| 14102 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14103 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14104 | _lt_linker_boilerplate=`cat conftest.err` |
| 14105 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14106 | |
| 14107 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14108 | |
| 14109 | lt_prog_compiler_no_builtin_flag= |
| 14110 | |
| 14111 | if test "$GCC" = yes; then |
| 14112 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14113 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14115 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14116 | 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] | 14117 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14119 | else |
| 14120 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14121 | ac_outfile=conftest.$ac_objext |
| 14122 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14123 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14124 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14125 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14126 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14127 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14128 | # The option is referenced via a variable to avoid confusing sed. |
| 14129 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14130 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14131 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14132 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 14133 | (eval echo "\"\$as_me:14133: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14134 | (eval "$lt_compile" 2>conftest.err) |
| 14135 | ac_status=$? |
| 14136 | cat conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 14137 | echo "$as_me:14137: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14138 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14139 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14140 | # So say no if there are warnings other than the usual output. |
| 14141 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14142 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14143 | 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] | 14144 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14145 | fi |
| 14146 | fi |
| 14147 | $rm conftest* |
| 14148 | |
| 14149 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14150 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14151 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14152 | |
| 14153 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14154 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14155 | else |
| 14156 | : |
| 14157 | fi |
| 14158 | |
| 14159 | fi |
| 14160 | |
| 14161 | lt_prog_compiler_wl= |
| 14162 | lt_prog_compiler_pic= |
| 14163 | lt_prog_compiler_static= |
| 14164 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14165 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14166 | 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] | 14167 | |
| 14168 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14169 | lt_prog_compiler_wl='-Wl,' |
| 14170 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14171 | |
| 14172 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14173 | aix*) |
| 14174 | # All AIX code is PIC. |
| 14175 | if test "$host_cpu" = ia64; then |
| 14176 | # AIX 5 now supports IA64 processor |
| 14177 | lt_prog_compiler_static='-Bstatic' |
| 14178 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14179 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14180 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14181 | amigaos*) |
| 14182 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14183 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14184 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14185 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14186 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14187 | |
| 14188 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14189 | # PIC is the default for these OSes. |
| 14190 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14191 | |
| 14192 | mingw* | pw32* | os2*) |
| 14193 | # This hack is so that the source file can tell whether it is being |
| 14194 | # built for inclusion in a dll (and should export symbols for example). |
| 14195 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14196 | ;; |
| 14197 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14198 | darwin* | rhapsody*) |
| 14199 | # PIC is the default on this platform |
| 14200 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14201 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14202 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14203 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14204 | interix3*) |
| 14205 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14206 | # Instead, we relocate shared libraries at runtime. |
| 14207 | ;; |
| 14208 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14209 | msdosdjgpp*) |
| 14210 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14211 | # on systems that don't support them. |
| 14212 | lt_prog_compiler_can_build_shared=no |
| 14213 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14214 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14215 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14216 | sysv4*MP*) |
| 14217 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14218 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14219 | fi |
| 14220 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14221 | |
| 14222 | hpux*) |
| 14223 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14224 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14225 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14226 | hppa*64*|ia64*) |
| 14227 | # +Z the default |
| 14228 | ;; |
| 14229 | *) |
| 14230 | lt_prog_compiler_pic='-fPIC' |
| 14231 | ;; |
| 14232 | esac |
| 14233 | ;; |
| 14234 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14235 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14236 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14237 | ;; |
| 14238 | esac |
| 14239 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14240 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14241 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14242 | aix*) |
| 14243 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14244 | if test "$host_cpu" = ia64; then |
| 14245 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14246 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14247 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14248 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14249 | fi |
| 14250 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14251 | darwin*) |
| 14252 | # PIC is the default on this platform |
| 14253 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14254 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14255 | xlc*) |
| 14256 | lt_prog_compiler_pic='-qnocommon' |
| 14257 | lt_prog_compiler_wl='-Wl,' |
| 14258 | ;; |
| 14259 | esac |
| 14260 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14261 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14262 | mingw* | pw32* | os2*) |
| 14263 | # This hack is so that the source file can tell whether it is being |
| 14264 | # built for inclusion in a dll (and should export symbols for example). |
| 14265 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14266 | ;; |
| 14267 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14268 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14269 | lt_prog_compiler_wl='-Wl,' |
| 14270 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14271 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14272 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14273 | hppa*64*|ia64*) |
| 14274 | # +Z the default |
| 14275 | ;; |
| 14276 | *) |
| 14277 | lt_prog_compiler_pic='+Z' |
| 14278 | ;; |
| 14279 | esac |
| 14280 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14281 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14282 | ;; |
| 14283 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14284 | irix5* | irix6* | nonstopux*) |
| 14285 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14286 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14287 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14288 | ;; |
| 14289 | |
| 14290 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14291 | lt_prog_compiler_pic='-KPIC' |
| 14292 | lt_prog_compiler_static='-Bstatic' |
| 14293 | ;; |
| 14294 | |
| 14295 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14296 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14297 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14298 | lt_prog_compiler_wl='-Wl,' |
| 14299 | lt_prog_compiler_pic='-KPIC' |
| 14300 | lt_prog_compiler_static='-static' |
| 14301 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14302 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14303 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14304 | # which looks to be a dead project) |
| 14305 | lt_prog_compiler_wl='-Wl,' |
| 14306 | lt_prog_compiler_pic='-fpic' |
| 14307 | lt_prog_compiler_static='-Bstatic' |
| 14308 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14309 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14310 | lt_prog_compiler_wl='-Wl,' |
| 14311 | # All Alpha code is PIC. |
| 14312 | lt_prog_compiler_static='-non_shared' |
| 14313 | ;; |
| 14314 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14315 | ;; |
| 14316 | |
| 14317 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14318 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14319 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14320 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14321 | ;; |
| 14322 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14323 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14324 | lt_prog_compiler_pic='-KPIC' |
| 14325 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14326 | case $cc_basename in |
| 14327 | f77* | f90* | f95*) |
| 14328 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14329 | *) |
| 14330 | lt_prog_compiler_wl='-Wl,';; |
| 14331 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14332 | ;; |
| 14333 | |
| 14334 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14335 | lt_prog_compiler_wl='-Qoption ld ' |
| 14336 | lt_prog_compiler_pic='-PIC' |
| 14337 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14338 | ;; |
| 14339 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14340 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14341 | lt_prog_compiler_wl='-Wl,' |
| 14342 | lt_prog_compiler_pic='-KPIC' |
| 14343 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14344 | ;; |
| 14345 | |
| 14346 | sysv4*MP*) |
| 14347 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14348 | lt_prog_compiler_pic='-Kconform_pic' |
| 14349 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14350 | fi |
| 14351 | ;; |
| 14352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14353 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14354 | lt_prog_compiler_wl='-Wl,' |
| 14355 | lt_prog_compiler_pic='-KPIC' |
| 14356 | lt_prog_compiler_static='-Bstatic' |
| 14357 | ;; |
| 14358 | |
| 14359 | unicos*) |
| 14360 | lt_prog_compiler_wl='-Wl,' |
| 14361 | lt_prog_compiler_can_build_shared=no |
| 14362 | ;; |
| 14363 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14364 | uts4*) |
| 14365 | lt_prog_compiler_pic='-pic' |
| 14366 | lt_prog_compiler_static='-Bstatic' |
| 14367 | ;; |
| 14368 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14369 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14370 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14371 | ;; |
| 14372 | esac |
| 14373 | fi |
| 14374 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14375 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14376 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14377 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14378 | # |
| 14379 | # Check to make sure the PIC flag actually works. |
| 14380 | # |
| 14381 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14383 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14384 | 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] | 14385 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14387 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14388 | lt_prog_compiler_pic_works=no |
| 14389 | ac_outfile=conftest.$ac_objext |
| 14390 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14391 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14392 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14393 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14394 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14395 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14396 | # The option is referenced via a variable to avoid confusing sed. |
| 14397 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14398 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14399 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14400 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 14401 | (eval echo "\"\$as_me:14401: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14402 | (eval "$lt_compile" 2>conftest.err) |
| 14403 | ac_status=$? |
| 14404 | cat conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 14405 | echo "$as_me:14405: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14406 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14407 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14408 | # So say no if there are warnings other than the usual output. |
| 14409 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14410 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14411 | 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] | 14412 | lt_prog_compiler_pic_works=yes |
| 14413 | fi |
| 14414 | fi |
| 14415 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14416 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14417 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14418 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14419 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14420 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14421 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14422 | case $lt_prog_compiler_pic in |
| 14423 | "" | " "*) ;; |
| 14424 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14425 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14426 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14427 | lt_prog_compiler_pic= |
| 14428 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14429 | fi |
| 14430 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14431 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14432 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14433 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14434 | *djgpp*) |
| 14435 | lt_prog_compiler_pic= |
| 14436 | ;; |
| 14437 | *) |
| 14438 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14439 | ;; |
| 14440 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14442 | # |
| 14443 | # Check to make sure the static flag actually works. |
| 14444 | # |
| 14445 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14446 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14447 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14448 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 14449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14450 | else |
| 14451 | lt_prog_compiler_static_works=no |
| 14452 | save_LDFLAGS="$LDFLAGS" |
| 14453 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14454 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14455 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14456 | # The linker can only warn and ignore the option if not recognized |
| 14457 | # So say no if there are warnings |
| 14458 | if test -s conftest.err; then |
| 14459 | # Append any errors to the config.log. |
| 14460 | cat conftest.err 1>&5 |
| 14461 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14462 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14463 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14464 | lt_prog_compiler_static_works=yes |
| 14465 | fi |
| 14466 | else |
| 14467 | lt_prog_compiler_static_works=yes |
| 14468 | fi |
| 14469 | fi |
| 14470 | $rm conftest* |
| 14471 | LDFLAGS="$save_LDFLAGS" |
| 14472 | |
| 14473 | fi |
| 14474 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 14475 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 14476 | |
| 14477 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 14478 | : |
| 14479 | else |
| 14480 | lt_prog_compiler_static= |
| 14481 | fi |
| 14482 | |
| 14483 | |
| 14484 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14485 | 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] | 14486 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14488 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14489 | lt_cv_prog_compiler_c_o=no |
| 14490 | $rm -r conftest 2>/dev/null |
| 14491 | mkdir conftest |
| 14492 | cd conftest |
| 14493 | mkdir out |
| 14494 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14495 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14496 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14497 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14498 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14499 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14500 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14501 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14502 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14503 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14504 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 14505 | (eval echo "\"\$as_me:14505: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14506 | (eval "$lt_compile" 2>out/conftest.err) |
| 14507 | ac_status=$? |
| 14508 | cat out/conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 14509 | echo "$as_me:14509: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14510 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14511 | then |
| 14512 | # The compiler can only warn and ignore the option if not recognized |
| 14513 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14514 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14515 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14516 | 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] | 14517 | lt_cv_prog_compiler_c_o=yes |
| 14518 | fi |
| 14519 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14520 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14521 | $rm conftest* |
| 14522 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14523 | # template instantiation |
| 14524 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14525 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14526 | cd .. |
| 14527 | rmdir conftest |
| 14528 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14529 | |
| 14530 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14531 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14532 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14533 | |
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 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14536 | 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] | 14537 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14538 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14539 | 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] | 14540 | hard_links=yes |
| 14541 | $rm conftest* |
| 14542 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14543 | touch conftest.a |
| 14544 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14545 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14546 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14547 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14548 | if test "$hard_links" = no; then |
| 14549 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14550 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14551 | need_locks=warn |
| 14552 | fi |
| 14553 | else |
| 14554 | need_locks=no |
| 14555 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14557 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14558 | 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] | 14559 | |
| 14560 | runpath_var= |
| 14561 | allow_undefined_flag= |
| 14562 | enable_shared_with_static_runtimes=no |
| 14563 | archive_cmds= |
| 14564 | archive_expsym_cmds= |
| 14565 | old_archive_From_new_cmds= |
| 14566 | old_archive_from_expsyms_cmds= |
| 14567 | export_dynamic_flag_spec= |
| 14568 | whole_archive_flag_spec= |
| 14569 | thread_safe_flag_spec= |
| 14570 | hardcode_libdir_flag_spec= |
| 14571 | hardcode_libdir_flag_spec_ld= |
| 14572 | hardcode_libdir_separator= |
| 14573 | hardcode_direct=no |
| 14574 | hardcode_minus_L=no |
| 14575 | hardcode_shlibpath_var=unsupported |
| 14576 | link_all_deplibs=unknown |
| 14577 | hardcode_automatic=no |
| 14578 | module_cmds= |
| 14579 | module_expsym_cmds= |
| 14580 | always_export_symbols=no |
| 14581 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14582 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14583 | # included in the symbol list |
| 14584 | include_expsyms= |
| 14585 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14586 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14587 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14588 | # as well as any symbol that contains `d'. |
| 14589 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 14590 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14591 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14592 | # the symbol is explicitly referenced. Since portable code cannot |
| 14593 | # rely on this symbol name, it's probably fine to never include it in |
| 14594 | # preloaded symbol tables. |
| 14595 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14596 | # Just being paranoid about ensuring that cc_basename is set. |
| 14597 | for cc_temp in $compiler""; do |
| 14598 | case $cc_temp in |
| 14599 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14600 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14601 | \-*) ;; |
| 14602 | *) break;; |
| 14603 | esac |
| 14604 | done |
| 14605 | 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] | 14606 | |
| 14607 | case $host_os in |
| 14608 | cygwin* | mingw* | pw32*) |
| 14609 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14610 | # When not using gcc, we currently assume that we are using |
| 14611 | # Microsoft Visual C++. |
| 14612 | if test "$GCC" != yes; then |
| 14613 | with_gnu_ld=no |
| 14614 | fi |
| 14615 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14616 | interix*) |
| 14617 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14618 | with_gnu_ld=yes |
| 14619 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14620 | openbsd*) |
| 14621 | with_gnu_ld=no |
| 14622 | ;; |
| 14623 | esac |
| 14624 | |
| 14625 | ld_shlibs=yes |
| 14626 | if test "$with_gnu_ld" = yes; then |
| 14627 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14628 | wlarc='${wl}' |
| 14629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14630 | # Set some defaults for GNU ld with shared library support. These |
| 14631 | # are reset later if shared libraries are not supported. Putting them |
| 14632 | # here allows them to be overridden if necessary. |
| 14633 | runpath_var=LD_RUN_PATH |
| 14634 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 14635 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 14636 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14637 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14638 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14639 | else |
| 14640 | whole_archive_flag_spec= |
| 14641 | fi |
| 14642 | supports_anon_versioning=no |
| 14643 | case `$LD -v 2>/dev/null` in |
| 14644 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14645 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14646 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14647 | *\ 2.11.*) ;; # other 2.11 versions |
| 14648 | *) supports_anon_versioning=yes ;; |
| 14649 | esac |
| 14650 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14651 | # See if GNU ld supports shared libraries. |
| 14652 | case $host_os in |
| 14653 | aix3* | aix4* | aix5*) |
| 14654 | # On AIX/PPC, the GNU linker is very broken |
| 14655 | if test "$host_cpu" != ia64; then |
| 14656 | ld_shlibs=no |
| 14657 | cat <<EOF 1>&2 |
| 14658 | |
| 14659 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14660 | *** to be unable to reliably create shared libraries on AIX. |
| 14661 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14662 | *** really care for shared libraries, you may want to modify your PATH |
| 14663 | *** so that a non-GNU linker is found, and then restart. |
| 14664 | |
| 14665 | EOF |
| 14666 | fi |
| 14667 | ;; |
| 14668 | |
| 14669 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14670 | 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] | 14671 | hardcode_libdir_flag_spec='-L$libdir' |
| 14672 | hardcode_minus_L=yes |
| 14673 | |
| 14674 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14675 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14676 | # to version 4, is to share data among multiple programs linked |
| 14677 | # with the same dynamic library. Since this doesn't match the |
| 14678 | # behavior of shared libraries on other platforms, we can't use |
| 14679 | # them. |
| 14680 | ld_shlibs=no |
| 14681 | ;; |
| 14682 | |
| 14683 | beos*) |
| 14684 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14685 | allow_undefined_flag=unsupported |
| 14686 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14687 | # support --undefined. This deserves some investigation. FIXME |
| 14688 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14689 | else |
| 14690 | ld_shlibs=no |
| 14691 | fi |
| 14692 | ;; |
| 14693 | |
| 14694 | cygwin* | mingw* | pw32*) |
| 14695 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 14696 | # as there is no search path for DLLs. |
| 14697 | hardcode_libdir_flag_spec='-L$libdir' |
| 14698 | allow_undefined_flag=unsupported |
| 14699 | always_export_symbols=no |
| 14700 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14701 | 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] | 14702 | |
| 14703 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14704 | 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] | 14705 | # If the export-symbols file already is a .def file (1st line |
| 14706 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14707 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14708 | cp $export_symbols $output_objdir/$soname.def; |
| 14709 | else |
| 14710 | echo EXPORTS > $output_objdir/$soname.def; |
| 14711 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14712 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14713 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14714 | else |
| 14715 | ld_shlibs=no |
| 14716 | fi |
| 14717 | ;; |
| 14718 | |
| 14719 | interix3*) |
| 14720 | hardcode_direct=no |
| 14721 | hardcode_shlibpath_var=no |
| 14722 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14723 | export_dynamic_flag_spec='${wl}-E' |
| 14724 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14725 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14726 | # default) and relocated if they conflict, which is a slow very memory |
| 14727 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14728 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14729 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14730 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14731 | 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' |
| 14732 | ;; |
| 14733 | |
| 14734 | linux*) |
| 14735 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14736 | tmp_addflag= |
| 14737 | case $cc_basename,$host_cpu in |
| 14738 | pgcc*) # Portland Group C compiler |
| 14739 | 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' |
| 14740 | tmp_addflag=' $pic_flag' |
| 14741 | ;; |
| 14742 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14743 | 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' |
| 14744 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14745 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14746 | tmp_addflag=' -i_dynamic' ;; |
| 14747 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14748 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14749 | ifc* | ifort*) # Intel Fortran compiler |
| 14750 | tmp_addflag=' -nofor_main' ;; |
| 14751 | esac |
| 14752 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14753 | |
| 14754 | if test $supports_anon_versioning = yes; then |
| 14755 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14756 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14757 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14758 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14759 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14760 | else |
| 14761 | ld_shlibs=no |
| 14762 | fi |
| 14763 | ;; |
| 14764 | |
| 14765 | netbsd*) |
| 14766 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14767 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14768 | wlarc= |
| 14769 | else |
| 14770 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14771 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14772 | fi |
| 14773 | ;; |
| 14774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14775 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14776 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14777 | ld_shlibs=no |
| 14778 | cat <<EOF 1>&2 |
| 14779 | |
| 14780 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14781 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14782 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14783 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14784 | *** your PATH or compiler configuration so that the native linker is |
| 14785 | *** used, and then restart. |
| 14786 | |
| 14787 | EOF |
| 14788 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14789 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14790 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14791 | else |
| 14792 | ld_shlibs=no |
| 14793 | fi |
| 14794 | ;; |
| 14795 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14796 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14797 | case `$LD -v 2>&1` in |
| 14798 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14799 | ld_shlibs=no |
| 14800 | cat <<_LT_EOF 1>&2 |
| 14801 | |
| 14802 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14803 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14804 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14805 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14806 | *** your PATH or compiler configuration so that the native linker is |
| 14807 | *** used, and then restart. |
| 14808 | |
| 14809 | _LT_EOF |
| 14810 | ;; |
| 14811 | *) |
| 14812 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14813 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14814 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14815 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14816 | else |
| 14817 | ld_shlibs=no |
| 14818 | fi |
| 14819 | ;; |
| 14820 | esac |
| 14821 | ;; |
| 14822 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14823 | sunos4*) |
| 14824 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14825 | wlarc= |
| 14826 | hardcode_direct=yes |
| 14827 | hardcode_shlibpath_var=no |
| 14828 | ;; |
| 14829 | |
| 14830 | *) |
| 14831 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14832 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14833 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14834 | else |
| 14835 | ld_shlibs=no |
| 14836 | fi |
| 14837 | ;; |
| 14838 | esac |
| 14839 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14840 | if test "$ld_shlibs" = no; then |
| 14841 | runpath_var= |
| 14842 | hardcode_libdir_flag_spec= |
| 14843 | export_dynamic_flag_spec= |
| 14844 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14845 | fi |
| 14846 | else |
| 14847 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14848 | case $host_os in |
| 14849 | aix3*) |
| 14850 | allow_undefined_flag=unsupported |
| 14851 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14852 | 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] | 14853 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14854 | # are no directories specified by -L. |
| 14855 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14856 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14857 | # Neither direct hardcoding nor static linking is supported with a |
| 14858 | # broken collect2. |
| 14859 | hardcode_direct=unsupported |
| 14860 | fi |
| 14861 | ;; |
| 14862 | |
| 14863 | aix4* | aix5*) |
| 14864 | if test "$host_cpu" = ia64; then |
| 14865 | # On IA64, the linker does run time linking by default, so we don't |
| 14866 | # have to do anything special. |
| 14867 | aix_use_runtimelinking=no |
| 14868 | exp_sym_flag='-Bexport' |
| 14869 | no_entry_flag="" |
| 14870 | else |
| 14871 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14872 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14873 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14874 | 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' |
| 14875 | else |
| 14876 | 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' |
| 14877 | fi |
| 14878 | aix_use_runtimelinking=no |
| 14879 | |
| 14880 | # Test if we are trying to use run time linking or normal |
| 14881 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14882 | # need to do runtime linking. |
| 14883 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14884 | for ld_flag in $LDFLAGS; do |
| 14885 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14886 | aix_use_runtimelinking=yes |
| 14887 | break |
| 14888 | fi |
| 14889 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14890 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14891 | esac |
| 14892 | |
| 14893 | exp_sym_flag='-bexport' |
| 14894 | no_entry_flag='-bnoentry' |
| 14895 | fi |
| 14896 | |
| 14897 | # When large executables or shared objects are built, AIX ld can |
| 14898 | # have problems creating the table of contents. If linking a library |
| 14899 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14900 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14901 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14902 | |
| 14903 | archive_cmds='' |
| 14904 | hardcode_direct=yes |
| 14905 | hardcode_libdir_separator=':' |
| 14906 | link_all_deplibs=yes |
| 14907 | |
| 14908 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14909 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14910 | # We only want to do this on AIX 4.2 and lower, the check |
| 14911 | # below for broken collect2 doesn't work under 4.3+ |
| 14912 | collect2name=`${CC} -print-prog-name=collect2` |
| 14913 | if test -f "$collect2name" && \ |
| 14914 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14915 | then |
| 14916 | # We have reworked collect2 |
| 14917 | hardcode_direct=yes |
| 14918 | else |
| 14919 | # We have old collect2 |
| 14920 | hardcode_direct=unsupported |
| 14921 | # It fails to find uninstalled libraries when the uninstalled |
| 14922 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14923 | # to unsupported forces relinking |
| 14924 | hardcode_minus_L=yes |
| 14925 | hardcode_libdir_flag_spec='-L$libdir' |
| 14926 | hardcode_libdir_separator= |
| 14927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14928 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14929 | esac |
| 14930 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14931 | if test "$aix_use_runtimelinking" = yes; then |
| 14932 | shared_flag="$shared_flag "'${wl}-G' |
| 14933 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14934 | else |
| 14935 | # not using gcc |
| 14936 | if test "$host_cpu" = ia64; then |
| 14937 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14938 | # chokes on -Wl,-G. The following line is correct: |
| 14939 | shared_flag='-G' |
| 14940 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14941 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14942 | shared_flag='${wl}-G' |
| 14943 | else |
| 14944 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14945 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14946 | fi |
| 14947 | fi |
| 14948 | |
| 14949 | # It seems that -bexpall does not export symbols beginning with |
| 14950 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14951 | always_export_symbols=yes |
| 14952 | if test "$aix_use_runtimelinking" = yes; then |
| 14953 | # Warning - without using the other runtime loading flags (-brtl), |
| 14954 | # -berok will link without error, but may produce a broken library. |
| 14955 | allow_undefined_flag='-berok' |
| 14956 | # Determine the default libpath from the value encoded in an empty executable. |
| 14957 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14958 | /* confdefs.h. */ |
| 14959 | _ACEOF |
| 14960 | cat confdefs.h >>conftest.$ac_ext |
| 14961 | cat >>conftest.$ac_ext <<_ACEOF |
| 14962 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14963 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14964 | int |
| 14965 | main () |
| 14966 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14968 | ; |
| 14969 | return 0; |
| 14970 | } |
| 14971 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14972 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14973 | if { (ac_try="$ac_link" |
| 14974 | case "(($ac_try" in |
| 14975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14976 | *) ac_try_echo=$ac_try;; |
| 14977 | esac |
| 14978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14979 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14980 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14982 | rm -f conftest.er1 |
| 14983 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14985 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14986 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14987 | { (case "(($ac_try" in |
| 14988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14989 | *) ac_try_echo=$ac_try;; |
| 14990 | esac |
| 14991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14992 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14993 | ac_status=$? |
| 14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14995 | (exit $ac_status); }; } && |
| 14996 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14997 | { (case "(($ac_try" in |
| 14998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14999 | *) ac_try_echo=$ac_try;; |
| 15000 | esac |
| 15001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15002 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15003 | ac_status=$? |
| 15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15005 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15006 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15007 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15008 | }'` |
| 15009 | # Check for a 64-bit object if we didn't find anything. |
| 15010 | 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; } |
| 15011 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15012 | else |
| 15013 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15015 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15017 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15018 | |
| 15019 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15020 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15021 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15022 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15023 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15024 | 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] | 15025 | else |
| 15026 | if test "$host_cpu" = ia64; then |
| 15027 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15028 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15029 | 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] | 15030 | else |
| 15031 | # Determine the default libpath from the value encoded in an empty executable. |
| 15032 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15033 | /* confdefs.h. */ |
| 15034 | _ACEOF |
| 15035 | cat confdefs.h >>conftest.$ac_ext |
| 15036 | cat >>conftest.$ac_ext <<_ACEOF |
| 15037 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15038 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15039 | int |
| 15040 | main () |
| 15041 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15042 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15043 | ; |
| 15044 | return 0; |
| 15045 | } |
| 15046 | _ACEOF |
| 15047 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15048 | if { (ac_try="$ac_link" |
| 15049 | case "(($ac_try" in |
| 15050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15051 | *) ac_try_echo=$ac_try;; |
| 15052 | esac |
| 15053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15054 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15055 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15057 | rm -f conftest.er1 |
| 15058 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15060 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15062 | { (case "(($ac_try" in |
| 15063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15064 | *) ac_try_echo=$ac_try;; |
| 15065 | esac |
| 15066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15067 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15068 | ac_status=$? |
| 15069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15070 | (exit $ac_status); }; } && |
| 15071 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15072 | { (case "(($ac_try" in |
| 15073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15074 | *) ac_try_echo=$ac_try;; |
| 15075 | esac |
| 15076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15077 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15078 | ac_status=$? |
| 15079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15080 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15081 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15082 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15083 | }'` |
| 15084 | # Check for a 64-bit object if we didn't find anything. |
| 15085 | 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; } |
| 15086 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15087 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15088 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15091 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15092 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15093 | |
| 15094 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15095 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15096 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15097 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15098 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15099 | # Warning - without using the other run time loading flags, |
| 15100 | # -berok will link without error, but may produce a broken library. |
| 15101 | no_undefined_flag=' ${wl}-bernotok' |
| 15102 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15103 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15104 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15105 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15106 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15107 | 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] | 15108 | fi |
| 15109 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15110 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15111 | |
| 15112 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15113 | 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] | 15114 | hardcode_libdir_flag_spec='-L$libdir' |
| 15115 | hardcode_minus_L=yes |
| 15116 | # see comment about different semantics on the GNU ld section |
| 15117 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15118 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15119 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15120 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15121 | export_dynamic_flag_spec=-rdynamic |
| 15122 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15123 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15124 | cygwin* | mingw* | pw32*) |
| 15125 | # When not using gcc, we currently assume that we are using |
| 15126 | # Microsoft Visual C++. |
| 15127 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15128 | # no search path for DLLs. |
| 15129 | hardcode_libdir_flag_spec=' ' |
| 15130 | allow_undefined_flag=unsupported |
| 15131 | # Tell ltmain to make .lib files, not .a files. |
| 15132 | libext=lib |
| 15133 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15134 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15135 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15136 | 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] | 15137 | # The linker will automatically build a .lib file if we build a DLL. |
| 15138 | old_archive_From_new_cmds='true' |
| 15139 | # FIXME: Should let the user specify the lib program. |
| 15140 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15141 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15142 | enable_shared_with_static_runtimes=yes |
| 15143 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15144 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15145 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15146 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15147 | rhapsody* | darwin1.[012]) |
| 15148 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15149 | ;; |
| 15150 | *) # Darwin 1.3 on |
| 15151 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15152 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15153 | else |
| 15154 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15155 | 10.[012]) |
| 15156 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15157 | ;; |
| 15158 | 10.*) |
| 15159 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15160 | ;; |
| 15161 | esac |
| 15162 | fi |
| 15163 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15164 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15165 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15166 | hardcode_direct=no |
| 15167 | hardcode_automatic=yes |
| 15168 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15169 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15170 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15171 | if test "$GCC" = yes ; then |
| 15172 | output_verbose_link_cmd='echo' |
| 15173 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15174 | 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] | 15175 | # 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] | 15176 | 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}' |
| 15177 | 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] | 15178 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15179 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15180 | xlc*) |
| 15181 | output_verbose_link_cmd='echo' |
| 15182 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15183 | 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] | 15184 | # 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] | 15185 | 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}' |
| 15186 | 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] | 15187 | ;; |
| 15188 | *) |
| 15189 | ld_shlibs=no |
| 15190 | ;; |
| 15191 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15192 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15193 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15194 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15195 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15196 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15197 | hardcode_libdir_flag_spec='-L$libdir' |
| 15198 | hardcode_shlibpath_var=no |
| 15199 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15200 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15201 | freebsd1*) |
| 15202 | ld_shlibs=no |
| 15203 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15204 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15205 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15206 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15207 | # does not break anything, and helps significantly (at the cost of a little |
| 15208 | # extra space). |
| 15209 | freebsd2.2*) |
| 15210 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15211 | hardcode_libdir_flag_spec='-R$libdir' |
| 15212 | hardcode_direct=yes |
| 15213 | hardcode_shlibpath_var=no |
| 15214 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15215 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15216 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15217 | freebsd2*) |
| 15218 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15219 | hardcode_direct=yes |
| 15220 | hardcode_minus_L=yes |
| 15221 | hardcode_shlibpath_var=no |
| 15222 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15223 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15224 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15225 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15226 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15227 | hardcode_libdir_flag_spec='-R$libdir' |
| 15228 | hardcode_direct=yes |
| 15229 | hardcode_shlibpath_var=no |
| 15230 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15231 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15232 | hpux9*) |
| 15233 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15234 | 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] | 15235 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15236 | 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] | 15237 | fi |
| 15238 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15239 | hardcode_libdir_separator=: |
| 15240 | hardcode_direct=yes |
| 15241 | |
| 15242 | # hardcode_minus_L: Not really in the search PATH, |
| 15243 | # but as the default location of the library. |
| 15244 | hardcode_minus_L=yes |
| 15245 | export_dynamic_flag_spec='${wl}-E' |
| 15246 | ;; |
| 15247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15248 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15249 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15250 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15251 | else |
| 15252 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15253 | fi |
| 15254 | if test "$with_gnu_ld" = no; then |
| 15255 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15256 | hardcode_libdir_separator=: |
| 15257 | |
| 15258 | hardcode_direct=yes |
| 15259 | export_dynamic_flag_spec='${wl}-E' |
| 15260 | |
| 15261 | # hardcode_minus_L: Not really in the search PATH, |
| 15262 | # but as the default location of the library. |
| 15263 | hardcode_minus_L=yes |
| 15264 | fi |
| 15265 | ;; |
| 15266 | |
| 15267 | hpux11*) |
| 15268 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15269 | case $host_cpu in |
| 15270 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15271 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15272 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15273 | ia64*) |
| 15274 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15275 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15276 | *) |
| 15277 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15278 | ;; |
| 15279 | esac |
| 15280 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15281 | case $host_cpu in |
| 15282 | hppa*64*) |
| 15283 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15284 | ;; |
| 15285 | ia64*) |
| 15286 | 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] | 15287 | ;; |
| 15288 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15289 | 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] | 15290 | ;; |
| 15291 | esac |
| 15292 | fi |
| 15293 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15294 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15295 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15296 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15297 | case $host_cpu in |
| 15298 | hppa*64*|ia64*) |
| 15299 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15300 | hardcode_direct=no |
| 15301 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15302 | ;; |
| 15303 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15304 | hardcode_direct=yes |
| 15305 | export_dynamic_flag_spec='${wl}-E' |
| 15306 | |
| 15307 | # hardcode_minus_L: Not really in the search PATH, |
| 15308 | # but as the default location of the library. |
| 15309 | hardcode_minus_L=yes |
| 15310 | ;; |
| 15311 | esac |
| 15312 | fi |
| 15313 | ;; |
| 15314 | |
| 15315 | irix5* | irix6* | nonstopux*) |
| 15316 | if test "$GCC" = yes; then |
| 15317 | 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' |
| 15318 | else |
| 15319 | 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' |
| 15320 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15321 | fi |
| 15322 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15323 | hardcode_libdir_separator=: |
| 15324 | link_all_deplibs=yes |
| 15325 | ;; |
| 15326 | |
| 15327 | netbsd*) |
| 15328 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15329 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15330 | else |
| 15331 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15332 | fi |
| 15333 | hardcode_libdir_flag_spec='-R$libdir' |
| 15334 | hardcode_direct=yes |
| 15335 | hardcode_shlibpath_var=no |
| 15336 | ;; |
| 15337 | |
| 15338 | newsos6) |
| 15339 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15340 | hardcode_direct=yes |
| 15341 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15342 | hardcode_libdir_separator=: |
| 15343 | hardcode_shlibpath_var=no |
| 15344 | ;; |
| 15345 | |
| 15346 | openbsd*) |
| 15347 | hardcode_direct=yes |
| 15348 | hardcode_shlibpath_var=no |
| 15349 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15350 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15351 | 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] | 15352 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15353 | export_dynamic_flag_spec='${wl}-E' |
| 15354 | else |
| 15355 | case $host_os in |
| 15356 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15357 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15358 | hardcode_libdir_flag_spec='-R$libdir' |
| 15359 | ;; |
| 15360 | *) |
| 15361 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15362 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15363 | ;; |
| 15364 | esac |
| 15365 | fi |
| 15366 | ;; |
| 15367 | |
| 15368 | os2*) |
| 15369 | hardcode_libdir_flag_spec='-L$libdir' |
| 15370 | hardcode_minus_L=yes |
| 15371 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15372 | 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] | 15373 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15374 | ;; |
| 15375 | |
| 15376 | osf3*) |
| 15377 | if test "$GCC" = yes; then |
| 15378 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15379 | 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' |
| 15380 | else |
| 15381 | allow_undefined_flag=' -expect_unresolved \*' |
| 15382 | 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' |
| 15383 | fi |
| 15384 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15385 | hardcode_libdir_separator=: |
| 15386 | ;; |
| 15387 | |
| 15388 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15389 | if test "$GCC" = yes; then |
| 15390 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15391 | 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' |
| 15392 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15393 | else |
| 15394 | allow_undefined_flag=' -expect_unresolved \*' |
| 15395 | 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] | 15396 | 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] | 15397 | $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] | 15398 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15399 | # Both c and cxx compiler support -rpath directly |
| 15400 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15401 | fi |
| 15402 | hardcode_libdir_separator=: |
| 15403 | ;; |
| 15404 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15405 | solaris*) |
| 15406 | no_undefined_flag=' -z text' |
| 15407 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15408 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15409 | 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] | 15410 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15411 | $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] | 15412 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15413 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15414 | 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] | 15415 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15416 | $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] | 15417 | fi |
| 15418 | hardcode_libdir_flag_spec='-R$libdir' |
| 15419 | hardcode_shlibpath_var=no |
| 15420 | case $host_os in |
| 15421 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15422 | *) |
| 15423 | # The compiler driver will combine linker options so we |
| 15424 | # cannot just pass the convience library names through |
| 15425 | # without $wl, iff we do not link with $LD. |
| 15426 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15427 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15428 | case $wlarc in |
| 15429 | '') |
| 15430 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15431 | *) |
| 15432 | 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' ;; |
| 15433 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15434 | esac |
| 15435 | link_all_deplibs=yes |
| 15436 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15437 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15438 | sunos4*) |
| 15439 | if test "x$host_vendor" = xsequent; then |
| 15440 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15441 | # files that make .init and .fini sections work. |
| 15442 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15443 | else |
| 15444 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15445 | fi |
| 15446 | hardcode_libdir_flag_spec='-L$libdir' |
| 15447 | hardcode_direct=yes |
| 15448 | hardcode_minus_L=yes |
| 15449 | hardcode_shlibpath_var=no |
| 15450 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15451 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15452 | sysv4) |
| 15453 | case $host_vendor in |
| 15454 | sni) |
| 15455 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15456 | hardcode_direct=yes # is this really true??? |
| 15457 | ;; |
| 15458 | siemens) |
| 15459 | ## LD is ld it makes a PLAMLIB |
| 15460 | ## CC just makes a GrossModule. |
| 15461 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15462 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15463 | hardcode_direct=no |
| 15464 | ;; |
| 15465 | motorola) |
| 15466 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15467 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15468 | ;; |
| 15469 | esac |
| 15470 | runpath_var='LD_RUN_PATH' |
| 15471 | hardcode_shlibpath_var=no |
| 15472 | ;; |
| 15473 | |
| 15474 | sysv4.3*) |
| 15475 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15476 | hardcode_shlibpath_var=no |
| 15477 | export_dynamic_flag_spec='-Bexport' |
| 15478 | ;; |
| 15479 | |
| 15480 | sysv4*MP*) |
| 15481 | if test -d /usr/nec; then |
| 15482 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15483 | hardcode_shlibpath_var=no |
| 15484 | runpath_var=LD_RUN_PATH |
| 15485 | hardcode_runpath_var=yes |
| 15486 | ld_shlibs=yes |
| 15487 | fi |
| 15488 | ;; |
| 15489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15490 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15491 | no_undefined_flag='${wl}-z,text' |
| 15492 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15493 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15494 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15495 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15496 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15497 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15498 | 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] | 15499 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15500 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15501 | 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] | 15502 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15503 | ;; |
| 15504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15505 | sysv5* | sco3.2v5* | sco5v6*) |
| 15506 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15507 | # link with -lc, and that would cause any symbols used from libc to |
| 15508 | # always be unresolved, which means just about no library would |
| 15509 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15510 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15511 | # as -z defs. |
| 15512 | no_undefined_flag='${wl}-z,text' |
| 15513 | allow_undefined_flag='${wl}-z,nodefs' |
| 15514 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15515 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15516 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15517 | hardcode_libdir_separator=':' |
| 15518 | link_all_deplibs=yes |
| 15519 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15520 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15521 | |
| 15522 | if test "$GCC" = yes; then |
| 15523 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15524 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15525 | else |
| 15526 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15527 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15528 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15529 | ;; |
| 15530 | |
| 15531 | uts4*) |
| 15532 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15533 | hardcode_libdir_flag_spec='-L$libdir' |
| 15534 | hardcode_shlibpath_var=no |
| 15535 | ;; |
| 15536 | |
| 15537 | *) |
| 15538 | ld_shlibs=no |
| 15539 | ;; |
| 15540 | esac |
| 15541 | fi |
| 15542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15543 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 15544 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15545 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15546 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15547 | # |
| 15548 | # Do we need to explicitly link libc? |
| 15549 | # |
| 15550 | case "x$archive_cmds_need_lc" in |
| 15551 | x|xyes) |
| 15552 | # Assume -lc should be added |
| 15553 | archive_cmds_need_lc=yes |
| 15554 | |
| 15555 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15556 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15557 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15558 | # FIXME: we may have to deal with multi-command sequences. |
| 15559 | ;; |
| 15560 | '$CC '*) |
| 15561 | # Test whether the compiler implicitly links with -lc since on some |
| 15562 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15563 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15564 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15565 | 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] | 15566 | $rm conftest* |
| 15567 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15568 | |
| 15569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15570 | (eval $ac_compile) 2>&5 |
| 15571 | ac_status=$? |
| 15572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15573 | (exit $ac_status); } 2>conftest.err; then |
| 15574 | soname=conftest |
| 15575 | lib=conftest |
| 15576 | libobjs=conftest.$ac_objext |
| 15577 | deplibs= |
| 15578 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15579 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15580 | compiler_flags=-v |
| 15581 | linker_flags=-v |
| 15582 | verstring= |
| 15583 | output_objdir=. |
| 15584 | libname=conftest |
| 15585 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15586 | allow_undefined_flag= |
| 15587 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15588 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15589 | ac_status=$? |
| 15590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15591 | (exit $ac_status); } |
| 15592 | then |
| 15593 | archive_cmds_need_lc=no |
| 15594 | else |
| 15595 | archive_cmds_need_lc=yes |
| 15596 | fi |
| 15597 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15598 | else |
| 15599 | cat conftest.err 1>&5 |
| 15600 | fi |
| 15601 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15602 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 15603 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15604 | ;; |
| 15605 | esac |
| 15606 | fi |
| 15607 | ;; |
| 15608 | esac |
| 15609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15610 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15611 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15612 | library_names_spec= |
| 15613 | libname_spec='lib$name' |
| 15614 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15615 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15616 | postinstall_cmds= |
| 15617 | postuninstall_cmds= |
| 15618 | finish_cmds= |
| 15619 | finish_eval= |
| 15620 | shlibpath_var= |
| 15621 | shlibpath_overrides_runpath=unknown |
| 15622 | version_type=none |
| 15623 | dynamic_linker="$host_os ld.so" |
| 15624 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15625 | if test "$GCC" = yes; then |
| 15626 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15627 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15628 | # if the path contains ";" then we assume it to be the separator |
| 15629 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15630 | # assumed that no part of a normal pathname contains ";" but that should |
| 15631 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15632 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15633 | else |
| 15634 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15635 | fi |
| 15636 | else |
| 15637 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15638 | fi |
| 15639 | need_lib_prefix=unknown |
| 15640 | hardcode_into_libs=no |
| 15641 | |
| 15642 | # when you set need_version to no, make sure it does not cause -set_version |
| 15643 | # flags to be left without arguments |
| 15644 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15645 | |
| 15646 | case $host_os in |
| 15647 | aix3*) |
| 15648 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15649 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15650 | shlibpath_var=LIBPATH |
| 15651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15652 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15653 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15654 | ;; |
| 15655 | |
| 15656 | aix4* | aix5*) |
| 15657 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15658 | need_lib_prefix=no |
| 15659 | need_version=no |
| 15660 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15661 | if test "$host_cpu" = ia64; then |
| 15662 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15663 | 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] | 15664 | shlibpath_var=LD_LIBRARY_PATH |
| 15665 | else |
| 15666 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15667 | # for dependence libraries. The import file would start with |
| 15668 | # the line `#! .'. This would cause the generated library to |
| 15669 | # depend on `.', always an invalid library. This was fixed in |
| 15670 | # development snapshots of GCC prior to 3.0. |
| 15671 | case $host_os in |
| 15672 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15673 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15674 | echo ' yes ' |
| 15675 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15676 | : |
| 15677 | else |
| 15678 | can_build_shared=no |
| 15679 | fi |
| 15680 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15681 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15682 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15683 | # soname into executable. Probably we can add versioning support to |
| 15684 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15685 | if test "$aix_use_runtimelinking" = yes; then |
| 15686 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15687 | # instead of lib<name>.a to let people know that these are not |
| 15688 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15689 | 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] | 15690 | else |
| 15691 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15692 | # and later when we are not doing run time linking. |
| 15693 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15694 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15695 | fi |
| 15696 | shlibpath_var=LIBPATH |
| 15697 | fi |
| 15698 | ;; |
| 15699 | |
| 15700 | amigaos*) |
| 15701 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15702 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15703 | 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] | 15704 | ;; |
| 15705 | |
| 15706 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15707 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15708 | dynamic_linker="$host_os ld.so" |
| 15709 | shlibpath_var=LIBRARY_PATH |
| 15710 | ;; |
| 15711 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15712 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15713 | version_type=linux |
| 15714 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15716 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15717 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15718 | shlibpath_var=LD_LIBRARY_PATH |
| 15719 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15720 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15721 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15722 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15723 | # libtool to hard-code these into programs |
| 15724 | ;; |
| 15725 | |
| 15726 | cygwin* | mingw* | pw32*) |
| 15727 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15728 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15729 | need_version=no |
| 15730 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15731 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15732 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15733 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15734 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15735 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15736 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15737 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15738 | dldir=$destdir/`dirname \$dlpath`~ |
| 15739 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15740 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15741 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15742 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15743 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15744 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15745 | shlibpath_overrides_runpath=yes |
| 15746 | |
| 15747 | case $host_os in |
| 15748 | cygwin*) |
| 15749 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15750 | 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] | 15751 | 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] | 15752 | ;; |
| 15753 | mingw*) |
| 15754 | # MinGW DLLs use traditional 'lib' prefix |
| 15755 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15756 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15757 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15758 | # It is most probably a Windows format PATH printed by |
| 15759 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15760 | # path with ; separators, and with drive letters. We can handle the |
| 15761 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15762 | # especially as we might pass files found there to a mingw objdump, |
| 15763 | # which wouldn't understand a cygwinified path. Ahh. |
| 15764 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15765 | else |
| 15766 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15767 | fi |
| 15768 | ;; |
| 15769 | pw32*) |
| 15770 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15771 | 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] | 15772 | ;; |
| 15773 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15774 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15775 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15776 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15777 | 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] | 15778 | ;; |
| 15779 | esac |
| 15780 | dynamic_linker='Win32 ld.exe' |
| 15781 | # FIXME: first we should search . and the directory the executable is in |
| 15782 | shlibpath_var=PATH |
| 15783 | ;; |
| 15784 | |
| 15785 | darwin* | rhapsody*) |
| 15786 | dynamic_linker="$host_os dyld" |
| 15787 | version_type=darwin |
| 15788 | need_lib_prefix=no |
| 15789 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15790 | 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] | 15791 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15792 | shlibpath_overrides_runpath=yes |
| 15793 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15794 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15795 | # 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] | 15796 | if test "$GCC" = yes; then |
| 15797 | 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"` |
| 15798 | else |
| 15799 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15800 | fi |
| 15801 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15802 | ;; |
| 15803 | |
| 15804 | dgux*) |
| 15805 | version_type=linux |
| 15806 | need_lib_prefix=no |
| 15807 | need_version=no |
| 15808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15809 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15810 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15811 | ;; |
| 15812 | |
| 15813 | freebsd1*) |
| 15814 | dynamic_linker=no |
| 15815 | ;; |
| 15816 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15817 | kfreebsd*-gnu) |
| 15818 | version_type=linux |
| 15819 | need_lib_prefix=no |
| 15820 | need_version=no |
| 15821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15822 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15823 | shlibpath_var=LD_LIBRARY_PATH |
| 15824 | shlibpath_overrides_runpath=no |
| 15825 | hardcode_into_libs=yes |
| 15826 | dynamic_linker='GNU ld.so' |
| 15827 | ;; |
| 15828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15829 | freebsd* | dragonfly*) |
| 15830 | # DragonFly does not have aout. When/if they implement a new |
| 15831 | # versioning mechanism, adjust this. |
| 15832 | if test -x /usr/bin/objformat; then |
| 15833 | objformat=`/usr/bin/objformat` |
| 15834 | else |
| 15835 | case $host_os in |
| 15836 | freebsd[123]*) objformat=aout ;; |
| 15837 | *) objformat=elf ;; |
| 15838 | esac |
| 15839 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15840 | version_type=freebsd-$objformat |
| 15841 | case $version_type in |
| 15842 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15843 | 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] | 15844 | need_version=no |
| 15845 | need_lib_prefix=no |
| 15846 | ;; |
| 15847 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15848 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15849 | need_version=yes |
| 15850 | ;; |
| 15851 | esac |
| 15852 | shlibpath_var=LD_LIBRARY_PATH |
| 15853 | case $host_os in |
| 15854 | freebsd2*) |
| 15855 | shlibpath_overrides_runpath=yes |
| 15856 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15857 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15858 | shlibpath_overrides_runpath=yes |
| 15859 | hardcode_into_libs=yes |
| 15860 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15861 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15862 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15863 | shlibpath_overrides_runpath=no |
| 15864 | hardcode_into_libs=yes |
| 15865 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15866 | freebsd*) # from 4.6 on |
| 15867 | shlibpath_overrides_runpath=yes |
| 15868 | hardcode_into_libs=yes |
| 15869 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15870 | esac |
| 15871 | ;; |
| 15872 | |
| 15873 | gnu*) |
| 15874 | version_type=linux |
| 15875 | need_lib_prefix=no |
| 15876 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15878 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15879 | shlibpath_var=LD_LIBRARY_PATH |
| 15880 | hardcode_into_libs=yes |
| 15881 | ;; |
| 15882 | |
| 15883 | hpux9* | hpux10* | hpux11*) |
| 15884 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15885 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15886 | version_type=sunos |
| 15887 | need_lib_prefix=no |
| 15888 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15889 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15890 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15891 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15892 | hardcode_into_libs=yes |
| 15893 | dynamic_linker="$host_os dld.so" |
| 15894 | shlibpath_var=LD_LIBRARY_PATH |
| 15895 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15897 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15898 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15899 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15900 | else |
| 15901 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15902 | fi |
| 15903 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15904 | ;; |
| 15905 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15906 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15907 | hardcode_into_libs=yes |
| 15908 | dynamic_linker="$host_os dld.sl" |
| 15909 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15910 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15912 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15913 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15914 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15915 | ;; |
| 15916 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15917 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15918 | dynamic_linker="$host_os dld.sl" |
| 15919 | shlibpath_var=SHLIB_PATH |
| 15920 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15922 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15923 | ;; |
| 15924 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15925 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15926 | postinstall_cmds='chmod 555 $lib' |
| 15927 | ;; |
| 15928 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15929 | interix3*) |
| 15930 | version_type=linux |
| 15931 | need_lib_prefix=no |
| 15932 | need_version=no |
| 15933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15934 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15935 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15936 | shlibpath_var=LD_LIBRARY_PATH |
| 15937 | shlibpath_overrides_runpath=no |
| 15938 | hardcode_into_libs=yes |
| 15939 | ;; |
| 15940 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15941 | irix5* | irix6* | nonstopux*) |
| 15942 | case $host_os in |
| 15943 | nonstopux*) version_type=nonstopux ;; |
| 15944 | *) |
| 15945 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15946 | version_type=linux |
| 15947 | else |
| 15948 | version_type=irix |
| 15949 | fi ;; |
| 15950 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15951 | need_lib_prefix=no |
| 15952 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15953 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15954 | 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] | 15955 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15956 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15957 | libsuff= shlibsuff= |
| 15958 | ;; |
| 15959 | *) |
| 15960 | 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] | 15961 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15962 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15963 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15964 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15965 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15966 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15967 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15968 | esac |
| 15969 | ;; |
| 15970 | esac |
| 15971 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15972 | shlibpath_overrides_runpath=no |
| 15973 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15974 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15975 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15976 | ;; |
| 15977 | |
| 15978 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15979 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15980 | dynamic_linker=no |
| 15981 | ;; |
| 15982 | |
| 15983 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15984 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15985 | version_type=linux |
| 15986 | need_lib_prefix=no |
| 15987 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15989 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15990 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15991 | shlibpath_var=LD_LIBRARY_PATH |
| 15992 | shlibpath_overrides_runpath=no |
| 15993 | # This implies no fast_install, which is unacceptable. |
| 15994 | # Some rework will be needed to allow for fast_install |
| 15995 | # before this can be enabled. |
| 15996 | hardcode_into_libs=yes |
| 15997 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15998 | # Append ld.so.conf contents to the search path |
| 15999 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16000 | 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] | 16001 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16002 | fi |
| 16003 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16004 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16005 | # powerpc, because MkLinux only supported shared libraries with the |
| 16006 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16007 | # most powerpc-linux boxes support dynamic linking these days and |
| 16008 | # people can always --disable-shared, the test was removed, and we |
| 16009 | # assume the GNU/Linux dynamic linker is in use. |
| 16010 | dynamic_linker='GNU/Linux ld.so' |
| 16011 | ;; |
| 16012 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16013 | knetbsd*-gnu) |
| 16014 | version_type=linux |
| 16015 | need_lib_prefix=no |
| 16016 | need_version=no |
| 16017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16018 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16019 | shlibpath_var=LD_LIBRARY_PATH |
| 16020 | shlibpath_overrides_runpath=no |
| 16021 | hardcode_into_libs=yes |
| 16022 | dynamic_linker='GNU ld.so' |
| 16023 | ;; |
| 16024 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16025 | netbsd*) |
| 16026 | version_type=sunos |
| 16027 | need_lib_prefix=no |
| 16028 | need_version=no |
| 16029 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16031 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16032 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16033 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16034 | 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] | 16035 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16036 | dynamic_linker='NetBSD ld.elf_so' |
| 16037 | fi |
| 16038 | shlibpath_var=LD_LIBRARY_PATH |
| 16039 | shlibpath_overrides_runpath=yes |
| 16040 | hardcode_into_libs=yes |
| 16041 | ;; |
| 16042 | |
| 16043 | newsos6) |
| 16044 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16046 | shlibpath_var=LD_LIBRARY_PATH |
| 16047 | shlibpath_overrides_runpath=yes |
| 16048 | ;; |
| 16049 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16050 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16051 | version_type=linux |
| 16052 | need_lib_prefix=no |
| 16053 | need_version=no |
| 16054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16055 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16056 | shlibpath_var=LD_LIBRARY_PATH |
| 16057 | shlibpath_overrides_runpath=yes |
| 16058 | ;; |
| 16059 | |
| 16060 | openbsd*) |
| 16061 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16062 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16063 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16064 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16065 | case $host_os in |
| 16066 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16067 | *) need_version=no ;; |
| 16068 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16070 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16071 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16072 | 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] | 16073 | case $host_os in |
| 16074 | openbsd2.[89] | openbsd2.[89].*) |
| 16075 | shlibpath_overrides_runpath=no |
| 16076 | ;; |
| 16077 | *) |
| 16078 | shlibpath_overrides_runpath=yes |
| 16079 | ;; |
| 16080 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16081 | else |
| 16082 | shlibpath_overrides_runpath=yes |
| 16083 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16084 | ;; |
| 16085 | |
| 16086 | os2*) |
| 16087 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16088 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16089 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16090 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16091 | dynamic_linker='OS/2 ld.exe' |
| 16092 | shlibpath_var=LIBPATH |
| 16093 | ;; |
| 16094 | |
| 16095 | osf3* | osf4* | osf5*) |
| 16096 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16097 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16098 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16099 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16100 | 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] | 16101 | shlibpath_var=LD_LIBRARY_PATH |
| 16102 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16103 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16104 | ;; |
| 16105 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16106 | solaris*) |
| 16107 | version_type=linux |
| 16108 | need_lib_prefix=no |
| 16109 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16111 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16112 | shlibpath_var=LD_LIBRARY_PATH |
| 16113 | shlibpath_overrides_runpath=yes |
| 16114 | hardcode_into_libs=yes |
| 16115 | # ldd complains unless libraries are executable |
| 16116 | postinstall_cmds='chmod +x $lib' |
| 16117 | ;; |
| 16118 | |
| 16119 | sunos4*) |
| 16120 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16121 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16122 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16123 | shlibpath_var=LD_LIBRARY_PATH |
| 16124 | shlibpath_overrides_runpath=yes |
| 16125 | if test "$with_gnu_ld" = yes; then |
| 16126 | need_lib_prefix=no |
| 16127 | fi |
| 16128 | need_version=yes |
| 16129 | ;; |
| 16130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16131 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16132 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16134 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16135 | shlibpath_var=LD_LIBRARY_PATH |
| 16136 | case $host_vendor in |
| 16137 | sni) |
| 16138 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16139 | need_lib_prefix=no |
| 16140 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16141 | runpath_var=LD_RUN_PATH |
| 16142 | ;; |
| 16143 | siemens) |
| 16144 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16145 | ;; |
| 16146 | motorola) |
| 16147 | need_lib_prefix=no |
| 16148 | need_version=no |
| 16149 | shlibpath_overrides_runpath=no |
| 16150 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16151 | ;; |
| 16152 | esac |
| 16153 | ;; |
| 16154 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16155 | sysv4*MP*) |
| 16156 | if test -d /usr/nec ;then |
| 16157 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16158 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16159 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16160 | shlibpath_var=LD_LIBRARY_PATH |
| 16161 | fi |
| 16162 | ;; |
| 16163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16164 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16165 | version_type=freebsd-elf |
| 16166 | need_lib_prefix=no |
| 16167 | need_version=no |
| 16168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16169 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16170 | shlibpath_var=LD_LIBRARY_PATH |
| 16171 | hardcode_into_libs=yes |
| 16172 | if test "$with_gnu_ld" = yes; then |
| 16173 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16174 | shlibpath_overrides_runpath=no |
| 16175 | else |
| 16176 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16177 | shlibpath_overrides_runpath=yes |
| 16178 | case $host_os in |
| 16179 | sco3.2v5*) |
| 16180 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16181 | ;; |
| 16182 | esac |
| 16183 | fi |
| 16184 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16185 | ;; |
| 16186 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16187 | uts4*) |
| 16188 | version_type=linux |
| 16189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16190 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16191 | shlibpath_var=LD_LIBRARY_PATH |
| 16192 | ;; |
| 16193 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16194 | *) |
| 16195 | dynamic_linker=no |
| 16196 | ;; |
| 16197 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16198 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16199 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16200 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16202 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16203 | if test "$GCC" = yes; then |
| 16204 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16205 | fi |
| 16206 | |
| 16207 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16208 | 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] | 16209 | hardcode_action= |
| 16210 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16211 | test -n "$runpath_var" || \ |
| 16212 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16213 | |
| 16214 | # We can hardcode non-existant directories. |
| 16215 | if test "$hardcode_direct" != no && |
| 16216 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16217 | # have to relink, otherwise we might link with an installed library |
| 16218 | # when we should be linking with a yet-to-be-installed one |
| 16219 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16220 | test "$hardcode_minus_L" != no; then |
| 16221 | # Linking always hardcodes the temporary library directory. |
| 16222 | hardcode_action=relink |
| 16223 | else |
| 16224 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16225 | hardcode_action=immediate |
| 16226 | fi |
| 16227 | else |
| 16228 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16229 | # directories. |
| 16230 | hardcode_action=unsupported |
| 16231 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16232 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16233 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16234 | |
| 16235 | if test "$hardcode_action" = relink; then |
| 16236 | # Fast installation is not supported |
| 16237 | enable_fast_install=no |
| 16238 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16239 | test "$enable_shared" = no; then |
| 16240 | # Fast installation is not necessary |
| 16241 | enable_fast_install=needless |
| 16242 | fi |
| 16243 | |
| 16244 | striplib= |
| 16245 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16246 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16247 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16248 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16249 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16250 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16251 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16252 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16253 | else |
| 16254 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16255 | case $host_os in |
| 16256 | darwin*) |
| 16257 | if test -n "$STRIP" ; then |
| 16258 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16259 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16260 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16261 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16262 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16263 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16264 | fi |
| 16265 | ;; |
| 16266 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16268 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16269 | ;; |
| 16270 | esac |
| 16271 | fi |
| 16272 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16273 | if test "x$enable_dlopen" != xyes; then |
| 16274 | enable_dlopen=unknown |
| 16275 | enable_dlopen_self=unknown |
| 16276 | enable_dlopen_self_static=unknown |
| 16277 | else |
| 16278 | lt_cv_dlopen=no |
| 16279 | lt_cv_dlopen_libs= |
| 16280 | |
| 16281 | case $host_os in |
| 16282 | beos*) |
| 16283 | lt_cv_dlopen="load_add_on" |
| 16284 | lt_cv_dlopen_libs= |
| 16285 | lt_cv_dlopen_self=yes |
| 16286 | ;; |
| 16287 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16288 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16289 | lt_cv_dlopen="LoadLibrary" |
| 16290 | lt_cv_dlopen_libs= |
| 16291 | ;; |
| 16292 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16293 | cygwin*) |
| 16294 | lt_cv_dlopen="dlopen" |
| 16295 | lt_cv_dlopen_libs= |
| 16296 | ;; |
| 16297 | |
| 16298 | darwin*) |
| 16299 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16300 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16301 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16302 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16304 | else |
| 16305 | ac_check_lib_save_LIBS=$LIBS |
| 16306 | LIBS="-ldl $LIBS" |
| 16307 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16308 | /* confdefs.h. */ |
| 16309 | _ACEOF |
| 16310 | cat confdefs.h >>conftest.$ac_ext |
| 16311 | cat >>conftest.$ac_ext <<_ACEOF |
| 16312 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16314 | /* Override any GCC internal prototype to avoid an error. |
| 16315 | Use char because int might match the return type of a GCC |
| 16316 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16317 | #ifdef __cplusplus |
| 16318 | extern "C" |
| 16319 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16320 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16321 | int |
| 16322 | main () |
| 16323 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16324 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16325 | ; |
| 16326 | return 0; |
| 16327 | } |
| 16328 | _ACEOF |
| 16329 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16330 | if { (ac_try="$ac_link" |
| 16331 | case "(($ac_try" in |
| 16332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16333 | *) ac_try_echo=$ac_try;; |
| 16334 | esac |
| 16335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16336 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16337 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16339 | rm -f conftest.er1 |
| 16340 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16342 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16344 | { (case "(($ac_try" in |
| 16345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16346 | *) ac_try_echo=$ac_try;; |
| 16347 | esac |
| 16348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16349 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16350 | ac_status=$? |
| 16351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16352 | (exit $ac_status); }; } && |
| 16353 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16354 | { (case "(($ac_try" in |
| 16355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16356 | *) ac_try_echo=$ac_try;; |
| 16357 | esac |
| 16358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16359 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16360 | ac_status=$? |
| 16361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16362 | (exit $ac_status); }; }; then |
| 16363 | ac_cv_lib_dl_dlopen=yes |
| 16364 | else |
| 16365 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16368 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16369 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16370 | |
| 16371 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16372 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16373 | LIBS=$ac_check_lib_save_LIBS |
| 16374 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16375 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16376 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16377 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16378 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16379 | else |
| 16380 | |
| 16381 | lt_cv_dlopen="dyld" |
| 16382 | lt_cv_dlopen_libs= |
| 16383 | lt_cv_dlopen_self=yes |
| 16384 | |
| 16385 | fi |
| 16386 | |
| 16387 | ;; |
| 16388 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16389 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16390 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16391 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16392 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16394 | else |
| 16395 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16396 | /* confdefs.h. */ |
| 16397 | _ACEOF |
| 16398 | cat confdefs.h >>conftest.$ac_ext |
| 16399 | cat >>conftest.$ac_ext <<_ACEOF |
| 16400 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16401 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16402 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16403 | #define shl_load innocuous_shl_load |
| 16404 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16405 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16406 | which can conflict with char shl_load (); below. |
| 16407 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16408 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16409 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16410 | #ifdef __STDC__ |
| 16411 | # include <limits.h> |
| 16412 | #else |
| 16413 | # include <assert.h> |
| 16414 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16415 | |
| 16416 | #undef shl_load |
| 16417 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16418 | /* Override any GCC internal prototype to avoid an error. |
| 16419 | Use char because int might match the return type of a GCC |
| 16420 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16421 | #ifdef __cplusplus |
| 16422 | extern "C" |
| 16423 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16424 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16425 | /* The GNU C library defines this for functions which it implements |
| 16426 | to always fail with ENOSYS. Some functions are actually named |
| 16427 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16428 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16429 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16430 | #endif |
| 16431 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16432 | int |
| 16433 | main () |
| 16434 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16435 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16436 | ; |
| 16437 | return 0; |
| 16438 | } |
| 16439 | _ACEOF |
| 16440 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16441 | if { (ac_try="$ac_link" |
| 16442 | case "(($ac_try" in |
| 16443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16444 | *) ac_try_echo=$ac_try;; |
| 16445 | esac |
| 16446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16447 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16448 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16450 | rm -f conftest.er1 |
| 16451 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16453 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16455 | { (case "(($ac_try" in |
| 16456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16457 | *) ac_try_echo=$ac_try;; |
| 16458 | esac |
| 16459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16460 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16461 | ac_status=$? |
| 16462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16463 | (exit $ac_status); }; } && |
| 16464 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16465 | { (case "(($ac_try" in |
| 16466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16467 | *) ac_try_echo=$ac_try;; |
| 16468 | esac |
| 16469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16470 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16471 | ac_status=$? |
| 16472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16473 | (exit $ac_status); }; }; then |
| 16474 | ac_cv_func_shl_load=yes |
| 16475 | else |
| 16476 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16479 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16480 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16481 | |
| 16482 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16483 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16484 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16485 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16486 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16487 | if test $ac_cv_func_shl_load = yes; then |
| 16488 | lt_cv_dlopen="shl_load" |
| 16489 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16490 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16491 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16492 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16494 | else |
| 16495 | ac_check_lib_save_LIBS=$LIBS |
| 16496 | LIBS="-ldld $LIBS" |
| 16497 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16498 | /* confdefs.h. */ |
| 16499 | _ACEOF |
| 16500 | cat confdefs.h >>conftest.$ac_ext |
| 16501 | cat >>conftest.$ac_ext <<_ACEOF |
| 16502 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16504 | /* Override any GCC internal prototype to avoid an error. |
| 16505 | Use char because int might match the return type of a GCC |
| 16506 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16507 | #ifdef __cplusplus |
| 16508 | extern "C" |
| 16509 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16510 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16511 | int |
| 16512 | main () |
| 16513 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16514 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16515 | ; |
| 16516 | return 0; |
| 16517 | } |
| 16518 | _ACEOF |
| 16519 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16520 | if { (ac_try="$ac_link" |
| 16521 | case "(($ac_try" in |
| 16522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16523 | *) ac_try_echo=$ac_try;; |
| 16524 | esac |
| 16525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16526 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16527 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16529 | rm -f conftest.er1 |
| 16530 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16532 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16534 | { (case "(($ac_try" in |
| 16535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16536 | *) ac_try_echo=$ac_try;; |
| 16537 | esac |
| 16538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16539 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16540 | ac_status=$? |
| 16541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16542 | (exit $ac_status); }; } && |
| 16543 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16544 | { (case "(($ac_try" in |
| 16545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16546 | *) ac_try_echo=$ac_try;; |
| 16547 | esac |
| 16548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16549 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16550 | ac_status=$? |
| 16551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16552 | (exit $ac_status); }; }; then |
| 16553 | ac_cv_lib_dld_shl_load=yes |
| 16554 | else |
| 16555 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16558 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16559 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16560 | |
| 16561 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16562 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16563 | LIBS=$ac_check_lib_save_LIBS |
| 16564 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16565 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16566 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16567 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16568 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16569 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16570 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16571 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16572 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16574 | else |
| 16575 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16576 | /* confdefs.h. */ |
| 16577 | _ACEOF |
| 16578 | cat confdefs.h >>conftest.$ac_ext |
| 16579 | cat >>conftest.$ac_ext <<_ACEOF |
| 16580 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16581 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16583 | #define dlopen innocuous_dlopen |
| 16584 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16585 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16586 | which can conflict with char dlopen (); below. |
| 16587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16588 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16589 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16590 | #ifdef __STDC__ |
| 16591 | # include <limits.h> |
| 16592 | #else |
| 16593 | # include <assert.h> |
| 16594 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16595 | |
| 16596 | #undef dlopen |
| 16597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16598 | /* Override any GCC internal prototype to avoid an error. |
| 16599 | Use char because int might match the return type of a GCC |
| 16600 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16601 | #ifdef __cplusplus |
| 16602 | extern "C" |
| 16603 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16604 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16605 | /* The GNU C library defines this for functions which it implements |
| 16606 | to always fail with ENOSYS. Some functions are actually named |
| 16607 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16608 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16609 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16610 | #endif |
| 16611 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16612 | int |
| 16613 | main () |
| 16614 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16615 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16616 | ; |
| 16617 | return 0; |
| 16618 | } |
| 16619 | _ACEOF |
| 16620 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16621 | if { (ac_try="$ac_link" |
| 16622 | case "(($ac_try" in |
| 16623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16624 | *) ac_try_echo=$ac_try;; |
| 16625 | esac |
| 16626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16627 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16628 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16630 | rm -f conftest.er1 |
| 16631 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16633 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16635 | { (case "(($ac_try" in |
| 16636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16637 | *) ac_try_echo=$ac_try;; |
| 16638 | esac |
| 16639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16640 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16641 | ac_status=$? |
| 16642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16643 | (exit $ac_status); }; } && |
| 16644 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16645 | { (case "(($ac_try" in |
| 16646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16647 | *) ac_try_echo=$ac_try;; |
| 16648 | esac |
| 16649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16650 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16651 | ac_status=$? |
| 16652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16653 | (exit $ac_status); }; }; then |
| 16654 | ac_cv_func_dlopen=yes |
| 16655 | else |
| 16656 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16659 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16660 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16661 | |
| 16662 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16663 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16664 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16665 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16666 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16667 | if test $ac_cv_func_dlopen = yes; then |
| 16668 | lt_cv_dlopen="dlopen" |
| 16669 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16670 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16671 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16672 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16674 | else |
| 16675 | ac_check_lib_save_LIBS=$LIBS |
| 16676 | LIBS="-ldl $LIBS" |
| 16677 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16678 | /* confdefs.h. */ |
| 16679 | _ACEOF |
| 16680 | cat confdefs.h >>conftest.$ac_ext |
| 16681 | cat >>conftest.$ac_ext <<_ACEOF |
| 16682 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16683 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16684 | /* Override any GCC internal prototype to avoid an error. |
| 16685 | Use char because int might match the return type of a GCC |
| 16686 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16687 | #ifdef __cplusplus |
| 16688 | extern "C" |
| 16689 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16690 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16691 | int |
| 16692 | main () |
| 16693 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16694 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16695 | ; |
| 16696 | return 0; |
| 16697 | } |
| 16698 | _ACEOF |
| 16699 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16700 | if { (ac_try="$ac_link" |
| 16701 | case "(($ac_try" in |
| 16702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16703 | *) ac_try_echo=$ac_try;; |
| 16704 | esac |
| 16705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16706 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16707 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16709 | rm -f conftest.er1 |
| 16710 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16712 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16714 | { (case "(($ac_try" in |
| 16715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16716 | *) ac_try_echo=$ac_try;; |
| 16717 | esac |
| 16718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16719 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16720 | ac_status=$? |
| 16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16722 | (exit $ac_status); }; } && |
| 16723 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16724 | { (case "(($ac_try" in |
| 16725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16726 | *) ac_try_echo=$ac_try;; |
| 16727 | esac |
| 16728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16729 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16730 | ac_status=$? |
| 16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16732 | (exit $ac_status); }; }; then |
| 16733 | ac_cv_lib_dl_dlopen=yes |
| 16734 | else |
| 16735 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16738 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16739 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16740 | |
| 16741 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16742 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16743 | LIBS=$ac_check_lib_save_LIBS |
| 16744 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16745 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16746 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16747 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16748 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16749 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16750 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 16751 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16752 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 16753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16754 | else |
| 16755 | ac_check_lib_save_LIBS=$LIBS |
| 16756 | LIBS="-lsvld $LIBS" |
| 16757 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16758 | /* confdefs.h. */ |
| 16759 | _ACEOF |
| 16760 | cat confdefs.h >>conftest.$ac_ext |
| 16761 | cat >>conftest.$ac_ext <<_ACEOF |
| 16762 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16763 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16764 | /* Override any GCC internal prototype to avoid an error. |
| 16765 | Use char because int might match the return type of a GCC |
| 16766 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16767 | #ifdef __cplusplus |
| 16768 | extern "C" |
| 16769 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16770 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16771 | int |
| 16772 | main () |
| 16773 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16774 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16775 | ; |
| 16776 | return 0; |
| 16777 | } |
| 16778 | _ACEOF |
| 16779 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16780 | if { (ac_try="$ac_link" |
| 16781 | case "(($ac_try" in |
| 16782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16783 | *) ac_try_echo=$ac_try;; |
| 16784 | esac |
| 16785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16786 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16787 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16789 | rm -f conftest.er1 |
| 16790 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16792 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16794 | { (case "(($ac_try" in |
| 16795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16796 | *) ac_try_echo=$ac_try;; |
| 16797 | esac |
| 16798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16799 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16800 | ac_status=$? |
| 16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16802 | (exit $ac_status); }; } && |
| 16803 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16804 | { (case "(($ac_try" in |
| 16805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16806 | *) ac_try_echo=$ac_try;; |
| 16807 | esac |
| 16808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16809 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16810 | ac_status=$? |
| 16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16812 | (exit $ac_status); }; }; then |
| 16813 | ac_cv_lib_svld_dlopen=yes |
| 16814 | else |
| 16815 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16818 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16820 | |
| 16821 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16822 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16823 | LIBS=$ac_check_lib_save_LIBS |
| 16824 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16825 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16826 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16827 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 16828 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16829 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16830 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 16831 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16832 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 16833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16834 | else |
| 16835 | ac_check_lib_save_LIBS=$LIBS |
| 16836 | LIBS="-ldld $LIBS" |
| 16837 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16838 | /* confdefs.h. */ |
| 16839 | _ACEOF |
| 16840 | cat confdefs.h >>conftest.$ac_ext |
| 16841 | cat >>conftest.$ac_ext <<_ACEOF |
| 16842 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16844 | /* Override any GCC internal prototype to avoid an error. |
| 16845 | Use char because int might match the return type of a GCC |
| 16846 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16847 | #ifdef __cplusplus |
| 16848 | extern "C" |
| 16849 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16850 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16851 | int |
| 16852 | main () |
| 16853 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16854 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16855 | ; |
| 16856 | return 0; |
| 16857 | } |
| 16858 | _ACEOF |
| 16859 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16860 | if { (ac_try="$ac_link" |
| 16861 | case "(($ac_try" in |
| 16862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16863 | *) ac_try_echo=$ac_try;; |
| 16864 | esac |
| 16865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16866 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16867 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16869 | rm -f conftest.er1 |
| 16870 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16872 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16874 | { (case "(($ac_try" in |
| 16875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16876 | *) ac_try_echo=$ac_try;; |
| 16877 | esac |
| 16878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16879 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16880 | ac_status=$? |
| 16881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16882 | (exit $ac_status); }; } && |
| 16883 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16884 | { (case "(($ac_try" in |
| 16885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16886 | *) ac_try_echo=$ac_try;; |
| 16887 | esac |
| 16888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16889 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16890 | ac_status=$? |
| 16891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16892 | (exit $ac_status); }; }; then |
| 16893 | ac_cv_lib_dld_dld_link=yes |
| 16894 | else |
| 16895 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16898 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16899 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16900 | |
| 16901 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16902 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16903 | LIBS=$ac_check_lib_save_LIBS |
| 16904 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16905 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16906 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16907 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 16908 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 16909 | fi |
| 16910 | |
| 16911 | |
| 16912 | fi |
| 16913 | |
| 16914 | |
| 16915 | fi |
| 16916 | |
| 16917 | |
| 16918 | fi |
| 16919 | |
| 16920 | |
| 16921 | fi |
| 16922 | |
| 16923 | |
| 16924 | fi |
| 16925 | |
| 16926 | ;; |
| 16927 | esac |
| 16928 | |
| 16929 | if test "x$lt_cv_dlopen" != xno; then |
| 16930 | enable_dlopen=yes |
| 16931 | else |
| 16932 | enable_dlopen=no |
| 16933 | fi |
| 16934 | |
| 16935 | case $lt_cv_dlopen in |
| 16936 | dlopen) |
| 16937 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16938 | 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] | 16939 | |
| 16940 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16941 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16942 | |
| 16943 | save_LIBS="$LIBS" |
| 16944 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 16945 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16946 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 16947 | 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] | 16948 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 16949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16950 | else |
| 16951 | if test "$cross_compiling" = yes; then : |
| 16952 | lt_cv_dlopen_self=cross |
| 16953 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16954 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16955 | lt_status=$lt_dlunknown |
| 16956 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 16957 | #line 16957 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16958 | #include "confdefs.h" |
| 16959 | |
| 16960 | #if HAVE_DLFCN_H |
| 16961 | #include <dlfcn.h> |
| 16962 | #endif |
| 16963 | |
| 16964 | #include <stdio.h> |
| 16965 | |
| 16966 | #ifdef RTLD_GLOBAL |
| 16967 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16968 | #else |
| 16969 | # ifdef DL_GLOBAL |
| 16970 | # define LT_DLGLOBAL DL_GLOBAL |
| 16971 | # else |
| 16972 | # define LT_DLGLOBAL 0 |
| 16973 | # endif |
| 16974 | #endif |
| 16975 | |
| 16976 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16977 | find out it does not work in some platform. */ |
| 16978 | #ifndef LT_DLLAZY_OR_NOW |
| 16979 | # ifdef RTLD_LAZY |
| 16980 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16981 | # else |
| 16982 | # ifdef DL_LAZY |
| 16983 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16984 | # else |
| 16985 | # ifdef RTLD_NOW |
| 16986 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16987 | # else |
| 16988 | # ifdef DL_NOW |
| 16989 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16990 | # else |
| 16991 | # define LT_DLLAZY_OR_NOW 0 |
| 16992 | # endif |
| 16993 | # endif |
| 16994 | # endif |
| 16995 | # endif |
| 16996 | #endif |
| 16997 | |
| 16998 | #ifdef __cplusplus |
| 16999 | extern "C" void exit (int); |
| 17000 | #endif |
| 17001 | |
| 17002 | void fnord() { int i=42;} |
| 17003 | int main () |
| 17004 | { |
| 17005 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17006 | int status = $lt_dlunknown; |
| 17007 | |
| 17008 | if (self) |
| 17009 | { |
| 17010 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17011 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17012 | /* dlclose (self); */ |
| 17013 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17014 | else |
| 17015 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17016 | |
| 17017 | exit (status); |
| 17018 | } |
| 17019 | EOF |
| 17020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17021 | (eval $ac_link) 2>&5 |
| 17022 | ac_status=$? |
| 17023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17024 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17025 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17026 | lt_status=$? |
| 17027 | case x$lt_status in |
| 17028 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17029 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17030 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17031 | esac |
| 17032 | else : |
| 17033 | # compilation failed |
| 17034 | lt_cv_dlopen_self=no |
| 17035 | fi |
| 17036 | fi |
| 17037 | rm -fr conftest* |
| 17038 | |
| 17039 | |
| 17040 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17041 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17042 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17043 | |
| 17044 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17045 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17046 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17047 | 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] | 17048 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17050 | else |
| 17051 | if test "$cross_compiling" = yes; then : |
| 17052 | lt_cv_dlopen_self_static=cross |
| 17053 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17054 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17055 | lt_status=$lt_dlunknown |
| 17056 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 17057 | #line 17057 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17058 | #include "confdefs.h" |
| 17059 | |
| 17060 | #if HAVE_DLFCN_H |
| 17061 | #include <dlfcn.h> |
| 17062 | #endif |
| 17063 | |
| 17064 | #include <stdio.h> |
| 17065 | |
| 17066 | #ifdef RTLD_GLOBAL |
| 17067 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17068 | #else |
| 17069 | # ifdef DL_GLOBAL |
| 17070 | # define LT_DLGLOBAL DL_GLOBAL |
| 17071 | # else |
| 17072 | # define LT_DLGLOBAL 0 |
| 17073 | # endif |
| 17074 | #endif |
| 17075 | |
| 17076 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17077 | find out it does not work in some platform. */ |
| 17078 | #ifndef LT_DLLAZY_OR_NOW |
| 17079 | # ifdef RTLD_LAZY |
| 17080 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17081 | # else |
| 17082 | # ifdef DL_LAZY |
| 17083 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17084 | # else |
| 17085 | # ifdef RTLD_NOW |
| 17086 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17087 | # else |
| 17088 | # ifdef DL_NOW |
| 17089 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17090 | # else |
| 17091 | # define LT_DLLAZY_OR_NOW 0 |
| 17092 | # endif |
| 17093 | # endif |
| 17094 | # endif |
| 17095 | # endif |
| 17096 | #endif |
| 17097 | |
| 17098 | #ifdef __cplusplus |
| 17099 | extern "C" void exit (int); |
| 17100 | #endif |
| 17101 | |
| 17102 | void fnord() { int i=42;} |
| 17103 | int main () |
| 17104 | { |
| 17105 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17106 | int status = $lt_dlunknown; |
| 17107 | |
| 17108 | if (self) |
| 17109 | { |
| 17110 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17111 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17112 | /* dlclose (self); */ |
| 17113 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17114 | else |
| 17115 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17116 | |
| 17117 | exit (status); |
| 17118 | } |
| 17119 | EOF |
| 17120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17121 | (eval $ac_link) 2>&5 |
| 17122 | ac_status=$? |
| 17123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17124 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17125 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17126 | lt_status=$? |
| 17127 | case x$lt_status in |
| 17128 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17129 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17130 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17131 | esac |
| 17132 | else : |
| 17133 | # compilation failed |
| 17134 | lt_cv_dlopen_self_static=no |
| 17135 | fi |
| 17136 | fi |
| 17137 | rm -fr conftest* |
| 17138 | |
| 17139 | |
| 17140 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17141 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17142 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17143 | fi |
| 17144 | |
| 17145 | CPPFLAGS="$save_CPPFLAGS" |
| 17146 | LDFLAGS="$save_LDFLAGS" |
| 17147 | LIBS="$save_LIBS" |
| 17148 | ;; |
| 17149 | esac |
| 17150 | |
| 17151 | case $lt_cv_dlopen_self in |
| 17152 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17153 | *) enable_dlopen_self=unknown ;; |
| 17154 | esac |
| 17155 | |
| 17156 | case $lt_cv_dlopen_self_static in |
| 17157 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17158 | *) enable_dlopen_self_static=unknown ;; |
| 17159 | esac |
| 17160 | fi |
| 17161 | |
| 17162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17163 | # Report which library types will actually be built |
| 17164 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17165 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17166 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17167 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17168 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17169 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17170 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17171 | test "$can_build_shared" = "no" && enable_shared=no |
| 17172 | |
| 17173 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17174 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17175 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17176 | aix3*) |
| 17177 | test "$enable_shared" = yes && enable_static=no |
| 17178 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17179 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17180 | postinstall_cmds='$RANLIB $lib' |
| 17181 | fi |
| 17182 | ;; |
| 17183 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17184 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17185 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17186 | test "$enable_shared" = yes && enable_static=no |
| 17187 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17188 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17189 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17190 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17191 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17193 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17194 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17195 | # Make sure either enable_shared or enable_static is yes. |
| 17196 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17197 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17198 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17199 | |
| 17200 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17201 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17202 | # with your package, and you will get complaints that there are |
| 17203 | # no rules to generate ltmain.sh. |
| 17204 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17205 | # See if we are running on zsh, and set the options which allow our commands through |
| 17206 | # without removal of \ escapes. |
| 17207 | if test -n "${ZSH_VERSION+set}" ; then |
| 17208 | setopt NO_GLOB_SUBST |
| 17209 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17210 | # Now quote all the things that may contain metacharacters while being |
| 17211 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17212 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17213 | 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] | 17214 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17215 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17216 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17217 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17218 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17219 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17220 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17221 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17222 | compiler \ |
| 17223 | CC \ |
| 17224 | LD \ |
| 17225 | lt_prog_compiler_wl \ |
| 17226 | lt_prog_compiler_pic \ |
| 17227 | lt_prog_compiler_static \ |
| 17228 | lt_prog_compiler_no_builtin_flag \ |
| 17229 | export_dynamic_flag_spec \ |
| 17230 | thread_safe_flag_spec \ |
| 17231 | whole_archive_flag_spec \ |
| 17232 | enable_shared_with_static_runtimes \ |
| 17233 | old_archive_cmds \ |
| 17234 | old_archive_from_new_cmds \ |
| 17235 | predep_objects \ |
| 17236 | postdep_objects \ |
| 17237 | predeps \ |
| 17238 | postdeps \ |
| 17239 | compiler_lib_search_path \ |
| 17240 | archive_cmds \ |
| 17241 | archive_expsym_cmds \ |
| 17242 | postinstall_cmds \ |
| 17243 | postuninstall_cmds \ |
| 17244 | old_archive_from_expsyms_cmds \ |
| 17245 | allow_undefined_flag \ |
| 17246 | no_undefined_flag \ |
| 17247 | export_symbols_cmds \ |
| 17248 | hardcode_libdir_flag_spec \ |
| 17249 | hardcode_libdir_flag_spec_ld \ |
| 17250 | hardcode_libdir_separator \ |
| 17251 | hardcode_automatic \ |
| 17252 | module_cmds \ |
| 17253 | module_expsym_cmds \ |
| 17254 | lt_cv_prog_compiler_c_o \ |
| 17255 | exclude_expsyms \ |
| 17256 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17257 | |
| 17258 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17259 | old_archive_cmds | \ |
| 17260 | old_archive_from_new_cmds | \ |
| 17261 | archive_cmds | \ |
| 17262 | archive_expsym_cmds | \ |
| 17263 | module_cmds | \ |
| 17264 | module_expsym_cmds | \ |
| 17265 | old_archive_from_expsyms_cmds | \ |
| 17266 | export_symbols_cmds | \ |
| 17267 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17268 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17269 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17270 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17271 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17272 | 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] | 17273 | ;; |
| 17274 | *) |
| 17275 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17276 | ;; |
| 17277 | esac |
| 17278 | done |
| 17279 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17280 | case $lt_echo in |
| 17281 | *'\$0 --fallback-echo"') |
| 17282 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17283 | ;; |
| 17284 | esac |
| 17285 | |
| 17286 | cfgfile="${ofile}T" |
| 17287 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17288 | $rm -f "$cfgfile" |
| 17289 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17290 | echo "$as_me: creating $ofile" >&6;} |
| 17291 | |
| 17292 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17293 | #! $SHELL |
| 17294 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17295 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17296 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17297 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17298 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17299 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17300 | # Free Software Foundation, Inc. |
| 17301 | # |
| 17302 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17303 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17304 | # |
| 17305 | # This program is free software; you can redistribute it and/or modify |
| 17306 | # it under the terms of the GNU General Public License as published by |
| 17307 | # the Free Software Foundation; either version 2 of the License, or |
| 17308 | # (at your option) any later version. |
| 17309 | # |
| 17310 | # This program is distributed in the hope that it will be useful, but |
| 17311 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17312 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17313 | # General Public License for more details. |
| 17314 | # |
| 17315 | # You should have received a copy of the GNU General Public License |
| 17316 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17317 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17318 | # |
| 17319 | # As a special exception to the GNU General Public License, if you |
| 17320 | # distribute this file as part of a program that contains a |
| 17321 | # configuration script generated by Autoconf, you may include it under |
| 17322 | # the same distribution terms that you use for the rest of that program. |
| 17323 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17324 | # A sed program that does not truncate output. |
| 17325 | SED=$lt_SED |
| 17326 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17327 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17328 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17329 | |
| 17330 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17331 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17332 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17333 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17334 | # The names of the tagged configurations supported by this script. |
| 17335 | available_tags= |
| 17336 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17337 | # ### BEGIN LIBTOOL CONFIG |
| 17338 | |
| 17339 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17340 | |
| 17341 | # Shell to use when invoking shell scripts. |
| 17342 | SHELL=$lt_SHELL |
| 17343 | |
| 17344 | # Whether or not to build shared libraries. |
| 17345 | build_libtool_libs=$enable_shared |
| 17346 | |
| 17347 | # Whether or not to build static libraries. |
| 17348 | build_old_libs=$enable_static |
| 17349 | |
| 17350 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17351 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17352 | |
| 17353 | # Whether or not to disallow shared libs when runtime libs are static |
| 17354 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17355 | |
| 17356 | # Whether or not to optimize for fast installation. |
| 17357 | fast_install=$enable_fast_install |
| 17358 | |
| 17359 | # The host system. |
| 17360 | host_alias=$host_alias |
| 17361 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17362 | host_os=$host_os |
| 17363 | |
| 17364 | # The build system. |
| 17365 | build_alias=$build_alias |
| 17366 | build=$build |
| 17367 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17368 | |
| 17369 | # An echo program that does not interpret backslashes. |
| 17370 | echo=$lt_echo |
| 17371 | |
| 17372 | # The archiver. |
| 17373 | AR=$lt_AR |
| 17374 | AR_FLAGS=$lt_AR_FLAGS |
| 17375 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17376 | # A C compiler. |
| 17377 | LTCC=$lt_LTCC |
| 17378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17379 | # LTCC compiler flags. |
| 17380 | LTCFLAGS=$lt_LTCFLAGS |
| 17381 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17382 | # A language-specific compiler. |
| 17383 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17384 | |
| 17385 | # Is the compiler the GNU C compiler? |
| 17386 | with_gcc=$GCC |
| 17387 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17388 | # An ERE matcher. |
| 17389 | EGREP=$lt_EGREP |
| 17390 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17391 | # The linker used to build libraries. |
| 17392 | LD=$lt_LD |
| 17393 | |
| 17394 | # Whether we need hard or soft links. |
| 17395 | LN_S=$lt_LN_S |
| 17396 | |
| 17397 | # A BSD-compatible nm program. |
| 17398 | NM=$lt_NM |
| 17399 | |
| 17400 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17401 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17402 | |
| 17403 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17404 | MAGIC_CMD=$MAGIC_CMD |
| 17405 | |
| 17406 | # Used on cygwin: DLL creation program. |
| 17407 | DLLTOOL="$DLLTOOL" |
| 17408 | |
| 17409 | # Used on cygwin: object dumper. |
| 17410 | OBJDUMP="$OBJDUMP" |
| 17411 | |
| 17412 | # Used on cygwin: assembler. |
| 17413 | AS="$AS" |
| 17414 | |
| 17415 | # The name of the directory that contains temporary libtool files. |
| 17416 | objdir=$objdir |
| 17417 | |
| 17418 | # How to create reloadable object files. |
| 17419 | reload_flag=$lt_reload_flag |
| 17420 | reload_cmds=$lt_reload_cmds |
| 17421 | |
| 17422 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17423 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17424 | |
| 17425 | # Object file suffix (normally "o"). |
| 17426 | objext="$ac_objext" |
| 17427 | |
| 17428 | # Old archive suffix (normally "a"). |
| 17429 | libext="$libext" |
| 17430 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17431 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17432 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17433 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17434 | # Executable file suffix (normally ""). |
| 17435 | exeext="$exeext" |
| 17436 | |
| 17437 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17438 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17439 | pic_mode=$pic_mode |
| 17440 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17441 | # What is the maximum length of a command? |
| 17442 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17443 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17444 | # Does compiler simultaneously support -c and -o options? |
| 17445 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17446 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17447 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17448 | need_locks=$lt_need_locks |
| 17449 | |
| 17450 | # Do we need the lib prefix for modules? |
| 17451 | need_lib_prefix=$need_lib_prefix |
| 17452 | |
| 17453 | # Do we need a version for libraries? |
| 17454 | need_version=$need_version |
| 17455 | |
| 17456 | # Whether dlopen is supported. |
| 17457 | dlopen_support=$enable_dlopen |
| 17458 | |
| 17459 | # Whether dlopen of programs is supported. |
| 17460 | dlopen_self=$enable_dlopen_self |
| 17461 | |
| 17462 | # Whether dlopen of statically linked programs is supported. |
| 17463 | dlopen_self_static=$enable_dlopen_self_static |
| 17464 | |
| 17465 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17466 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17467 | |
| 17468 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17469 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17470 | |
| 17471 | # Compiler flag to allow reflexive dlopens. |
| 17472 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17473 | |
| 17474 | # Compiler flag to generate shared objects directly from archives. |
| 17475 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17476 | |
| 17477 | # Compiler flag to generate thread-safe objects. |
| 17478 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 17479 | |
| 17480 | # Library versioning type. |
| 17481 | version_type=$version_type |
| 17482 | |
| 17483 | # Format of library name prefix. |
| 17484 | libname_spec=$lt_libname_spec |
| 17485 | |
| 17486 | # List of archive names. First name is the real one, the rest are links. |
| 17487 | # The last name is the one that the linker finds with -lNAME. |
| 17488 | library_names_spec=$lt_library_names_spec |
| 17489 | |
| 17490 | # The coded name of the library, if different from the real name. |
| 17491 | soname_spec=$lt_soname_spec |
| 17492 | |
| 17493 | # Commands used to build and install an old-style archive. |
| 17494 | RANLIB=$lt_RANLIB |
| 17495 | old_archive_cmds=$lt_old_archive_cmds |
| 17496 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17497 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17498 | |
| 17499 | # Create an old-style archive from a shared archive. |
| 17500 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17501 | |
| 17502 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17503 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17504 | |
| 17505 | # Commands used to build and install a shared archive. |
| 17506 | archive_cmds=$lt_archive_cmds |
| 17507 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17508 | postinstall_cmds=$lt_postinstall_cmds |
| 17509 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17510 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17511 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17512 | module_cmds=$lt_module_cmds |
| 17513 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17514 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17515 | # Commands to strip libraries. |
| 17516 | old_striplib=$lt_old_striplib |
| 17517 | striplib=$lt_striplib |
| 17518 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17519 | # Dependencies to place before the objects being linked to create a |
| 17520 | # shared library. |
| 17521 | predep_objects=$lt_predep_objects |
| 17522 | |
| 17523 | # Dependencies to place after the objects being linked to create a |
| 17524 | # shared library. |
| 17525 | postdep_objects=$lt_postdep_objects |
| 17526 | |
| 17527 | # Dependencies to place before the objects being linked to create a |
| 17528 | # shared library. |
| 17529 | predeps=$lt_predeps |
| 17530 | |
| 17531 | # Dependencies to place after the objects being linked to create a |
| 17532 | # shared library. |
| 17533 | postdeps=$lt_postdeps |
| 17534 | |
| 17535 | # The library search path used internally by the compiler when linking |
| 17536 | # a shared library. |
| 17537 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17538 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17539 | # Method to check whether dependent libraries are shared objects. |
| 17540 | deplibs_check_method=$lt_deplibs_check_method |
| 17541 | |
| 17542 | # Command to use when deplibs_check_method == file_magic. |
| 17543 | file_magic_cmd=$lt_file_magic_cmd |
| 17544 | |
| 17545 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17546 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17547 | |
| 17548 | # Flag that forces no undefined symbols. |
| 17549 | no_undefined_flag=$lt_no_undefined_flag |
| 17550 | |
| 17551 | # Commands used to finish a libtool library installation in a directory. |
| 17552 | finish_cmds=$lt_finish_cmds |
| 17553 | |
| 17554 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17555 | finish_eval=$lt_finish_eval |
| 17556 | |
| 17557 | # 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] | 17558 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17559 | |
| 17560 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17561 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17562 | |
| 17563 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17564 | 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] | 17565 | |
| 17566 | # This is the shared library runtime path variable. |
| 17567 | runpath_var=$runpath_var |
| 17568 | |
| 17569 | # This is the shared library path variable. |
| 17570 | shlibpath_var=$shlibpath_var |
| 17571 | |
| 17572 | # Is shlibpath searched before the hard-coded library search path? |
| 17573 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17574 | |
| 17575 | # How to hardcode a shared library path into an executable. |
| 17576 | hardcode_action=$hardcode_action |
| 17577 | |
| 17578 | # Whether we should hardcode library paths into libraries. |
| 17579 | hardcode_into_libs=$hardcode_into_libs |
| 17580 | |
| 17581 | # Flag to hardcode \$libdir into a binary during linking. |
| 17582 | # This must work even if \$libdir does not exist. |
| 17583 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17584 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17585 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17586 | # a binary during linking. This must work even if \$libdir does |
| 17587 | # not exist. |
| 17588 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17589 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17590 | # Whether we need a single -rpath flag with a separated argument. |
| 17591 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17592 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17593 | # 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] | 17594 | # resulting binary. |
| 17595 | hardcode_direct=$hardcode_direct |
| 17596 | |
| 17597 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17598 | # resulting binary. |
| 17599 | hardcode_minus_L=$hardcode_minus_L |
| 17600 | |
| 17601 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17602 | # the resulting binary. |
| 17603 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17604 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17605 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17606 | # and all subsequent libraries and executables linked against it. |
| 17607 | hardcode_automatic=$hardcode_automatic |
| 17608 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17609 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17610 | # restored at relink time. |
| 17611 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17612 | |
| 17613 | # Whether libtool must link a program against all its dependency libraries. |
| 17614 | link_all_deplibs=$link_all_deplibs |
| 17615 | |
| 17616 | # Compile-time system search path for libraries |
| 17617 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17618 | |
| 17619 | # Run-time system search path for libraries |
| 17620 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17621 | |
| 17622 | # Fix the shell variable \$srcfile for the compiler. |
| 17623 | fix_srcfile_path="$fix_srcfile_path" |
| 17624 | |
| 17625 | # Set to yes if exported symbols are required. |
| 17626 | always_export_symbols=$always_export_symbols |
| 17627 | |
| 17628 | # The commands to list exported symbols. |
| 17629 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17630 | |
| 17631 | # The commands to extract the exported symbol list from a shared archive. |
| 17632 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17633 | |
| 17634 | # Symbols that should not be listed in the preloaded symbols. |
| 17635 | exclude_expsyms=$lt_exclude_expsyms |
| 17636 | |
| 17637 | # Symbols that must always be exported. |
| 17638 | include_expsyms=$lt_include_expsyms |
| 17639 | |
| 17640 | # ### END LIBTOOL CONFIG |
| 17641 | |
| 17642 | __EOF__ |
| 17643 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17644 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17645 | case $host_os in |
| 17646 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17647 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17648 | |
| 17649 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17650 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17651 | # vanish in a puff of smoke. |
| 17652 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17653 | COLLECT_NAMES= |
| 17654 | export COLLECT_NAMES |
| 17655 | fi |
| 17656 | EOF |
| 17657 | ;; |
| 17658 | esac |
| 17659 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17660 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17661 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17662 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17663 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17664 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17665 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17666 | mv -f "$cfgfile" "$ofile" || \ |
| 17667 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17668 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17669 | |
| 17670 | else |
| 17671 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17672 | # `config.status --recheck' to rerun these tests and create the |
| 17673 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17674 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17675 | if test -f "$ltmain_in"; then |
| 17676 | test -f Makefile && make "$ltmain" |
| 17677 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17678 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17679 | |
| 17680 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17681 | ac_ext=c |
| 17682 | ac_cpp='$CPP $CPPFLAGS' |
| 17683 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17684 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17685 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17686 | |
| 17687 | CC="$lt_save_CC" |
| 17688 | |
| 17689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17690 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17691 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17692 | withval=$with_tags; tagnames="$withval" |
| 17693 | fi |
| 17694 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17695 | |
| 17696 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 17697 | if test ! -f "${ofile}"; then |
| 17698 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 17699 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 17700 | fi |
| 17701 | |
| 17702 | if test -z "$LTCC"; then |
| 17703 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 17704 | if test -z "$LTCC"; then |
| 17705 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 17706 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 17707 | else |
| 17708 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 17709 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 17710 | fi |
| 17711 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17712 | if test -z "$LTCFLAGS"; then |
| 17713 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 17714 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17715 | |
| 17716 | # Extract list of available tagged configurations in $ofile. |
| 17717 | # Note that this assumes the entire list is on one line. |
| 17718 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 17719 | |
| 17720 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 17721 | for tagname in $tagnames; do |
| 17722 | IFS="$lt_save_ifs" |
| 17723 | # Check whether tagname contains only valid characters |
| 17724 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 17725 | "") ;; |
| 17726 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 17727 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 17728 | { (exit 1); exit 1; }; } |
| 17729 | ;; |
| 17730 | esac |
| 17731 | |
| 17732 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 17733 | then |
| 17734 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 17735 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 17736 | { (exit 1); exit 1; }; } |
| 17737 | fi |
| 17738 | |
| 17739 | # Update the list of available tags. |
| 17740 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17741 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17742 | |
| 17743 | case $tagname in |
| 17744 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17745 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 17746 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 17747 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17748 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17749 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17750 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17751 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17752 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17753 | |
| 17754 | |
| 17755 | |
| 17756 | |
| 17757 | archive_cmds_need_lc_CXX=no |
| 17758 | allow_undefined_flag_CXX= |
| 17759 | always_export_symbols_CXX=no |
| 17760 | archive_expsym_cmds_CXX= |
| 17761 | export_dynamic_flag_spec_CXX= |
| 17762 | hardcode_direct_CXX=no |
| 17763 | hardcode_libdir_flag_spec_CXX= |
| 17764 | hardcode_libdir_flag_spec_ld_CXX= |
| 17765 | hardcode_libdir_separator_CXX= |
| 17766 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17767 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17768 | hardcode_automatic_CXX=no |
| 17769 | module_cmds_CXX= |
| 17770 | module_expsym_cmds_CXX= |
| 17771 | link_all_deplibs_CXX=unknown |
| 17772 | old_archive_cmds_CXX=$old_archive_cmds |
| 17773 | no_undefined_flag_CXX= |
| 17774 | whole_archive_flag_spec_CXX= |
| 17775 | enable_shared_with_static_runtimes_CXX=no |
| 17776 | |
| 17777 | # Dependencies to place before and after the object being linked: |
| 17778 | predep_objects_CXX= |
| 17779 | postdep_objects_CXX= |
| 17780 | predeps_CXX= |
| 17781 | postdeps_CXX= |
| 17782 | compiler_lib_search_path_CXX= |
| 17783 | |
| 17784 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17785 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17786 | |
| 17787 | # Object file extension for compiled C++ test sources. |
| 17788 | objext=o |
| 17789 | objext_CXX=$objext |
| 17790 | |
| 17791 | # Code to be used in simple compile tests |
| 17792 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 17793 | |
| 17794 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17795 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17796 | |
| 17797 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17798 | |
| 17799 | # If no C compiler was specified, use CC. |
| 17800 | LTCC=${LTCC-"$CC"} |
| 17801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17802 | # If no C compiler flags were specified, use CFLAGS. |
| 17803 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 17804 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17805 | # Allow CC to be a program name with arguments. |
| 17806 | compiler=$CC |
| 17807 | |
| 17808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17809 | # save warnings/boilerplate of simple test code |
| 17810 | ac_outfile=conftest.$ac_objext |
| 17811 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 17812 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17813 | _lt_compiler_boilerplate=`cat conftest.err` |
| 17814 | $rm conftest* |
| 17815 | |
| 17816 | ac_outfile=conftest.$ac_objext |
| 17817 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 17818 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17819 | _lt_linker_boilerplate=`cat conftest.err` |
| 17820 | $rm conftest* |
| 17821 | |
| 17822 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17823 | # Allow CC to be a program name with arguments. |
| 17824 | lt_save_CC=$CC |
| 17825 | lt_save_LD=$LD |
| 17826 | lt_save_GCC=$GCC |
| 17827 | GCC=$GXX |
| 17828 | lt_save_with_gnu_ld=$with_gnu_ld |
| 17829 | lt_save_path_LD=$lt_cv_path_LD |
| 17830 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 17831 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 17832 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17833 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17834 | fi |
| 17835 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 17836 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 17837 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17838 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17839 | fi |
| 17840 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 17841 | CC=${CXX-"c++"} |
| 17842 | compiler=$CC |
| 17843 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17844 | for cc_temp in $compiler""; do |
| 17845 | case $cc_temp in |
| 17846 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17847 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17848 | \-*) ;; |
| 17849 | *) break;; |
| 17850 | esac |
| 17851 | done |
| 17852 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17853 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17854 | |
| 17855 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 17856 | # no_builtin_flag separately |
| 17857 | if test "$GXX" = yes; then |
| 17858 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 17859 | else |
| 17860 | lt_prog_compiler_no_builtin_flag_CXX= |
| 17861 | fi |
| 17862 | |
| 17863 | if test "$GXX" = yes; then |
| 17864 | # Set up default GNU C++ configuration |
| 17865 | |
| 17866 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17867 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17868 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17869 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17870 | else |
| 17871 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17872 | fi |
| 17873 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17874 | ac_prog=ld |
| 17875 | if test "$GCC" = yes; then |
| 17876 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17877 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 17878 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17879 | case $host in |
| 17880 | *-*-mingw*) |
| 17881 | # gcc leaves a trailing carriage return which upsets mingw |
| 17882 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 17883 | *) |
| 17884 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 17885 | esac |
| 17886 | case $ac_prog in |
| 17887 | # Accept absolute paths. |
| 17888 | [\\/]* | ?:[\\/]*) |
| 17889 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17890 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17891 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 17892 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 17893 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 17894 | done |
| 17895 | test -z "$LD" && LD="$ac_prog" |
| 17896 | ;; |
| 17897 | "") |
| 17898 | # If it fails, then pretend we aren't using GCC. |
| 17899 | ac_prog=ld |
| 17900 | ;; |
| 17901 | *) |
| 17902 | # If it is relative, then search for the first ld in PATH. |
| 17903 | with_gnu_ld=unknown |
| 17904 | ;; |
| 17905 | esac |
| 17906 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17907 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 17908 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17909 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17910 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 17911 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17912 | fi |
| 17913 | if test "${lt_cv_path_LD+set}" = set; then |
| 17914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17915 | else |
| 17916 | if test -z "$LD"; then |
| 17917 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 17918 | for ac_dir in $PATH; do |
| 17919 | IFS="$lt_save_ifs" |
| 17920 | test -z "$ac_dir" && ac_dir=. |
| 17921 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 17922 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 17923 | # 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] | 17924 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17925 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 17926 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 17927 | *GNU* | *'with BFD'*) |
| 17928 | test "$with_gnu_ld" != no && break |
| 17929 | ;; |
| 17930 | *) |
| 17931 | test "$with_gnu_ld" != yes && break |
| 17932 | ;; |
| 17933 | esac |
| 17934 | fi |
| 17935 | done |
| 17936 | IFS="$lt_save_ifs" |
| 17937 | else |
| 17938 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 17939 | fi |
| 17940 | fi |
| 17941 | |
| 17942 | LD="$lt_cv_path_LD" |
| 17943 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17944 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 17945 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17946 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17947 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17948 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17949 | fi |
| 17950 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 17951 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 17952 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17953 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 17954 | 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] | 17955 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 17956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17957 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17958 | # 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] | 17959 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17960 | *GNU* | *'with BFD'*) |
| 17961 | lt_cv_prog_gnu_ld=yes |
| 17962 | ;; |
| 17963 | *) |
| 17964 | lt_cv_prog_gnu_ld=no |
| 17965 | ;; |
| 17966 | esac |
| 17967 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17968 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 17969 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17970 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 17971 | |
| 17972 | |
| 17973 | |
| 17974 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 17975 | # archiving commands below assume that GNU ld is being used. |
| 17976 | if test "$with_gnu_ld" = yes; then |
| 17977 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17978 | 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' |
| 17979 | |
| 17980 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 17981 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17982 | |
| 17983 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17984 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 17985 | # investigate it a little bit more. (MM) |
| 17986 | wlarc='${wl}' |
| 17987 | |
| 17988 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17989 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 17990 | grep 'no-whole-archive' > /dev/null; then |
| 17991 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17992 | else |
| 17993 | whole_archive_flag_spec_CXX= |
| 17994 | fi |
| 17995 | else |
| 17996 | with_gnu_ld=no |
| 17997 | wlarc= |
| 17998 | |
| 17999 | # A generic and very simple default shared library creation |
| 18000 | # command for GNU C++ for the case where it uses the native |
| 18001 | # linker, instead of GNU ld. If possible, this setting should |
| 18002 | # overridden to take advantage of the native linker features on |
| 18003 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18004 | 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] | 18005 | fi |
| 18006 | |
| 18007 | # Commands to make compiler produce verbose output that lists |
| 18008 | # what "hidden" libraries, object files and flags are used when |
| 18009 | # linking a shared library. |
| 18010 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18011 | |
| 18012 | else |
| 18013 | GXX=no |
| 18014 | with_gnu_ld=no |
| 18015 | wlarc= |
| 18016 | fi |
| 18017 | |
| 18018 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18019 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18020 | 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] | 18021 | ld_shlibs_CXX=yes |
| 18022 | case $host_os in |
| 18023 | aix3*) |
| 18024 | # FIXME: insert proper C++ library support |
| 18025 | ld_shlibs_CXX=no |
| 18026 | ;; |
| 18027 | aix4* | aix5*) |
| 18028 | if test "$host_cpu" = ia64; then |
| 18029 | # On IA64, the linker does run time linking by default, so we don't |
| 18030 | # have to do anything special. |
| 18031 | aix_use_runtimelinking=no |
| 18032 | exp_sym_flag='-Bexport' |
| 18033 | no_entry_flag="" |
| 18034 | else |
| 18035 | aix_use_runtimelinking=no |
| 18036 | |
| 18037 | # Test if we are trying to use run time linking or normal |
| 18038 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18039 | # need to do runtime linking. |
| 18040 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18041 | for ld_flag in $LDFLAGS; do |
| 18042 | case $ld_flag in |
| 18043 | *-brtl*) |
| 18044 | aix_use_runtimelinking=yes |
| 18045 | break |
| 18046 | ;; |
| 18047 | esac |
| 18048 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18049 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18050 | esac |
| 18051 | |
| 18052 | exp_sym_flag='-bexport' |
| 18053 | no_entry_flag='-bnoentry' |
| 18054 | fi |
| 18055 | |
| 18056 | # When large executables or shared objects are built, AIX ld can |
| 18057 | # have problems creating the table of contents. If linking a library |
| 18058 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18059 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18060 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18061 | |
| 18062 | archive_cmds_CXX='' |
| 18063 | hardcode_direct_CXX=yes |
| 18064 | hardcode_libdir_separator_CXX=':' |
| 18065 | link_all_deplibs_CXX=yes |
| 18066 | |
| 18067 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18068 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18069 | # We only want to do this on AIX 4.2 and lower, the check |
| 18070 | # below for broken collect2 doesn't work under 4.3+ |
| 18071 | collect2name=`${CC} -print-prog-name=collect2` |
| 18072 | if test -f "$collect2name" && \ |
| 18073 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18074 | then |
| 18075 | # We have reworked collect2 |
| 18076 | hardcode_direct_CXX=yes |
| 18077 | else |
| 18078 | # We have old collect2 |
| 18079 | hardcode_direct_CXX=unsupported |
| 18080 | # It fails to find uninstalled libraries when the uninstalled |
| 18081 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18082 | # to unsupported forces relinking |
| 18083 | hardcode_minus_L_CXX=yes |
| 18084 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18085 | hardcode_libdir_separator_CXX= |
| 18086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18087 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18088 | esac |
| 18089 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18090 | if test "$aix_use_runtimelinking" = yes; then |
| 18091 | shared_flag="$shared_flag "'${wl}-G' |
| 18092 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18093 | else |
| 18094 | # not using gcc |
| 18095 | if test "$host_cpu" = ia64; then |
| 18096 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18097 | # chokes on -Wl,-G. The following line is correct: |
| 18098 | shared_flag='-G' |
| 18099 | else |
| 18100 | if test "$aix_use_runtimelinking" = yes; then |
| 18101 | shared_flag='${wl}-G' |
| 18102 | else |
| 18103 | shared_flag='${wl}-bM:SRE' |
| 18104 | fi |
| 18105 | fi |
| 18106 | fi |
| 18107 | |
| 18108 | # It seems that -bexpall does not export symbols beginning with |
| 18109 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18110 | always_export_symbols_CXX=yes |
| 18111 | if test "$aix_use_runtimelinking" = yes; then |
| 18112 | # Warning - without using the other runtime loading flags (-brtl), |
| 18113 | # -berok will link without error, but may produce a broken library. |
| 18114 | allow_undefined_flag_CXX='-berok' |
| 18115 | # Determine the default libpath from the value encoded in an empty executable. |
| 18116 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18117 | /* confdefs.h. */ |
| 18118 | _ACEOF |
| 18119 | cat confdefs.h >>conftest.$ac_ext |
| 18120 | cat >>conftest.$ac_ext <<_ACEOF |
| 18121 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18122 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18123 | int |
| 18124 | main () |
| 18125 | { |
| 18126 | |
| 18127 | ; |
| 18128 | return 0; |
| 18129 | } |
| 18130 | _ACEOF |
| 18131 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18132 | if { (ac_try="$ac_link" |
| 18133 | case "(($ac_try" in |
| 18134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18135 | *) ac_try_echo=$ac_try;; |
| 18136 | esac |
| 18137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18138 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18139 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18141 | rm -f conftest.er1 |
| 18142 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18144 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18145 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18146 | { (case "(($ac_try" in |
| 18147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18148 | *) ac_try_echo=$ac_try;; |
| 18149 | esac |
| 18150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18151 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18152 | ac_status=$? |
| 18153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18154 | (exit $ac_status); }; } && |
| 18155 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18156 | { (case "(($ac_try" in |
| 18157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18158 | *) ac_try_echo=$ac_try;; |
| 18159 | esac |
| 18160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18161 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18162 | ac_status=$? |
| 18163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18164 | (exit $ac_status); }; }; then |
| 18165 | |
| 18166 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18167 | }'` |
| 18168 | # Check for a 64-bit object if we didn't find anything. |
| 18169 | 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; } |
| 18170 | }'`; fi |
| 18171 | else |
| 18172 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18174 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18175 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18177 | |
| 18178 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18179 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18180 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18181 | |
| 18182 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18183 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18184 | 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] | 18185 | else |
| 18186 | if test "$host_cpu" = ia64; then |
| 18187 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18188 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18189 | 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] | 18190 | else |
| 18191 | # Determine the default libpath from the value encoded in an empty executable. |
| 18192 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18193 | /* confdefs.h. */ |
| 18194 | _ACEOF |
| 18195 | cat confdefs.h >>conftest.$ac_ext |
| 18196 | cat >>conftest.$ac_ext <<_ACEOF |
| 18197 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18198 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18199 | int |
| 18200 | main () |
| 18201 | { |
| 18202 | |
| 18203 | ; |
| 18204 | return 0; |
| 18205 | } |
| 18206 | _ACEOF |
| 18207 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18208 | if { (ac_try="$ac_link" |
| 18209 | case "(($ac_try" in |
| 18210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18211 | *) ac_try_echo=$ac_try;; |
| 18212 | esac |
| 18213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18214 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18215 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18217 | rm -f conftest.er1 |
| 18218 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18220 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18221 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18222 | { (case "(($ac_try" in |
| 18223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18224 | *) ac_try_echo=$ac_try;; |
| 18225 | esac |
| 18226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18227 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18228 | ac_status=$? |
| 18229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18230 | (exit $ac_status); }; } && |
| 18231 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18232 | { (case "(($ac_try" in |
| 18233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18234 | *) ac_try_echo=$ac_try;; |
| 18235 | esac |
| 18236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18237 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18238 | ac_status=$? |
| 18239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18240 | (exit $ac_status); }; }; then |
| 18241 | |
| 18242 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18243 | }'` |
| 18244 | # Check for a 64-bit object if we didn't find anything. |
| 18245 | 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; } |
| 18246 | }'`; fi |
| 18247 | else |
| 18248 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18251 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18252 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18253 | |
| 18254 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18255 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18256 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18257 | |
| 18258 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18259 | # Warning - without using the other run time loading flags, |
| 18260 | # -berok will link without error, but may produce a broken library. |
| 18261 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18262 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18263 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18264 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18265 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18266 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18267 | 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] | 18268 | fi |
| 18269 | fi |
| 18270 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18271 | |
| 18272 | beos*) |
| 18273 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18274 | allow_undefined_flag_CXX=unsupported |
| 18275 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18276 | # support --undefined. This deserves some investigation. FIXME |
| 18277 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18278 | else |
| 18279 | ld_shlibs_CXX=no |
| 18280 | fi |
| 18281 | ;; |
| 18282 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18283 | chorus*) |
| 18284 | case $cc_basename in |
| 18285 | *) |
| 18286 | # FIXME: insert proper C++ library support |
| 18287 | ld_shlibs_CXX=no |
| 18288 | ;; |
| 18289 | esac |
| 18290 | ;; |
| 18291 | |
| 18292 | cygwin* | mingw* | pw32*) |
| 18293 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18294 | # as there is no search path for DLLs. |
| 18295 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18296 | allow_undefined_flag_CXX=unsupported |
| 18297 | always_export_symbols_CXX=no |
| 18298 | enable_shared_with_static_runtimes_CXX=yes |
| 18299 | |
| 18300 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18301 | 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] | 18302 | # If the export-symbols file already is a .def file (1st line |
| 18303 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18304 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18305 | cp $export_symbols $output_objdir/$soname.def; |
| 18306 | else |
| 18307 | echo EXPORTS > $output_objdir/$soname.def; |
| 18308 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18309 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18310 | $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] | 18311 | else |
| 18312 | ld_shlibs_CXX=no |
| 18313 | fi |
| 18314 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18315 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18316 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18317 | rhapsody* | darwin1.[012]) |
| 18318 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18319 | ;; |
| 18320 | *) # Darwin 1.3 on |
| 18321 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18322 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18323 | else |
| 18324 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18325 | 10.[012]) |
| 18326 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18327 | ;; |
| 18328 | 10.*) |
| 18329 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18330 | ;; |
| 18331 | esac |
| 18332 | fi |
| 18333 | ;; |
| 18334 | esac |
| 18335 | archive_cmds_need_lc_CXX=no |
| 18336 | hardcode_direct_CXX=no |
| 18337 | hardcode_automatic_CXX=yes |
| 18338 | hardcode_shlibpath_var_CXX=unsupported |
| 18339 | whole_archive_flag_spec_CXX='' |
| 18340 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18341 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18342 | if test "$GXX" = yes ; then |
| 18343 | lt_int_apple_cc_single_mod=no |
| 18344 | output_verbose_link_cmd='echo' |
| 18345 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18346 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18347 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18348 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18349 | 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] | 18350 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18351 | 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] | 18352 | fi |
| 18353 | 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] | 18354 | # 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] | 18355 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18356 | 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] | 18357 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18358 | 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] | 18359 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18360 | 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] | 18361 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18362 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18363 | xlc*) |
| 18364 | output_verbose_link_cmd='echo' |
| 18365 | 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' |
| 18366 | 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] | 18367 | # 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] | 18368 | 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}' |
| 18369 | 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] | 18370 | ;; |
| 18371 | *) |
| 18372 | ld_shlibs_CXX=no |
| 18373 | ;; |
| 18374 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18375 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18376 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18377 | |
| 18378 | dgux*) |
| 18379 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18380 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18381 | # FIXME: insert proper C++ library support |
| 18382 | ld_shlibs_CXX=no |
| 18383 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18384 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18385 | # Green Hills C++ Compiler |
| 18386 | # FIXME: insert proper C++ library support |
| 18387 | ld_shlibs_CXX=no |
| 18388 | ;; |
| 18389 | *) |
| 18390 | # FIXME: insert proper C++ library support |
| 18391 | ld_shlibs_CXX=no |
| 18392 | ;; |
| 18393 | esac |
| 18394 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18395 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18396 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18397 | ld_shlibs_CXX=no |
| 18398 | ;; |
| 18399 | freebsd-elf*) |
| 18400 | archive_cmds_need_lc_CXX=no |
| 18401 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18402 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18403 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18404 | # conventions |
| 18405 | ld_shlibs_CXX=yes |
| 18406 | ;; |
| 18407 | gnu*) |
| 18408 | ;; |
| 18409 | hpux9*) |
| 18410 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18411 | hardcode_libdir_separator_CXX=: |
| 18412 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18413 | hardcode_direct_CXX=yes |
| 18414 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18415 | # but as the default |
| 18416 | # location of the library. |
| 18417 | |
| 18418 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18419 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18420 | # FIXME: insert proper C++ library support |
| 18421 | ld_shlibs_CXX=no |
| 18422 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18423 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18424 | 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] | 18425 | # Commands to make compiler produce verbose output that lists |
| 18426 | # what "hidden" libraries, object files and flags are used when |
| 18427 | # linking a shared library. |
| 18428 | # |
| 18429 | # There doesn't appear to be a way to prevent this compiler from |
| 18430 | # explicitly linking system object files so we need to strip them |
| 18431 | # from the output so that they don't get included in the library |
| 18432 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18433 | 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] | 18434 | ;; |
| 18435 | *) |
| 18436 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18437 | 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] | 18438 | else |
| 18439 | # FIXME: insert proper C++ library support |
| 18440 | ld_shlibs_CXX=no |
| 18441 | fi |
| 18442 | ;; |
| 18443 | esac |
| 18444 | ;; |
| 18445 | hpux10*|hpux11*) |
| 18446 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18447 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18448 | hardcode_libdir_separator_CXX=: |
| 18449 | |
| 18450 | case $host_cpu in |
| 18451 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18452 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18453 | ;; |
| 18454 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18455 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18456 | ;; |
| 18457 | esac |
| 18458 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18459 | case $host_cpu in |
| 18460 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18461 | hardcode_direct_CXX=no |
| 18462 | hardcode_shlibpath_var_CXX=no |
| 18463 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18464 | *) |
| 18465 | hardcode_direct_CXX=yes |
| 18466 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18467 | # but as the default |
| 18468 | # location of the library. |
| 18469 | ;; |
| 18470 | esac |
| 18471 | |
| 18472 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18473 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18474 | # FIXME: insert proper C++ library support |
| 18475 | ld_shlibs_CXX=no |
| 18476 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18477 | aCC*) |
| 18478 | case $host_cpu in |
| 18479 | hppa*64*) |
| 18480 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18481 | ;; |
| 18482 | ia64*) |
| 18483 | 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] | 18484 | ;; |
| 18485 | *) |
| 18486 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18487 | ;; |
| 18488 | esac |
| 18489 | # Commands to make compiler produce verbose output that lists |
| 18490 | # what "hidden" libraries, object files and flags are used when |
| 18491 | # linking a shared library. |
| 18492 | # |
| 18493 | # There doesn't appear to be a way to prevent this compiler from |
| 18494 | # explicitly linking system object files so we need to strip them |
| 18495 | # from the output so that they don't get included in the library |
| 18496 | # dependencies. |
| 18497 | 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' |
| 18498 | ;; |
| 18499 | *) |
| 18500 | if test "$GXX" = yes; then |
| 18501 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18502 | case $host_cpu in |
| 18503 | hppa*64*) |
| 18504 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18505 | ;; |
| 18506 | ia64*) |
| 18507 | 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] | 18508 | ;; |
| 18509 | *) |
| 18510 | 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' |
| 18511 | ;; |
| 18512 | esac |
| 18513 | fi |
| 18514 | else |
| 18515 | # FIXME: insert proper C++ library support |
| 18516 | ld_shlibs_CXX=no |
| 18517 | fi |
| 18518 | ;; |
| 18519 | esac |
| 18520 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18521 | interix3*) |
| 18522 | hardcode_direct_CXX=no |
| 18523 | hardcode_shlibpath_var_CXX=no |
| 18524 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18525 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18526 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18527 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18528 | # default) and relocated if they conflict, which is a slow very memory |
| 18529 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18530 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18531 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18532 | 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' |
| 18533 | 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' |
| 18534 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18535 | irix5* | irix6*) |
| 18536 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18537 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18538 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18539 | 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] | 18540 | |
| 18541 | # Archives containing C++ object files must be created using |
| 18542 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18543 | # necessary to make sure instantiated templates are included |
| 18544 | # in the archive. |
| 18545 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18546 | ;; |
| 18547 | *) |
| 18548 | if test "$GXX" = yes; then |
| 18549 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18550 | 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] | 18551 | else |
| 18552 | 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' |
| 18553 | fi |
| 18554 | fi |
| 18555 | link_all_deplibs_CXX=yes |
| 18556 | ;; |
| 18557 | esac |
| 18558 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18559 | hardcode_libdir_separator_CXX=: |
| 18560 | ;; |
| 18561 | linux*) |
| 18562 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18563 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18564 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18565 | |
| 18566 | # KCC will only create a shared library if the output file |
| 18567 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18568 | # to its proper name (with version) after linking. |
| 18569 | 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' |
| 18570 | 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' |
| 18571 | # Commands to make compiler produce verbose output that lists |
| 18572 | # what "hidden" libraries, object files and flags are used when |
| 18573 | # linking a shared library. |
| 18574 | # |
| 18575 | # There doesn't appear to be a way to prevent this compiler from |
| 18576 | # explicitly linking system object files so we need to strip them |
| 18577 | # from the output so that they don't get included in the library |
| 18578 | # dependencies. |
| 18579 | 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' |
| 18580 | |
| 18581 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 18582 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18583 | |
| 18584 | # Archives containing C++ object files must be created using |
| 18585 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18586 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18587 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18588 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18589 | # Intel C++ |
| 18590 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18591 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18592 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18593 | # earlier do not add the objects themselves. |
| 18594 | case `$CC -V 2>&1` in |
| 18595 | *"Version 7."*) |
| 18596 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18597 | 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' |
| 18598 | ;; |
| 18599 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18600 | tmp_idyn= |
| 18601 | case $host_cpu in |
| 18602 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18603 | esac |
| 18604 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18605 | 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] | 18606 | ;; |
| 18607 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18608 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18609 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18610 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18611 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18612 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18613 | pgCC*) |
| 18614 | # Portland Group C++ compiler |
| 18615 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18616 | 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' |
| 18617 | |
| 18618 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18619 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18620 | 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' |
| 18621 | ;; |
| 18622 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18623 | # Compaq C++ |
| 18624 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18625 | 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' |
| 18626 | |
| 18627 | runpath_var=LD_RUN_PATH |
| 18628 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18629 | hardcode_libdir_separator_CXX=: |
| 18630 | |
| 18631 | # Commands to make compiler produce verbose output that lists |
| 18632 | # what "hidden" libraries, object files and flags are used when |
| 18633 | # linking a shared library. |
| 18634 | # |
| 18635 | # There doesn't appear to be a way to prevent this compiler from |
| 18636 | # explicitly linking system object files so we need to strip them |
| 18637 | # from the output so that they don't get included in the library |
| 18638 | # dependencies. |
| 18639 | 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' |
| 18640 | ;; |
| 18641 | esac |
| 18642 | ;; |
| 18643 | lynxos*) |
| 18644 | # FIXME: insert proper C++ library support |
| 18645 | ld_shlibs_CXX=no |
| 18646 | ;; |
| 18647 | m88k*) |
| 18648 | # FIXME: insert proper C++ library support |
| 18649 | ld_shlibs_CXX=no |
| 18650 | ;; |
| 18651 | mvs*) |
| 18652 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18653 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18654 | # FIXME: insert proper C++ library support |
| 18655 | ld_shlibs_CXX=no |
| 18656 | ;; |
| 18657 | *) |
| 18658 | # FIXME: insert proper C++ library support |
| 18659 | ld_shlibs_CXX=no |
| 18660 | ;; |
| 18661 | esac |
| 18662 | ;; |
| 18663 | netbsd*) |
| 18664 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18665 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18666 | wlarc= |
| 18667 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18668 | hardcode_direct_CXX=yes |
| 18669 | hardcode_shlibpath_var_CXX=no |
| 18670 | fi |
| 18671 | # Workaround some broken pre-1.5 toolchains |
| 18672 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18673 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18674 | openbsd2*) |
| 18675 | # C++ shared libraries are fairly broken |
| 18676 | ld_shlibs_CXX=no |
| 18677 | ;; |
| 18678 | openbsd*) |
| 18679 | hardcode_direct_CXX=yes |
| 18680 | hardcode_shlibpath_var_CXX=no |
| 18681 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18682 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18683 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18684 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 18685 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18686 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18687 | fi |
| 18688 | output_verbose_link_cmd='echo' |
| 18689 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18690 | osf3*) |
| 18691 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18692 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18693 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18694 | |
| 18695 | # KCC will only create a shared library if the output file |
| 18696 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18697 | # to its proper name (with version) after linking. |
| 18698 | 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' |
| 18699 | |
| 18700 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18701 | hardcode_libdir_separator_CXX=: |
| 18702 | |
| 18703 | # Archives containing C++ object files must be created using |
| 18704 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18705 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18706 | |
| 18707 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18708 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18709 | # Rational C++ 2.4.1 |
| 18710 | # FIXME: insert proper C++ library support |
| 18711 | ld_shlibs_CXX=no |
| 18712 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18713 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18714 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18715 | 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] | 18716 | |
| 18717 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18718 | hardcode_libdir_separator_CXX=: |
| 18719 | |
| 18720 | # Commands to make compiler produce verbose output that lists |
| 18721 | # what "hidden" libraries, object files and flags are used when |
| 18722 | # linking a shared library. |
| 18723 | # |
| 18724 | # There doesn't appear to be a way to prevent this compiler from |
| 18725 | # explicitly linking system object files so we need to strip them |
| 18726 | # from the output so that they don't get included in the library |
| 18727 | # dependencies. |
| 18728 | 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' |
| 18729 | ;; |
| 18730 | *) |
| 18731 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18732 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18733 | 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] | 18734 | |
| 18735 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18736 | hardcode_libdir_separator_CXX=: |
| 18737 | |
| 18738 | # Commands to make compiler produce verbose output that lists |
| 18739 | # what "hidden" libraries, object files and flags are used when |
| 18740 | # linking a shared library. |
| 18741 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18742 | |
| 18743 | else |
| 18744 | # FIXME: insert proper C++ library support |
| 18745 | ld_shlibs_CXX=no |
| 18746 | fi |
| 18747 | ;; |
| 18748 | esac |
| 18749 | ;; |
| 18750 | osf4* | osf5*) |
| 18751 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18752 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18753 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18754 | |
| 18755 | # KCC will only create a shared library if the output file |
| 18756 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18757 | # to its proper name (with version) after linking. |
| 18758 | 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' |
| 18759 | |
| 18760 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18761 | hardcode_libdir_separator_CXX=: |
| 18762 | |
| 18763 | # Archives containing C++ object files must be created using |
| 18764 | # the KAI C++ compiler. |
| 18765 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 18766 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18767 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18768 | # Rational C++ 2.4.1 |
| 18769 | # FIXME: insert proper C++ library support |
| 18770 | ld_shlibs_CXX=no |
| 18771 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18772 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18773 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18774 | 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] | 18775 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 18776 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18777 | $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] | 18778 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18779 | |
| 18780 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18781 | hardcode_libdir_separator_CXX=: |
| 18782 | |
| 18783 | # Commands to make compiler produce verbose output that lists |
| 18784 | # what "hidden" libraries, object files and flags are used when |
| 18785 | # linking a shared library. |
| 18786 | # |
| 18787 | # There doesn't appear to be a way to prevent this compiler from |
| 18788 | # explicitly linking system object files so we need to strip them |
| 18789 | # from the output so that they don't get included in the library |
| 18790 | # dependencies. |
| 18791 | 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' |
| 18792 | ;; |
| 18793 | *) |
| 18794 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18795 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18796 | 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] | 18797 | |
| 18798 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18799 | hardcode_libdir_separator_CXX=: |
| 18800 | |
| 18801 | # Commands to make compiler produce verbose output that lists |
| 18802 | # what "hidden" libraries, object files and flags are used when |
| 18803 | # linking a shared library. |
| 18804 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18805 | |
| 18806 | else |
| 18807 | # FIXME: insert proper C++ library support |
| 18808 | ld_shlibs_CXX=no |
| 18809 | fi |
| 18810 | ;; |
| 18811 | esac |
| 18812 | ;; |
| 18813 | psos*) |
| 18814 | # FIXME: insert proper C++ library support |
| 18815 | ld_shlibs_CXX=no |
| 18816 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18817 | sunos4*) |
| 18818 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18819 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18820 | # Sun C++ 4.x |
| 18821 | # FIXME: insert proper C++ library support |
| 18822 | ld_shlibs_CXX=no |
| 18823 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18824 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18825 | # Lucid |
| 18826 | # FIXME: insert proper C++ library support |
| 18827 | ld_shlibs_CXX=no |
| 18828 | ;; |
| 18829 | *) |
| 18830 | # FIXME: insert proper C++ library support |
| 18831 | ld_shlibs_CXX=no |
| 18832 | ;; |
| 18833 | esac |
| 18834 | ;; |
| 18835 | solaris*) |
| 18836 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18837 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18838 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18839 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18840 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18841 | 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] | 18842 | 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] | 18843 | $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] | 18844 | |
| 18845 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18846 | hardcode_shlibpath_var_CXX=no |
| 18847 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18848 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18849 | *) |
| 18850 | # The C++ compiler is used as linker so we must use $wl |
| 18851 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18852 | # linker. We must also pass each convience library through |
| 18853 | # to the system linker between allextract/defaultextract. |
| 18854 | # The C++ compiler will combine linker options so we |
| 18855 | # cannot just pass the convience library names through |
| 18856 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18857 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18858 | 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] | 18859 | ;; |
| 18860 | esac |
| 18861 | link_all_deplibs_CXX=yes |
| 18862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18863 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18864 | |
| 18865 | # Archives containing C++ object files must be created using |
| 18866 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18867 | # necessary to make sure instantiated templates are included |
| 18868 | # in the archive. |
| 18869 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18870 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18871 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18872 | # Green Hills C++ Compiler |
| 18873 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18874 | |
| 18875 | # The C++ compiler must be used to create the archive. |
| 18876 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18877 | ;; |
| 18878 | *) |
| 18879 | # GNU C++ compiler with Solaris linker |
| 18880 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18881 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 18882 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18883 | 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] | 18884 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18885 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 18886 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18887 | # Commands to make compiler produce verbose output that lists |
| 18888 | # what "hidden" libraries, object files and flags are used when |
| 18889 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18890 | 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] | 18891 | else |
| 18892 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 18893 | # platform. |
| 18894 | 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] | 18895 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18896 | $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] | 18897 | |
| 18898 | # Commands to make compiler produce verbose output that lists |
| 18899 | # what "hidden" libraries, object files and flags are used when |
| 18900 | # linking a shared library. |
| 18901 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 18902 | fi |
| 18903 | |
| 18904 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 18905 | fi |
| 18906 | ;; |
| 18907 | esac |
| 18908 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18909 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 18910 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18911 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18912 | hardcode_shlibpath_var_CXX=no |
| 18913 | runpath_var='LD_RUN_PATH' |
| 18914 | |
| 18915 | case $cc_basename in |
| 18916 | CC*) |
| 18917 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18918 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18919 | ;; |
| 18920 | *) |
| 18921 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18922 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18923 | ;; |
| 18924 | esac |
| 18925 | ;; |
| 18926 | sysv5* | sco3.2v5* | sco5v6*) |
| 18927 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18928 | # link with -lc, and that would cause any symbols used from libc to |
| 18929 | # always be unresolved, which means just about no library would |
| 18930 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18931 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18932 | # as -z defs. |
| 18933 | # For security reasons, it is highly recommended that you always |
| 18934 | # use absolute paths for naming shared libraries, and exclude the |
| 18935 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 18936 | # requires that you compile everything twice, which is a pain. |
| 18937 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 18938 | # non-empty value in the environment. Most likely only useful for |
| 18939 | # creating official distributions of packages. |
| 18940 | # This is a hack until libtool officially supports absolute path |
| 18941 | # names for shared libraries. |
| 18942 | no_undefined_flag_CXX='${wl}-z,text' |
| 18943 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 18944 | archive_cmds_need_lc_CXX=no |
| 18945 | hardcode_shlibpath_var_CXX=no |
| 18946 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18947 | hardcode_libdir_separator_CXX=':' |
| 18948 | link_all_deplibs_CXX=yes |
| 18949 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 18950 | runpath_var='LD_RUN_PATH' |
| 18951 | |
| 18952 | case $cc_basename in |
| 18953 | CC*) |
| 18954 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18955 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18956 | ;; |
| 18957 | *) |
| 18958 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18959 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18960 | ;; |
| 18961 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18962 | ;; |
| 18963 | tandem*) |
| 18964 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18965 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18966 | # NonStop-UX NCC 3.20 |
| 18967 | # FIXME: insert proper C++ library support |
| 18968 | ld_shlibs_CXX=no |
| 18969 | ;; |
| 18970 | *) |
| 18971 | # FIXME: insert proper C++ library support |
| 18972 | ld_shlibs_CXX=no |
| 18973 | ;; |
| 18974 | esac |
| 18975 | ;; |
| 18976 | vxworks*) |
| 18977 | # FIXME: insert proper C++ library support |
| 18978 | ld_shlibs_CXX=no |
| 18979 | ;; |
| 18980 | *) |
| 18981 | # FIXME: insert proper C++ library support |
| 18982 | ld_shlibs_CXX=no |
| 18983 | ;; |
| 18984 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18985 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 18986 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18987 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 18988 | |
| 18989 | GCC_CXX="$GXX" |
| 18990 | LD_CXX="$LD" |
| 18991 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18992 | |
| 18993 | cat > conftest.$ac_ext <<EOF |
| 18994 | class Foo |
| 18995 | { |
| 18996 | public: |
| 18997 | Foo (void) { a = 0; } |
| 18998 | private: |
| 18999 | int a; |
| 19000 | }; |
| 19001 | EOF |
| 19002 | |
| 19003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19004 | (eval $ac_compile) 2>&5 |
| 19005 | ac_status=$? |
| 19006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19007 | (exit $ac_status); }; then |
| 19008 | # Parse the compiler output and extract the necessary |
| 19009 | # objects, libraries and library flags. |
| 19010 | |
| 19011 | # Sentinel used to keep track of whether or not we are before |
| 19012 | # the conftest object file. |
| 19013 | pre_test_object_deps_done=no |
| 19014 | |
| 19015 | # The `*' in the case matches for architectures that use `case' in |
| 19016 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19017 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19018 | 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] | 19019 | |
| 19020 | for p in `eval $output_verbose_link_cmd`; do |
| 19021 | case $p in |
| 19022 | |
| 19023 | -L* | -R* | -l*) |
| 19024 | # Some compilers place space between "-{L,R}" and the path. |
| 19025 | # Remove the space. |
| 19026 | if test $p = "-L" \ |
| 19027 | || test $p = "-R"; then |
| 19028 | prev=$p |
| 19029 | continue |
| 19030 | else |
| 19031 | prev= |
| 19032 | fi |
| 19033 | |
| 19034 | if test "$pre_test_object_deps_done" = no; then |
| 19035 | case $p in |
| 19036 | -L* | -R*) |
| 19037 | # Internal compiler library paths should come after those |
| 19038 | # provided the user. The postdeps already come after the |
| 19039 | # user supplied libs so there is no need to process them. |
| 19040 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19041 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19042 | else |
| 19043 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19044 | fi |
| 19045 | ;; |
| 19046 | # The "-l" case would never come before the object being |
| 19047 | # linked, so don't bother handling this case. |
| 19048 | esac |
| 19049 | else |
| 19050 | if test -z "$postdeps_CXX"; then |
| 19051 | postdeps_CXX="${prev}${p}" |
| 19052 | else |
| 19053 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19054 | fi |
| 19055 | fi |
| 19056 | ;; |
| 19057 | |
| 19058 | *.$objext) |
| 19059 | # This assumes that the test object file only shows up |
| 19060 | # once in the compiler output. |
| 19061 | if test "$p" = "conftest.$objext"; then |
| 19062 | pre_test_object_deps_done=yes |
| 19063 | continue |
| 19064 | fi |
| 19065 | |
| 19066 | if test "$pre_test_object_deps_done" = no; then |
| 19067 | if test -z "$predep_objects_CXX"; then |
| 19068 | predep_objects_CXX="$p" |
| 19069 | else |
| 19070 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19071 | fi |
| 19072 | else |
| 19073 | if test -z "$postdep_objects_CXX"; then |
| 19074 | postdep_objects_CXX="$p" |
| 19075 | else |
| 19076 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19077 | fi |
| 19078 | fi |
| 19079 | ;; |
| 19080 | |
| 19081 | *) ;; # Ignore the rest. |
| 19082 | |
| 19083 | esac |
| 19084 | done |
| 19085 | |
| 19086 | # Clean up. |
| 19087 | rm -f a.out a.exe |
| 19088 | else |
| 19089 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19090 | fi |
| 19091 | |
| 19092 | $rm -f confest.$objext |
| 19093 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19094 | # PORTME: override above test on systems where it is broken |
| 19095 | case $host_os in |
| 19096 | interix3*) |
| 19097 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19098 | # hack all around it, let's just trust "g++" to DTRT. |
| 19099 | predep_objects_CXX= |
| 19100 | postdep_objects_CXX= |
| 19101 | postdeps_CXX= |
| 19102 | ;; |
| 19103 | |
| 19104 | solaris*) |
| 19105 | case $cc_basename in |
| 19106 | CC*) |
| 19107 | # Adding this requires a known-good setup of shared libraries for |
| 19108 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19109 | # archive will be linked into the output, leading to subtle bugs. |
| 19110 | postdeps_CXX='-lCstd -lCrun' |
| 19111 | ;; |
| 19112 | esac |
| 19113 | ;; |
| 19114 | esac |
| 19115 | |
| 19116 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19117 | case " $postdeps_CXX " in |
| 19118 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19119 | esac |
| 19120 | |
| 19121 | lt_prog_compiler_wl_CXX= |
| 19122 | lt_prog_compiler_pic_CXX= |
| 19123 | lt_prog_compiler_static_CXX= |
| 19124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19125 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19126 | 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] | 19127 | |
| 19128 | # C++ specific cases for pic, static, wl, etc. |
| 19129 | if test "$GXX" = yes; then |
| 19130 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19131 | lt_prog_compiler_static_CXX='-static' |
| 19132 | |
| 19133 | case $host_os in |
| 19134 | aix*) |
| 19135 | # All AIX code is PIC. |
| 19136 | if test "$host_cpu" = ia64; then |
| 19137 | # AIX 5 now supports IA64 processor |
| 19138 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19139 | fi |
| 19140 | ;; |
| 19141 | amigaos*) |
| 19142 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19143 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19144 | # like `-m68040'. |
| 19145 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19146 | ;; |
| 19147 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19148 | # PIC is the default for these OSes. |
| 19149 | ;; |
| 19150 | mingw* | os2* | pw32*) |
| 19151 | # This hack is so that the source file can tell whether it is being |
| 19152 | # built for inclusion in a dll (and should export symbols for example). |
| 19153 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19154 | ;; |
| 19155 | darwin* | rhapsody*) |
| 19156 | # PIC is the default on this platform |
| 19157 | # Common symbols not allowed in MH_DYLIB files |
| 19158 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19159 | ;; |
| 19160 | *djgpp*) |
| 19161 | # DJGPP does not support shared libraries at all |
| 19162 | lt_prog_compiler_pic_CXX= |
| 19163 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19164 | interix3*) |
| 19165 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19166 | # Instead, we relocate shared libraries at runtime. |
| 19167 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19168 | sysv4*MP*) |
| 19169 | if test -d /usr/nec; then |
| 19170 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19171 | fi |
| 19172 | ;; |
| 19173 | hpux*) |
| 19174 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19175 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19176 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19177 | hppa*64*|ia64*) |
| 19178 | ;; |
| 19179 | *) |
| 19180 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19181 | ;; |
| 19182 | esac |
| 19183 | ;; |
| 19184 | *) |
| 19185 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19186 | ;; |
| 19187 | esac |
| 19188 | else |
| 19189 | case $host_os in |
| 19190 | aix4* | aix5*) |
| 19191 | # All AIX code is PIC. |
| 19192 | if test "$host_cpu" = ia64; then |
| 19193 | # AIX 5 now supports IA64 processor |
| 19194 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19195 | else |
| 19196 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19197 | fi |
| 19198 | ;; |
| 19199 | chorus*) |
| 19200 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19201 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19202 | # Green Hills C++ Compiler |
| 19203 | # _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" |
| 19204 | ;; |
| 19205 | esac |
| 19206 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19207 | darwin*) |
| 19208 | # PIC is the default on this platform |
| 19209 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19210 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19211 | xlc*) |
| 19212 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19213 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19214 | ;; |
| 19215 | esac |
| 19216 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19217 | dgux*) |
| 19218 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19219 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19220 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19221 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19222 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19223 | # Green Hills C++ Compiler |
| 19224 | lt_prog_compiler_pic_CXX='-pic' |
| 19225 | ;; |
| 19226 | *) |
| 19227 | ;; |
| 19228 | esac |
| 19229 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19230 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19231 | # FreeBSD uses GNU C++ |
| 19232 | ;; |
| 19233 | hpux9* | hpux10* | hpux11*) |
| 19234 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19235 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19236 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19237 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19238 | if test "$host_cpu" != ia64; then |
| 19239 | lt_prog_compiler_pic_CXX='+Z' |
| 19240 | fi |
| 19241 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19242 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19243 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19244 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19245 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19246 | hppa*64*|ia64*) |
| 19247 | # +Z the default |
| 19248 | ;; |
| 19249 | *) |
| 19250 | lt_prog_compiler_pic_CXX='+Z' |
| 19251 | ;; |
| 19252 | esac |
| 19253 | ;; |
| 19254 | *) |
| 19255 | ;; |
| 19256 | esac |
| 19257 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19258 | interix*) |
| 19259 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19260 | # Anyone wants to do a port? |
| 19261 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19262 | irix5* | irix6* | nonstopux*) |
| 19263 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19264 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19265 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19266 | lt_prog_compiler_static_CXX='-non_shared' |
| 19267 | # CC pic flag -KPIC is the default. |
| 19268 | ;; |
| 19269 | *) |
| 19270 | ;; |
| 19271 | esac |
| 19272 | ;; |
| 19273 | linux*) |
| 19274 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19275 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19276 | # KAI C++ Compiler |
| 19277 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19278 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19279 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19280 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19281 | # Intel C++ |
| 19282 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19283 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19284 | lt_prog_compiler_static_CXX='-static' |
| 19285 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19286 | pgCC*) |
| 19287 | # Portland Group C++ compiler. |
| 19288 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19289 | lt_prog_compiler_pic_CXX='-fpic' |
| 19290 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19291 | ;; |
| 19292 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19293 | # Compaq C++ |
| 19294 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19295 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19296 | lt_prog_compiler_pic_CXX= |
| 19297 | lt_prog_compiler_static_CXX='-non_shared' |
| 19298 | ;; |
| 19299 | *) |
| 19300 | ;; |
| 19301 | esac |
| 19302 | ;; |
| 19303 | lynxos*) |
| 19304 | ;; |
| 19305 | m88k*) |
| 19306 | ;; |
| 19307 | mvs*) |
| 19308 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19309 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19310 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19311 | ;; |
| 19312 | *) |
| 19313 | ;; |
| 19314 | esac |
| 19315 | ;; |
| 19316 | netbsd*) |
| 19317 | ;; |
| 19318 | osf3* | osf4* | osf5*) |
| 19319 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19320 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19321 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19322 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19323 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19324 | # Rational C++ 2.4.1 |
| 19325 | lt_prog_compiler_pic_CXX='-pic' |
| 19326 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19327 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19328 | # Digital/Compaq C++ |
| 19329 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19330 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19331 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19332 | lt_prog_compiler_pic_CXX= |
| 19333 | lt_prog_compiler_static_CXX='-non_shared' |
| 19334 | ;; |
| 19335 | *) |
| 19336 | ;; |
| 19337 | esac |
| 19338 | ;; |
| 19339 | psos*) |
| 19340 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19341 | solaris*) |
| 19342 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19343 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19344 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19345 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19346 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19347 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19348 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19349 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19350 | # Green Hills C++ Compiler |
| 19351 | lt_prog_compiler_pic_CXX='-PIC' |
| 19352 | ;; |
| 19353 | *) |
| 19354 | ;; |
| 19355 | esac |
| 19356 | ;; |
| 19357 | sunos4*) |
| 19358 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19359 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19360 | # Sun C++ 4.x |
| 19361 | lt_prog_compiler_pic_CXX='-pic' |
| 19362 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19363 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19364 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19365 | # Lucid |
| 19366 | lt_prog_compiler_pic_CXX='-pic' |
| 19367 | ;; |
| 19368 | *) |
| 19369 | ;; |
| 19370 | esac |
| 19371 | ;; |
| 19372 | tandem*) |
| 19373 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19374 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19375 | # NonStop-UX NCC 3.20 |
| 19376 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19377 | ;; |
| 19378 | *) |
| 19379 | ;; |
| 19380 | esac |
| 19381 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19382 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19383 | case $cc_basename in |
| 19384 | CC*) |
| 19385 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19386 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19387 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19388 | ;; |
| 19389 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19390 | ;; |
| 19391 | vxworks*) |
| 19392 | ;; |
| 19393 | *) |
| 19394 | lt_prog_compiler_can_build_shared_CXX=no |
| 19395 | ;; |
| 19396 | esac |
| 19397 | fi |
| 19398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19399 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19400 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19401 | |
| 19402 | # |
| 19403 | # Check to make sure the PIC flag actually works. |
| 19404 | # |
| 19405 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19406 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19407 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19408 | 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] | 19409 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19411 | else |
| 19412 | lt_prog_compiler_pic_works_CXX=no |
| 19413 | ac_outfile=conftest.$ac_objext |
| 19414 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19415 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19416 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19417 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19418 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19419 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19420 | # The option is referenced via a variable to avoid confusing sed. |
| 19421 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19422 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19423 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19424 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 19425 | (eval echo "\"\$as_me:19425: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19426 | (eval "$lt_compile" 2>conftest.err) |
| 19427 | ac_status=$? |
| 19428 | cat conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 19429 | echo "$as_me:19429: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19430 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19431 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19432 | # So say no if there are warnings other than the usual output. |
| 19433 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19434 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19435 | 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] | 19436 | lt_prog_compiler_pic_works_CXX=yes |
| 19437 | fi |
| 19438 | fi |
| 19439 | $rm conftest* |
| 19440 | |
| 19441 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19442 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 19443 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19444 | |
| 19445 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 19446 | case $lt_prog_compiler_pic_CXX in |
| 19447 | "" | " "*) ;; |
| 19448 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19449 | esac |
| 19450 | else |
| 19451 | lt_prog_compiler_pic_CXX= |
| 19452 | lt_prog_compiler_can_build_shared_CXX=no |
| 19453 | fi |
| 19454 | |
| 19455 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19456 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19457 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19458 | *djgpp*) |
| 19459 | lt_prog_compiler_pic_CXX= |
| 19460 | ;; |
| 19461 | *) |
| 19462 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19463 | ;; |
| 19464 | esac |
| 19465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19466 | # |
| 19467 | # Check to make sure the static flag actually works. |
| 19468 | # |
| 19469 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19470 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19471 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 19472 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 19473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19474 | else |
| 19475 | lt_prog_compiler_static_works_CXX=no |
| 19476 | save_LDFLAGS="$LDFLAGS" |
| 19477 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19478 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19479 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19480 | # The linker can only warn and ignore the option if not recognized |
| 19481 | # So say no if there are warnings |
| 19482 | if test -s conftest.err; then |
| 19483 | # Append any errors to the config.log. |
| 19484 | cat conftest.err 1>&5 |
| 19485 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 19486 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19487 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19488 | lt_prog_compiler_static_works_CXX=yes |
| 19489 | fi |
| 19490 | else |
| 19491 | lt_prog_compiler_static_works_CXX=yes |
| 19492 | fi |
| 19493 | fi |
| 19494 | $rm conftest* |
| 19495 | LDFLAGS="$save_LDFLAGS" |
| 19496 | |
| 19497 | fi |
| 19498 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 19499 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 19500 | |
| 19501 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 19502 | : |
| 19503 | else |
| 19504 | lt_prog_compiler_static_CXX= |
| 19505 | fi |
| 19506 | |
| 19507 | |
| 19508 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19509 | 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] | 19510 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 19511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19512 | else |
| 19513 | lt_cv_prog_compiler_c_o_CXX=no |
| 19514 | $rm -r conftest 2>/dev/null |
| 19515 | mkdir conftest |
| 19516 | cd conftest |
| 19517 | mkdir out |
| 19518 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19519 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19520 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19521 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19522 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19523 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19524 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19525 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19526 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19527 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19528 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 19529 | (eval echo "\"\$as_me:19529: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19530 | (eval "$lt_compile" 2>out/conftest.err) |
| 19531 | ac_status=$? |
| 19532 | cat out/conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 19533 | echo "$as_me:19533: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19534 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19535 | then |
| 19536 | # The compiler can only warn and ignore the option if not recognized |
| 19537 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19538 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 19539 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19540 | 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] | 19541 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19542 | fi |
| 19543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19544 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19545 | $rm conftest* |
| 19546 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19547 | # template instantiation |
| 19548 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19549 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19550 | cd .. |
| 19551 | rmdir conftest |
| 19552 | $rm conftest* |
| 19553 | |
| 19554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19555 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19556 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19557 | |
| 19558 | |
| 19559 | hard_links="nottested" |
| 19560 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19561 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19562 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19563 | 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] | 19564 | hard_links=yes |
| 19565 | $rm conftest* |
| 19566 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19567 | touch conftest.a |
| 19568 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19569 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19570 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19571 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19572 | if test "$hard_links" = no; then |
| 19573 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19574 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19575 | need_locks=warn |
| 19576 | fi |
| 19577 | else |
| 19578 | need_locks=no |
| 19579 | fi |
| 19580 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19581 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19582 | 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] | 19583 | |
| 19584 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19585 | case $host_os in |
| 19586 | aix4* | aix5*) |
| 19587 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19588 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19589 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19590 | 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' |
| 19591 | else |
| 19592 | 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' |
| 19593 | fi |
| 19594 | ;; |
| 19595 | pw32*) |
| 19596 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 19597 | ;; |
| 19598 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19599 | 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] | 19600 | ;; |
| 19601 | *) |
| 19602 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19603 | ;; |
| 19604 | esac |
| 19605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19606 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19607 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19608 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19609 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19610 | # |
| 19611 | # Do we need to explicitly link libc? |
| 19612 | # |
| 19613 | case "x$archive_cmds_need_lc_CXX" in |
| 19614 | x|xyes) |
| 19615 | # Assume -lc should be added |
| 19616 | archive_cmds_need_lc_CXX=yes |
| 19617 | |
| 19618 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19619 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19620 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19621 | # FIXME: we may have to deal with multi-command sequences. |
| 19622 | ;; |
| 19623 | '$CC '*) |
| 19624 | # Test whether the compiler implicitly links with -lc since on some |
| 19625 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19626 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19627 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19628 | 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] | 19629 | $rm conftest* |
| 19630 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19631 | |
| 19632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19633 | (eval $ac_compile) 2>&5 |
| 19634 | ac_status=$? |
| 19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19636 | (exit $ac_status); } 2>conftest.err; then |
| 19637 | soname=conftest |
| 19638 | lib=conftest |
| 19639 | libobjs=conftest.$ac_objext |
| 19640 | deplibs= |
| 19641 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19642 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19643 | compiler_flags=-v |
| 19644 | linker_flags=-v |
| 19645 | verstring= |
| 19646 | output_objdir=. |
| 19647 | libname=conftest |
| 19648 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19649 | allow_undefined_flag_CXX= |
| 19650 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 19651 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19652 | ac_status=$? |
| 19653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19654 | (exit $ac_status); } |
| 19655 | then |
| 19656 | archive_cmds_need_lc_CXX=no |
| 19657 | else |
| 19658 | archive_cmds_need_lc_CXX=yes |
| 19659 | fi |
| 19660 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19661 | else |
| 19662 | cat conftest.err 1>&5 |
| 19663 | fi |
| 19664 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19665 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 19666 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19667 | ;; |
| 19668 | esac |
| 19669 | fi |
| 19670 | ;; |
| 19671 | esac |
| 19672 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19673 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 19674 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19675 | library_names_spec= |
| 19676 | libname_spec='lib$name' |
| 19677 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19678 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19679 | postinstall_cmds= |
| 19680 | postuninstall_cmds= |
| 19681 | finish_cmds= |
| 19682 | finish_eval= |
| 19683 | shlibpath_var= |
| 19684 | shlibpath_overrides_runpath=unknown |
| 19685 | version_type=none |
| 19686 | dynamic_linker="$host_os ld.so" |
| 19687 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19688 | if test "$GCC" = yes; then |
| 19689 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19690 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 19691 | # if the path contains ";" then we assume it to be the separator |
| 19692 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 19693 | # assumed that no part of a normal pathname contains ";" but that should |
| 19694 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 19695 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19696 | else |
| 19697 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19698 | fi |
| 19699 | else |
| 19700 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 19701 | fi |
| 19702 | need_lib_prefix=unknown |
| 19703 | hardcode_into_libs=no |
| 19704 | |
| 19705 | # when you set need_version to no, make sure it does not cause -set_version |
| 19706 | # flags to be left without arguments |
| 19707 | need_version=unknown |
| 19708 | |
| 19709 | case $host_os in |
| 19710 | aix3*) |
| 19711 | version_type=linux |
| 19712 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19713 | shlibpath_var=LIBPATH |
| 19714 | |
| 19715 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19716 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19717 | ;; |
| 19718 | |
| 19719 | aix4* | aix5*) |
| 19720 | version_type=linux |
| 19721 | need_lib_prefix=no |
| 19722 | need_version=no |
| 19723 | hardcode_into_libs=yes |
| 19724 | if test "$host_cpu" = ia64; then |
| 19725 | # AIX 5 supports IA64 |
| 19726 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19727 | shlibpath_var=LD_LIBRARY_PATH |
| 19728 | else |
| 19729 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19730 | # for dependence libraries. The import file would start with |
| 19731 | # the line `#! .'. This would cause the generated library to |
| 19732 | # depend on `.', always an invalid library. This was fixed in |
| 19733 | # development snapshots of GCC prior to 3.0. |
| 19734 | case $host_os in |
| 19735 | aix4 | aix4.[01] | aix4.[01].*) |
| 19736 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19737 | echo ' yes ' |
| 19738 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 19739 | : |
| 19740 | else |
| 19741 | can_build_shared=no |
| 19742 | fi |
| 19743 | ;; |
| 19744 | esac |
| 19745 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19746 | # soname into executable. Probably we can add versioning support to |
| 19747 | # collect2, so additional links can be useful in future. |
| 19748 | if test "$aix_use_runtimelinking" = yes; then |
| 19749 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19750 | # instead of lib<name>.a to let people know that these are not |
| 19751 | # typical AIX shared libraries. |
| 19752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19753 | else |
| 19754 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19755 | # and later when we are not doing run time linking. |
| 19756 | library_names_spec='${libname}${release}.a $libname.a' |
| 19757 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19758 | fi |
| 19759 | shlibpath_var=LIBPATH |
| 19760 | fi |
| 19761 | ;; |
| 19762 | |
| 19763 | amigaos*) |
| 19764 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19765 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19766 | 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] | 19767 | ;; |
| 19768 | |
| 19769 | beos*) |
| 19770 | library_names_spec='${libname}${shared_ext}' |
| 19771 | dynamic_linker="$host_os ld.so" |
| 19772 | shlibpath_var=LIBRARY_PATH |
| 19773 | ;; |
| 19774 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19775 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19776 | version_type=linux |
| 19777 | need_version=no |
| 19778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19779 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19780 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19781 | shlibpath_var=LD_LIBRARY_PATH |
| 19782 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19783 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19784 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 19785 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19786 | # libtool to hard-code these into programs |
| 19787 | ;; |
| 19788 | |
| 19789 | cygwin* | mingw* | pw32*) |
| 19790 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19791 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19792 | need_version=no |
| 19793 | need_lib_prefix=no |
| 19794 | |
| 19795 | case $GCC,$host_os in |
| 19796 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 19797 | library_names_spec='$libname.dll.a' |
| 19798 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19799 | postinstall_cmds='base_file=`basename \${file}`~ |
| 19800 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 19801 | dldir=$destdir/`dirname \$dlpath`~ |
| 19802 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19803 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 19804 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19805 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19806 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19807 | $rm \$dlpath' |
| 19808 | shlibpath_overrides_runpath=yes |
| 19809 | |
| 19810 | case $host_os in |
| 19811 | cygwin*) |
| 19812 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 19813 | 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] | 19814 | 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] | 19815 | ;; |
| 19816 | mingw*) |
| 19817 | # MinGW DLLs use traditional 'lib' prefix |
| 19818 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19819 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19820 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 19821 | # It is most probably a Windows format PATH printed by |
| 19822 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 19823 | # path with ; separators, and with drive letters. We can handle the |
| 19824 | # drive letters (cygwin fileutils understands them), so leave them, |
| 19825 | # especially as we might pass files found there to a mingw objdump, |
| 19826 | # which wouldn't understand a cygwinified path. Ahh. |
| 19827 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19828 | else |
| 19829 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19830 | fi |
| 19831 | ;; |
| 19832 | pw32*) |
| 19833 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19834 | 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] | 19835 | ;; |
| 19836 | esac |
| 19837 | ;; |
| 19838 | |
| 19839 | *) |
| 19840 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 19841 | ;; |
| 19842 | esac |
| 19843 | dynamic_linker='Win32 ld.exe' |
| 19844 | # FIXME: first we should search . and the directory the executable is in |
| 19845 | shlibpath_var=PATH |
| 19846 | ;; |
| 19847 | |
| 19848 | darwin* | rhapsody*) |
| 19849 | dynamic_linker="$host_os dyld" |
| 19850 | version_type=darwin |
| 19851 | need_lib_prefix=no |
| 19852 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19853 | 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] | 19854 | soname_spec='${libname}${release}${major}$shared_ext' |
| 19855 | shlibpath_overrides_runpath=yes |
| 19856 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19857 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19858 | # 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] | 19859 | if test "$GCC" = yes; then |
| 19860 | 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"` |
| 19861 | else |
| 19862 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19863 | fi |
| 19864 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19865 | ;; |
| 19866 | |
| 19867 | dgux*) |
| 19868 | version_type=linux |
| 19869 | need_lib_prefix=no |
| 19870 | need_version=no |
| 19871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 19872 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19873 | shlibpath_var=LD_LIBRARY_PATH |
| 19874 | ;; |
| 19875 | |
| 19876 | freebsd1*) |
| 19877 | dynamic_linker=no |
| 19878 | ;; |
| 19879 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19880 | kfreebsd*-gnu) |
| 19881 | version_type=linux |
| 19882 | need_lib_prefix=no |
| 19883 | need_version=no |
| 19884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19885 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19886 | shlibpath_var=LD_LIBRARY_PATH |
| 19887 | shlibpath_overrides_runpath=no |
| 19888 | hardcode_into_libs=yes |
| 19889 | dynamic_linker='GNU ld.so' |
| 19890 | ;; |
| 19891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19892 | freebsd* | dragonfly*) |
| 19893 | # DragonFly does not have aout. When/if they implement a new |
| 19894 | # versioning mechanism, adjust this. |
| 19895 | if test -x /usr/bin/objformat; then |
| 19896 | objformat=`/usr/bin/objformat` |
| 19897 | else |
| 19898 | case $host_os in |
| 19899 | freebsd[123]*) objformat=aout ;; |
| 19900 | *) objformat=elf ;; |
| 19901 | esac |
| 19902 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19903 | version_type=freebsd-$objformat |
| 19904 | case $version_type in |
| 19905 | freebsd-elf*) |
| 19906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19907 | need_version=no |
| 19908 | need_lib_prefix=no |
| 19909 | ;; |
| 19910 | freebsd-*) |
| 19911 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 19912 | need_version=yes |
| 19913 | ;; |
| 19914 | esac |
| 19915 | shlibpath_var=LD_LIBRARY_PATH |
| 19916 | case $host_os in |
| 19917 | freebsd2*) |
| 19918 | shlibpath_overrides_runpath=yes |
| 19919 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19920 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19921 | shlibpath_overrides_runpath=yes |
| 19922 | hardcode_into_libs=yes |
| 19923 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19924 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19925 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19926 | shlibpath_overrides_runpath=no |
| 19927 | hardcode_into_libs=yes |
| 19928 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19929 | freebsd*) # from 4.6 on |
| 19930 | shlibpath_overrides_runpath=yes |
| 19931 | hardcode_into_libs=yes |
| 19932 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19933 | esac |
| 19934 | ;; |
| 19935 | |
| 19936 | gnu*) |
| 19937 | version_type=linux |
| 19938 | need_lib_prefix=no |
| 19939 | need_version=no |
| 19940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 19941 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19942 | shlibpath_var=LD_LIBRARY_PATH |
| 19943 | hardcode_into_libs=yes |
| 19944 | ;; |
| 19945 | |
| 19946 | hpux9* | hpux10* | hpux11*) |
| 19947 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 19948 | # link against other versions. |
| 19949 | version_type=sunos |
| 19950 | need_lib_prefix=no |
| 19951 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19952 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19953 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19954 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19955 | hardcode_into_libs=yes |
| 19956 | dynamic_linker="$host_os dld.so" |
| 19957 | shlibpath_var=LD_LIBRARY_PATH |
| 19958 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19960 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19961 | if test "X$HPUX_IA64_MODE" = X32; then |
| 19962 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 19963 | else |
| 19964 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 19965 | fi |
| 19966 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19967 | ;; |
| 19968 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19969 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19970 | hardcode_into_libs=yes |
| 19971 | dynamic_linker="$host_os dld.sl" |
| 19972 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 19973 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19975 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19976 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 19977 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19978 | ;; |
| 19979 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19980 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19981 | dynamic_linker="$host_os dld.sl" |
| 19982 | shlibpath_var=SHLIB_PATH |
| 19983 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 19984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19985 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19986 | ;; |
| 19987 | esac |
| 19988 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 19989 | postinstall_cmds='chmod 555 $lib' |
| 19990 | ;; |
| 19991 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19992 | interix3*) |
| 19993 | version_type=linux |
| 19994 | need_lib_prefix=no |
| 19995 | need_version=no |
| 19996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19997 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19998 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 19999 | shlibpath_var=LD_LIBRARY_PATH |
| 20000 | shlibpath_overrides_runpath=no |
| 20001 | hardcode_into_libs=yes |
| 20002 | ;; |
| 20003 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20004 | irix5* | irix6* | nonstopux*) |
| 20005 | case $host_os in |
| 20006 | nonstopux*) version_type=nonstopux ;; |
| 20007 | *) |
| 20008 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20009 | version_type=linux |
| 20010 | else |
| 20011 | version_type=irix |
| 20012 | fi ;; |
| 20013 | esac |
| 20014 | need_lib_prefix=no |
| 20015 | need_version=no |
| 20016 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20018 | case $host_os in |
| 20019 | irix5* | nonstopux*) |
| 20020 | libsuff= shlibsuff= |
| 20021 | ;; |
| 20022 | *) |
| 20023 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20024 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20025 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20026 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20027 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20028 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20029 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20030 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20031 | esac |
| 20032 | ;; |
| 20033 | esac |
| 20034 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20035 | shlibpath_overrides_runpath=no |
| 20036 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20037 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20038 | hardcode_into_libs=yes |
| 20039 | ;; |
| 20040 | |
| 20041 | # No shared lib support for Linux oldld, aout, or coff. |
| 20042 | linux*oldld* | linux*aout* | linux*coff*) |
| 20043 | dynamic_linker=no |
| 20044 | ;; |
| 20045 | |
| 20046 | # This must be Linux ELF. |
| 20047 | linux*) |
| 20048 | version_type=linux |
| 20049 | need_lib_prefix=no |
| 20050 | need_version=no |
| 20051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20052 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20053 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20054 | shlibpath_var=LD_LIBRARY_PATH |
| 20055 | shlibpath_overrides_runpath=no |
| 20056 | # This implies no fast_install, which is unacceptable. |
| 20057 | # Some rework will be needed to allow for fast_install |
| 20058 | # before this can be enabled. |
| 20059 | hardcode_into_libs=yes |
| 20060 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20061 | # Append ld.so.conf contents to the search path |
| 20062 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20063 | 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] | 20064 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20065 | fi |
| 20066 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20067 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20068 | # powerpc, because MkLinux only supported shared libraries with the |
| 20069 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20070 | # most powerpc-linux boxes support dynamic linking these days and |
| 20071 | # people can always --disable-shared, the test was removed, and we |
| 20072 | # assume the GNU/Linux dynamic linker is in use. |
| 20073 | dynamic_linker='GNU/Linux ld.so' |
| 20074 | ;; |
| 20075 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20076 | knetbsd*-gnu) |
| 20077 | version_type=linux |
| 20078 | need_lib_prefix=no |
| 20079 | need_version=no |
| 20080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20081 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20082 | shlibpath_var=LD_LIBRARY_PATH |
| 20083 | shlibpath_overrides_runpath=no |
| 20084 | hardcode_into_libs=yes |
| 20085 | dynamic_linker='GNU ld.so' |
| 20086 | ;; |
| 20087 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20088 | netbsd*) |
| 20089 | version_type=sunos |
| 20090 | need_lib_prefix=no |
| 20091 | need_version=no |
| 20092 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20094 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20095 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20096 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20097 | 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] | 20098 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20099 | dynamic_linker='NetBSD ld.elf_so' |
| 20100 | fi |
| 20101 | shlibpath_var=LD_LIBRARY_PATH |
| 20102 | shlibpath_overrides_runpath=yes |
| 20103 | hardcode_into_libs=yes |
| 20104 | ;; |
| 20105 | |
| 20106 | newsos6) |
| 20107 | version_type=linux |
| 20108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20109 | shlibpath_var=LD_LIBRARY_PATH |
| 20110 | shlibpath_overrides_runpath=yes |
| 20111 | ;; |
| 20112 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20113 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20114 | version_type=linux |
| 20115 | need_lib_prefix=no |
| 20116 | need_version=no |
| 20117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20118 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20119 | shlibpath_var=LD_LIBRARY_PATH |
| 20120 | shlibpath_overrides_runpath=yes |
| 20121 | ;; |
| 20122 | |
| 20123 | openbsd*) |
| 20124 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20125 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20126 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20127 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20128 | case $host_os in |
| 20129 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20130 | *) need_version=no ;; |
| 20131 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20133 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20134 | shlibpath_var=LD_LIBRARY_PATH |
| 20135 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20136 | case $host_os in |
| 20137 | openbsd2.[89] | openbsd2.[89].*) |
| 20138 | shlibpath_overrides_runpath=no |
| 20139 | ;; |
| 20140 | *) |
| 20141 | shlibpath_overrides_runpath=yes |
| 20142 | ;; |
| 20143 | esac |
| 20144 | else |
| 20145 | shlibpath_overrides_runpath=yes |
| 20146 | fi |
| 20147 | ;; |
| 20148 | |
| 20149 | os2*) |
| 20150 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20151 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20152 | need_lib_prefix=no |
| 20153 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20154 | dynamic_linker='OS/2 ld.exe' |
| 20155 | shlibpath_var=LIBPATH |
| 20156 | ;; |
| 20157 | |
| 20158 | osf3* | osf4* | osf5*) |
| 20159 | version_type=osf |
| 20160 | need_lib_prefix=no |
| 20161 | need_version=no |
| 20162 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20164 | shlibpath_var=LD_LIBRARY_PATH |
| 20165 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20166 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20167 | ;; |
| 20168 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20169 | solaris*) |
| 20170 | version_type=linux |
| 20171 | need_lib_prefix=no |
| 20172 | need_version=no |
| 20173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20174 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20175 | shlibpath_var=LD_LIBRARY_PATH |
| 20176 | shlibpath_overrides_runpath=yes |
| 20177 | hardcode_into_libs=yes |
| 20178 | # ldd complains unless libraries are executable |
| 20179 | postinstall_cmds='chmod +x $lib' |
| 20180 | ;; |
| 20181 | |
| 20182 | sunos4*) |
| 20183 | version_type=sunos |
| 20184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20185 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20186 | shlibpath_var=LD_LIBRARY_PATH |
| 20187 | shlibpath_overrides_runpath=yes |
| 20188 | if test "$with_gnu_ld" = yes; then |
| 20189 | need_lib_prefix=no |
| 20190 | fi |
| 20191 | need_version=yes |
| 20192 | ;; |
| 20193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20194 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20195 | version_type=linux |
| 20196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20197 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20198 | shlibpath_var=LD_LIBRARY_PATH |
| 20199 | case $host_vendor in |
| 20200 | sni) |
| 20201 | shlibpath_overrides_runpath=no |
| 20202 | need_lib_prefix=no |
| 20203 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20204 | runpath_var=LD_RUN_PATH |
| 20205 | ;; |
| 20206 | siemens) |
| 20207 | need_lib_prefix=no |
| 20208 | ;; |
| 20209 | motorola) |
| 20210 | need_lib_prefix=no |
| 20211 | need_version=no |
| 20212 | shlibpath_overrides_runpath=no |
| 20213 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20214 | ;; |
| 20215 | esac |
| 20216 | ;; |
| 20217 | |
| 20218 | sysv4*MP*) |
| 20219 | if test -d /usr/nec ;then |
| 20220 | version_type=linux |
| 20221 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20222 | soname_spec='$libname${shared_ext}.$major' |
| 20223 | shlibpath_var=LD_LIBRARY_PATH |
| 20224 | fi |
| 20225 | ;; |
| 20226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20227 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20228 | version_type=freebsd-elf |
| 20229 | need_lib_prefix=no |
| 20230 | need_version=no |
| 20231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20232 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20233 | shlibpath_var=LD_LIBRARY_PATH |
| 20234 | hardcode_into_libs=yes |
| 20235 | if test "$with_gnu_ld" = yes; then |
| 20236 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20237 | shlibpath_overrides_runpath=no |
| 20238 | else |
| 20239 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20240 | shlibpath_overrides_runpath=yes |
| 20241 | case $host_os in |
| 20242 | sco3.2v5*) |
| 20243 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20244 | ;; |
| 20245 | esac |
| 20246 | fi |
| 20247 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20248 | ;; |
| 20249 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20250 | uts4*) |
| 20251 | version_type=linux |
| 20252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20253 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20254 | shlibpath_var=LD_LIBRARY_PATH |
| 20255 | ;; |
| 20256 | |
| 20257 | *) |
| 20258 | dynamic_linker=no |
| 20259 | ;; |
| 20260 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20261 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20262 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20263 | test "$dynamic_linker" = no && can_build_shared=no |
| 20264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20265 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20266 | if test "$GCC" = yes; then |
| 20267 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20268 | fi |
| 20269 | |
| 20270 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20271 | 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] | 20272 | hardcode_action_CXX= |
| 20273 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20274 | test -n "$runpath_var_CXX" || \ |
| 20275 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20276 | |
| 20277 | # We can hardcode non-existant directories. |
| 20278 | if test "$hardcode_direct_CXX" != no && |
| 20279 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20280 | # have to relink, otherwise we might link with an installed library |
| 20281 | # when we should be linking with a yet-to-be-installed one |
| 20282 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20283 | test "$hardcode_minus_L_CXX" != no; then |
| 20284 | # Linking always hardcodes the temporary library directory. |
| 20285 | hardcode_action_CXX=relink |
| 20286 | else |
| 20287 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20288 | hardcode_action_CXX=immediate |
| 20289 | fi |
| 20290 | else |
| 20291 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20292 | # directories. |
| 20293 | hardcode_action_CXX=unsupported |
| 20294 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20295 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20296 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20297 | |
| 20298 | if test "$hardcode_action_CXX" = relink; then |
| 20299 | # Fast installation is not supported |
| 20300 | enable_fast_install=no |
| 20301 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20302 | test "$enable_shared" = no; then |
| 20303 | # Fast installation is not necessary |
| 20304 | enable_fast_install=needless |
| 20305 | fi |
| 20306 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20307 | |
| 20308 | # The else clause should only fire when bootstrapping the |
| 20309 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20310 | # with your package, and you will get complaints that there are |
| 20311 | # no rules to generate ltmain.sh. |
| 20312 | if test -f "$ltmain"; then |
| 20313 | # See if we are running on zsh, and set the options which allow our commands through |
| 20314 | # without removal of \ escapes. |
| 20315 | if test -n "${ZSH_VERSION+set}" ; then |
| 20316 | setopt NO_GLOB_SUBST |
| 20317 | fi |
| 20318 | # Now quote all the things that may contain metacharacters while being |
| 20319 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20320 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20321 | 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] | 20322 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20323 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20324 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20325 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20326 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20327 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20328 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20329 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20330 | compiler_CXX \ |
| 20331 | CC_CXX \ |
| 20332 | LD_CXX \ |
| 20333 | lt_prog_compiler_wl_CXX \ |
| 20334 | lt_prog_compiler_pic_CXX \ |
| 20335 | lt_prog_compiler_static_CXX \ |
| 20336 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20337 | export_dynamic_flag_spec_CXX \ |
| 20338 | thread_safe_flag_spec_CXX \ |
| 20339 | whole_archive_flag_spec_CXX \ |
| 20340 | enable_shared_with_static_runtimes_CXX \ |
| 20341 | old_archive_cmds_CXX \ |
| 20342 | old_archive_from_new_cmds_CXX \ |
| 20343 | predep_objects_CXX \ |
| 20344 | postdep_objects_CXX \ |
| 20345 | predeps_CXX \ |
| 20346 | postdeps_CXX \ |
| 20347 | compiler_lib_search_path_CXX \ |
| 20348 | archive_cmds_CXX \ |
| 20349 | archive_expsym_cmds_CXX \ |
| 20350 | postinstall_cmds_CXX \ |
| 20351 | postuninstall_cmds_CXX \ |
| 20352 | old_archive_from_expsyms_cmds_CXX \ |
| 20353 | allow_undefined_flag_CXX \ |
| 20354 | no_undefined_flag_CXX \ |
| 20355 | export_symbols_cmds_CXX \ |
| 20356 | hardcode_libdir_flag_spec_CXX \ |
| 20357 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20358 | hardcode_libdir_separator_CXX \ |
| 20359 | hardcode_automatic_CXX \ |
| 20360 | module_cmds_CXX \ |
| 20361 | module_expsym_cmds_CXX \ |
| 20362 | lt_cv_prog_compiler_c_o_CXX \ |
| 20363 | exclude_expsyms_CXX \ |
| 20364 | include_expsyms_CXX; do |
| 20365 | |
| 20366 | case $var in |
| 20367 | old_archive_cmds_CXX | \ |
| 20368 | old_archive_from_new_cmds_CXX | \ |
| 20369 | archive_cmds_CXX | \ |
| 20370 | archive_expsym_cmds_CXX | \ |
| 20371 | module_cmds_CXX | \ |
| 20372 | module_expsym_cmds_CXX | \ |
| 20373 | old_archive_from_expsyms_cmds_CXX | \ |
| 20374 | export_symbols_cmds_CXX | \ |
| 20375 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20376 | postinstall_cmds | postuninstall_cmds | \ |
| 20377 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20378 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20379 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20380 | 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] | 20381 | ;; |
| 20382 | *) |
| 20383 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20384 | ;; |
| 20385 | esac |
| 20386 | done |
| 20387 | |
| 20388 | case $lt_echo in |
| 20389 | *'\$0 --fallback-echo"') |
| 20390 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20391 | ;; |
| 20392 | esac |
| 20393 | |
| 20394 | cfgfile="$ofile" |
| 20395 | |
| 20396 | cat <<__EOF__ >> "$cfgfile" |
| 20397 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20398 | |
| 20399 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20400 | |
| 20401 | # Shell to use when invoking shell scripts. |
| 20402 | SHELL=$lt_SHELL |
| 20403 | |
| 20404 | # Whether or not to build shared libraries. |
| 20405 | build_libtool_libs=$enable_shared |
| 20406 | |
| 20407 | # Whether or not to build static libraries. |
| 20408 | build_old_libs=$enable_static |
| 20409 | |
| 20410 | # Whether or not to add -lc for building shared libraries. |
| 20411 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20412 | |
| 20413 | # Whether or not to disallow shared libs when runtime libs are static |
| 20414 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20415 | |
| 20416 | # Whether or not to optimize for fast installation. |
| 20417 | fast_install=$enable_fast_install |
| 20418 | |
| 20419 | # The host system. |
| 20420 | host_alias=$host_alias |
| 20421 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20422 | host_os=$host_os |
| 20423 | |
| 20424 | # The build system. |
| 20425 | build_alias=$build_alias |
| 20426 | build=$build |
| 20427 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20428 | |
| 20429 | # An echo program that does not interpret backslashes. |
| 20430 | echo=$lt_echo |
| 20431 | |
| 20432 | # The archiver. |
| 20433 | AR=$lt_AR |
| 20434 | AR_FLAGS=$lt_AR_FLAGS |
| 20435 | |
| 20436 | # A C compiler. |
| 20437 | LTCC=$lt_LTCC |
| 20438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20439 | # LTCC compiler flags. |
| 20440 | LTCFLAGS=$lt_LTCFLAGS |
| 20441 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20442 | # A language-specific compiler. |
| 20443 | CC=$lt_compiler_CXX |
| 20444 | |
| 20445 | # Is the compiler the GNU C compiler? |
| 20446 | with_gcc=$GCC_CXX |
| 20447 | |
| 20448 | # An ERE matcher. |
| 20449 | EGREP=$lt_EGREP |
| 20450 | |
| 20451 | # The linker used to build libraries. |
| 20452 | LD=$lt_LD_CXX |
| 20453 | |
| 20454 | # Whether we need hard or soft links. |
| 20455 | LN_S=$lt_LN_S |
| 20456 | |
| 20457 | # A BSD-compatible nm program. |
| 20458 | NM=$lt_NM |
| 20459 | |
| 20460 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20461 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20462 | |
| 20463 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20464 | MAGIC_CMD=$MAGIC_CMD |
| 20465 | |
| 20466 | # Used on cygwin: DLL creation program. |
| 20467 | DLLTOOL="$DLLTOOL" |
| 20468 | |
| 20469 | # Used on cygwin: object dumper. |
| 20470 | OBJDUMP="$OBJDUMP" |
| 20471 | |
| 20472 | # Used on cygwin: assembler. |
| 20473 | AS="$AS" |
| 20474 | |
| 20475 | # The name of the directory that contains temporary libtool files. |
| 20476 | objdir=$objdir |
| 20477 | |
| 20478 | # How to create reloadable object files. |
| 20479 | reload_flag=$lt_reload_flag |
| 20480 | reload_cmds=$lt_reload_cmds |
| 20481 | |
| 20482 | # How to pass a linker flag through the compiler. |
| 20483 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20484 | |
| 20485 | # Object file suffix (normally "o"). |
| 20486 | objext="$ac_objext" |
| 20487 | |
| 20488 | # Old archive suffix (normally "a"). |
| 20489 | libext="$libext" |
| 20490 | |
| 20491 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20492 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20493 | |
| 20494 | # Executable file suffix (normally ""). |
| 20495 | exeext="$exeext" |
| 20496 | |
| 20497 | # Additional compiler flags for building library objects. |
| 20498 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20499 | pic_mode=$pic_mode |
| 20500 | |
| 20501 | # What is the maximum length of a command? |
| 20502 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20503 | |
| 20504 | # Does compiler simultaneously support -c and -o options? |
| 20505 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20507 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20508 | need_locks=$lt_need_locks |
| 20509 | |
| 20510 | # Do we need the lib prefix for modules? |
| 20511 | need_lib_prefix=$need_lib_prefix |
| 20512 | |
| 20513 | # Do we need a version for libraries? |
| 20514 | need_version=$need_version |
| 20515 | |
| 20516 | # Whether dlopen is supported. |
| 20517 | dlopen_support=$enable_dlopen |
| 20518 | |
| 20519 | # Whether dlopen of programs is supported. |
| 20520 | dlopen_self=$enable_dlopen_self |
| 20521 | |
| 20522 | # Whether dlopen of statically linked programs is supported. |
| 20523 | dlopen_self_static=$enable_dlopen_self_static |
| 20524 | |
| 20525 | # Compiler flag to prevent dynamic linking. |
| 20526 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20527 | |
| 20528 | # Compiler flag to turn off builtin functions. |
| 20529 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20530 | |
| 20531 | # Compiler flag to allow reflexive dlopens. |
| 20532 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20533 | |
| 20534 | # Compiler flag to generate shared objects directly from archives. |
| 20535 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20536 | |
| 20537 | # Compiler flag to generate thread-safe objects. |
| 20538 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 20539 | |
| 20540 | # Library versioning type. |
| 20541 | version_type=$version_type |
| 20542 | |
| 20543 | # Format of library name prefix. |
| 20544 | libname_spec=$lt_libname_spec |
| 20545 | |
| 20546 | # List of archive names. First name is the real one, the rest are links. |
| 20547 | # The last name is the one that the linker finds with -lNAME. |
| 20548 | library_names_spec=$lt_library_names_spec |
| 20549 | |
| 20550 | # The coded name of the library, if different from the real name. |
| 20551 | soname_spec=$lt_soname_spec |
| 20552 | |
| 20553 | # Commands used to build and install an old-style archive. |
| 20554 | RANLIB=$lt_RANLIB |
| 20555 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20556 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20557 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20558 | |
| 20559 | # Create an old-style archive from a shared archive. |
| 20560 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20561 | |
| 20562 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20563 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20564 | |
| 20565 | # Commands used to build and install a shared archive. |
| 20566 | archive_cmds=$lt_archive_cmds_CXX |
| 20567 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20568 | postinstall_cmds=$lt_postinstall_cmds |
| 20569 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20570 | |
| 20571 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20572 | module_cmds=$lt_module_cmds_CXX |
| 20573 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20574 | |
| 20575 | # Commands to strip libraries. |
| 20576 | old_striplib=$lt_old_striplib |
| 20577 | striplib=$lt_striplib |
| 20578 | |
| 20579 | # Dependencies to place before the objects being linked to create a |
| 20580 | # shared library. |
| 20581 | predep_objects=$lt_predep_objects_CXX |
| 20582 | |
| 20583 | # Dependencies to place after the objects being linked to create a |
| 20584 | # shared library. |
| 20585 | postdep_objects=$lt_postdep_objects_CXX |
| 20586 | |
| 20587 | # Dependencies to place before the objects being linked to create a |
| 20588 | # shared library. |
| 20589 | predeps=$lt_predeps_CXX |
| 20590 | |
| 20591 | # Dependencies to place after the objects being linked to create a |
| 20592 | # shared library. |
| 20593 | postdeps=$lt_postdeps_CXX |
| 20594 | |
| 20595 | # The library search path used internally by the compiler when linking |
| 20596 | # a shared library. |
| 20597 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20598 | |
| 20599 | # Method to check whether dependent libraries are shared objects. |
| 20600 | deplibs_check_method=$lt_deplibs_check_method |
| 20601 | |
| 20602 | # Command to use when deplibs_check_method == file_magic. |
| 20603 | file_magic_cmd=$lt_file_magic_cmd |
| 20604 | |
| 20605 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20606 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20607 | |
| 20608 | # Flag that forces no undefined symbols. |
| 20609 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20610 | |
| 20611 | # Commands used to finish a libtool library installation in a directory. |
| 20612 | finish_cmds=$lt_finish_cmds |
| 20613 | |
| 20614 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20615 | finish_eval=$lt_finish_eval |
| 20616 | |
| 20617 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20618 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20619 | |
| 20620 | # Transform the output of nm in a proper C declaration |
| 20621 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20622 | |
| 20623 | # Transform the output of nm in a C name address pair |
| 20624 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20625 | |
| 20626 | # This is the shared library runtime path variable. |
| 20627 | runpath_var=$runpath_var |
| 20628 | |
| 20629 | # This is the shared library path variable. |
| 20630 | shlibpath_var=$shlibpath_var |
| 20631 | |
| 20632 | # Is shlibpath searched before the hard-coded library search path? |
| 20633 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20634 | |
| 20635 | # How to hardcode a shared library path into an executable. |
| 20636 | hardcode_action=$hardcode_action_CXX |
| 20637 | |
| 20638 | # Whether we should hardcode library paths into libraries. |
| 20639 | hardcode_into_libs=$hardcode_into_libs |
| 20640 | |
| 20641 | # Flag to hardcode \$libdir into a binary during linking. |
| 20642 | # This must work even if \$libdir does not exist. |
| 20643 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20644 | |
| 20645 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20646 | # a binary during linking. This must work even if \$libdir does |
| 20647 | # not exist. |
| 20648 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 20649 | |
| 20650 | # Whether we need a single -rpath flag with a separated argument. |
| 20651 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20652 | |
| 20653 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20654 | # resulting binary. |
| 20655 | hardcode_direct=$hardcode_direct_CXX |
| 20656 | |
| 20657 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20658 | # resulting binary. |
| 20659 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20660 | |
| 20661 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20662 | # the resulting binary. |
| 20663 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20664 | |
| 20665 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20666 | # and all subsequent libraries and executables linked against it. |
| 20667 | hardcode_automatic=$hardcode_automatic_CXX |
| 20668 | |
| 20669 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20670 | # restored at relink time. |
| 20671 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20672 | |
| 20673 | # Whether libtool must link a program against all its dependency libraries. |
| 20674 | link_all_deplibs=$link_all_deplibs_CXX |
| 20675 | |
| 20676 | # Compile-time system search path for libraries |
| 20677 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20678 | |
| 20679 | # Run-time system search path for libraries |
| 20680 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20681 | |
| 20682 | # Fix the shell variable \$srcfile for the compiler. |
| 20683 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 20684 | |
| 20685 | # Set to yes if exported symbols are required. |
| 20686 | always_export_symbols=$always_export_symbols_CXX |
| 20687 | |
| 20688 | # The commands to list exported symbols. |
| 20689 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 20690 | |
| 20691 | # The commands to extract the exported symbol list from a shared archive. |
| 20692 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20693 | |
| 20694 | # Symbols that should not be listed in the preloaded symbols. |
| 20695 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 20696 | |
| 20697 | # Symbols that must always be exported. |
| 20698 | include_expsyms=$lt_include_expsyms_CXX |
| 20699 | |
| 20700 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20701 | |
| 20702 | __EOF__ |
| 20703 | |
| 20704 | |
| 20705 | else |
| 20706 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20707 | # `config.status --recheck' to rerun these tests and create the |
| 20708 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20709 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20710 | if test -f "$ltmain_in"; then |
| 20711 | test -f Makefile && make "$ltmain" |
| 20712 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20713 | fi |
| 20714 | |
| 20715 | |
| 20716 | ac_ext=c |
| 20717 | ac_cpp='$CPP $CPPFLAGS' |
| 20718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20721 | |
| 20722 | CC=$lt_save_CC |
| 20723 | LDCXX=$LD |
| 20724 | LD=$lt_save_LD |
| 20725 | GCC=$lt_save_GCC |
| 20726 | with_gnu_ldcxx=$with_gnu_ld |
| 20727 | with_gnu_ld=$lt_save_with_gnu_ld |
| 20728 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 20729 | lt_cv_path_LD=$lt_save_path_LD |
| 20730 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 20731 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 20732 | |
| 20733 | else |
| 20734 | tagname="" |
| 20735 | fi |
| 20736 | ;; |
| 20737 | |
| 20738 | F77) |
| 20739 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 20740 | |
| 20741 | ac_ext=f |
| 20742 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 20743 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20744 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 20745 | |
| 20746 | |
| 20747 | archive_cmds_need_lc_F77=no |
| 20748 | allow_undefined_flag_F77= |
| 20749 | always_export_symbols_F77=no |
| 20750 | archive_expsym_cmds_F77= |
| 20751 | export_dynamic_flag_spec_F77= |
| 20752 | hardcode_direct_F77=no |
| 20753 | hardcode_libdir_flag_spec_F77= |
| 20754 | hardcode_libdir_flag_spec_ld_F77= |
| 20755 | hardcode_libdir_separator_F77= |
| 20756 | hardcode_minus_L_F77=no |
| 20757 | hardcode_automatic_F77=no |
| 20758 | module_cmds_F77= |
| 20759 | module_expsym_cmds_F77= |
| 20760 | link_all_deplibs_F77=unknown |
| 20761 | old_archive_cmds_F77=$old_archive_cmds |
| 20762 | no_undefined_flag_F77= |
| 20763 | whole_archive_flag_spec_F77= |
| 20764 | enable_shared_with_static_runtimes_F77=no |
| 20765 | |
| 20766 | # Source file extension for f77 test sources. |
| 20767 | ac_ext=f |
| 20768 | |
| 20769 | # Object file extension for compiled f77 test sources. |
| 20770 | objext=o |
| 20771 | objext_F77=$objext |
| 20772 | |
| 20773 | # Code to be used in simple compile tests |
| 20774 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 20775 | |
| 20776 | # Code to be used in simple link tests |
| 20777 | lt_simple_link_test_code=" program t\n end\n" |
| 20778 | |
| 20779 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20780 | |
| 20781 | # If no C compiler was specified, use CC. |
| 20782 | LTCC=${LTCC-"$CC"} |
| 20783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20784 | # If no C compiler flags were specified, use CFLAGS. |
| 20785 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 20786 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20787 | # Allow CC to be a program name with arguments. |
| 20788 | compiler=$CC |
| 20789 | |
| 20790 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20791 | # save warnings/boilerplate of simple test code |
| 20792 | ac_outfile=conftest.$ac_objext |
| 20793 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 20794 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20795 | _lt_compiler_boilerplate=`cat conftest.err` |
| 20796 | $rm conftest* |
| 20797 | |
| 20798 | ac_outfile=conftest.$ac_objext |
| 20799 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 20800 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20801 | _lt_linker_boilerplate=`cat conftest.err` |
| 20802 | $rm conftest* |
| 20803 | |
| 20804 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20805 | # Allow CC to be a program name with arguments. |
| 20806 | lt_save_CC="$CC" |
| 20807 | CC=${F77-"f77"} |
| 20808 | compiler=$CC |
| 20809 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20810 | for cc_temp in $compiler""; do |
| 20811 | case $cc_temp in |
| 20812 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 20813 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 20814 | \-*) ;; |
| 20815 | *) break;; |
| 20816 | esac |
| 20817 | done |
| 20818 | 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] | 20819 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20821 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 20822 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 20823 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 20824 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 20825 | |
| 20826 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 20827 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20828 | test "$can_build_shared" = "no" && enable_shared=no |
| 20829 | |
| 20830 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 20831 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20832 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20833 | aix3*) |
| 20834 | test "$enable_shared" = yes && enable_static=no |
| 20835 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20836 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20837 | postinstall_cmds='$RANLIB $lib' |
| 20838 | fi |
| 20839 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20840 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20841 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 20842 | test "$enable_shared" = yes && enable_static=no |
| 20843 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20844 | ;; |
| 20845 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20846 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 20847 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20849 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 20850 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20851 | # Make sure either enable_shared or enable_static is yes. |
| 20852 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20853 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 20854 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20855 | |
| 20856 | GCC_F77="$G77" |
| 20857 | LD_F77="$LD" |
| 20858 | |
| 20859 | lt_prog_compiler_wl_F77= |
| 20860 | lt_prog_compiler_pic_F77= |
| 20861 | lt_prog_compiler_static_F77= |
| 20862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20863 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 20864 | 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] | 20865 | |
| 20866 | if test "$GCC" = yes; then |
| 20867 | lt_prog_compiler_wl_F77='-Wl,' |
| 20868 | lt_prog_compiler_static_F77='-static' |
| 20869 | |
| 20870 | case $host_os in |
| 20871 | aix*) |
| 20872 | # All AIX code is PIC. |
| 20873 | if test "$host_cpu" = ia64; then |
| 20874 | # AIX 5 now supports IA64 processor |
| 20875 | lt_prog_compiler_static_F77='-Bstatic' |
| 20876 | fi |
| 20877 | ;; |
| 20878 | |
| 20879 | amigaos*) |
| 20880 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 20881 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 20882 | # like `-m68040'. |
| 20883 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 20884 | ;; |
| 20885 | |
| 20886 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20887 | # PIC is the default for these OSes. |
| 20888 | ;; |
| 20889 | |
| 20890 | mingw* | pw32* | os2*) |
| 20891 | # This hack is so that the source file can tell whether it is being |
| 20892 | # built for inclusion in a dll (and should export symbols for example). |
| 20893 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 20894 | ;; |
| 20895 | |
| 20896 | darwin* | rhapsody*) |
| 20897 | # PIC is the default on this platform |
| 20898 | # Common symbols not allowed in MH_DYLIB files |
| 20899 | lt_prog_compiler_pic_F77='-fno-common' |
| 20900 | ;; |
| 20901 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20902 | interix3*) |
| 20903 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20904 | # Instead, we relocate shared libraries at runtime. |
| 20905 | ;; |
| 20906 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20907 | msdosdjgpp*) |
| 20908 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 20909 | # on systems that don't support them. |
| 20910 | lt_prog_compiler_can_build_shared_F77=no |
| 20911 | enable_shared=no |
| 20912 | ;; |
| 20913 | |
| 20914 | sysv4*MP*) |
| 20915 | if test -d /usr/nec; then |
| 20916 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 20917 | fi |
| 20918 | ;; |
| 20919 | |
| 20920 | hpux*) |
| 20921 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20922 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20923 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20924 | hppa*64*|ia64*) |
| 20925 | # +Z the default |
| 20926 | ;; |
| 20927 | *) |
| 20928 | lt_prog_compiler_pic_F77='-fPIC' |
| 20929 | ;; |
| 20930 | esac |
| 20931 | ;; |
| 20932 | |
| 20933 | *) |
| 20934 | lt_prog_compiler_pic_F77='-fPIC' |
| 20935 | ;; |
| 20936 | esac |
| 20937 | else |
| 20938 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 20939 | case $host_os in |
| 20940 | aix*) |
| 20941 | lt_prog_compiler_wl_F77='-Wl,' |
| 20942 | if test "$host_cpu" = ia64; then |
| 20943 | # AIX 5 now supports IA64 processor |
| 20944 | lt_prog_compiler_static_F77='-Bstatic' |
| 20945 | else |
| 20946 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 20947 | fi |
| 20948 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20949 | darwin*) |
| 20950 | # PIC is the default on this platform |
| 20951 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20952 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20953 | xlc*) |
| 20954 | lt_prog_compiler_pic_F77='-qnocommon' |
| 20955 | lt_prog_compiler_wl_F77='-Wl,' |
| 20956 | ;; |
| 20957 | esac |
| 20958 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20959 | |
| 20960 | mingw* | pw32* | os2*) |
| 20961 | # This hack is so that the source file can tell whether it is being |
| 20962 | # built for inclusion in a dll (and should export symbols for example). |
| 20963 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 20964 | ;; |
| 20965 | |
| 20966 | hpux9* | hpux10* | hpux11*) |
| 20967 | lt_prog_compiler_wl_F77='-Wl,' |
| 20968 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20969 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20970 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20971 | hppa*64*|ia64*) |
| 20972 | # +Z the default |
| 20973 | ;; |
| 20974 | *) |
| 20975 | lt_prog_compiler_pic_F77='+Z' |
| 20976 | ;; |
| 20977 | esac |
| 20978 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 20979 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 20980 | ;; |
| 20981 | |
| 20982 | irix5* | irix6* | nonstopux*) |
| 20983 | lt_prog_compiler_wl_F77='-Wl,' |
| 20984 | # PIC (with -KPIC) is the default. |
| 20985 | lt_prog_compiler_static_F77='-non_shared' |
| 20986 | ;; |
| 20987 | |
| 20988 | newsos6) |
| 20989 | lt_prog_compiler_pic_F77='-KPIC' |
| 20990 | lt_prog_compiler_static_F77='-Bstatic' |
| 20991 | ;; |
| 20992 | |
| 20993 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20994 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20995 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20996 | lt_prog_compiler_wl_F77='-Wl,' |
| 20997 | lt_prog_compiler_pic_F77='-KPIC' |
| 20998 | lt_prog_compiler_static_F77='-static' |
| 20999 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21000 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21001 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21002 | # which looks to be a dead project) |
| 21003 | lt_prog_compiler_wl_F77='-Wl,' |
| 21004 | lt_prog_compiler_pic_F77='-fpic' |
| 21005 | lt_prog_compiler_static_F77='-Bstatic' |
| 21006 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21007 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21008 | lt_prog_compiler_wl_F77='-Wl,' |
| 21009 | # All Alpha code is PIC. |
| 21010 | lt_prog_compiler_static_F77='-non_shared' |
| 21011 | ;; |
| 21012 | esac |
| 21013 | ;; |
| 21014 | |
| 21015 | osf3* | osf4* | osf5*) |
| 21016 | lt_prog_compiler_wl_F77='-Wl,' |
| 21017 | # All OSF/1 code is PIC. |
| 21018 | lt_prog_compiler_static_F77='-non_shared' |
| 21019 | ;; |
| 21020 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21021 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21022 | lt_prog_compiler_pic_F77='-KPIC' |
| 21023 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21024 | case $cc_basename in |
| 21025 | f77* | f90* | f95*) |
| 21026 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21027 | *) |
| 21028 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21029 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21030 | ;; |
| 21031 | |
| 21032 | sunos4*) |
| 21033 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21034 | lt_prog_compiler_pic_F77='-PIC' |
| 21035 | lt_prog_compiler_static_F77='-Bstatic' |
| 21036 | ;; |
| 21037 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21038 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21039 | lt_prog_compiler_wl_F77='-Wl,' |
| 21040 | lt_prog_compiler_pic_F77='-KPIC' |
| 21041 | lt_prog_compiler_static_F77='-Bstatic' |
| 21042 | ;; |
| 21043 | |
| 21044 | sysv4*MP*) |
| 21045 | if test -d /usr/nec ;then |
| 21046 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21047 | lt_prog_compiler_static_F77='-Bstatic' |
| 21048 | fi |
| 21049 | ;; |
| 21050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21051 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21052 | lt_prog_compiler_wl_F77='-Wl,' |
| 21053 | lt_prog_compiler_pic_F77='-KPIC' |
| 21054 | lt_prog_compiler_static_F77='-Bstatic' |
| 21055 | ;; |
| 21056 | |
| 21057 | unicos*) |
| 21058 | lt_prog_compiler_wl_F77='-Wl,' |
| 21059 | lt_prog_compiler_can_build_shared_F77=no |
| 21060 | ;; |
| 21061 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21062 | uts4*) |
| 21063 | lt_prog_compiler_pic_F77='-pic' |
| 21064 | lt_prog_compiler_static_F77='-Bstatic' |
| 21065 | ;; |
| 21066 | |
| 21067 | *) |
| 21068 | lt_prog_compiler_can_build_shared_F77=no |
| 21069 | ;; |
| 21070 | esac |
| 21071 | fi |
| 21072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21073 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21074 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21075 | |
| 21076 | # |
| 21077 | # Check to make sure the PIC flag actually works. |
| 21078 | # |
| 21079 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21081 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21082 | 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] | 21083 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21085 | else |
| 21086 | lt_prog_compiler_pic_works_F77=no |
| 21087 | ac_outfile=conftest.$ac_objext |
| 21088 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21089 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21090 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21091 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21092 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21093 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21094 | # The option is referenced via a variable to avoid confusing sed. |
| 21095 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21096 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21097 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21098 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 21099 | (eval echo "\"\$as_me:21099: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21100 | (eval "$lt_compile" 2>conftest.err) |
| 21101 | ac_status=$? |
| 21102 | cat conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 21103 | echo "$as_me:21103: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21104 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21105 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21106 | # So say no if there are warnings other than the usual output. |
| 21107 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21108 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21109 | 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] | 21110 | lt_prog_compiler_pic_works_F77=yes |
| 21111 | fi |
| 21112 | fi |
| 21113 | $rm conftest* |
| 21114 | |
| 21115 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21116 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21117 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21118 | |
| 21119 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21120 | case $lt_prog_compiler_pic_F77 in |
| 21121 | "" | " "*) ;; |
| 21122 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21123 | esac |
| 21124 | else |
| 21125 | lt_prog_compiler_pic_F77= |
| 21126 | lt_prog_compiler_can_build_shared_F77=no |
| 21127 | fi |
| 21128 | |
| 21129 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21130 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21131 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21132 | *djgpp*) |
| 21133 | lt_prog_compiler_pic_F77= |
| 21134 | ;; |
| 21135 | *) |
| 21136 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21137 | ;; |
| 21138 | esac |
| 21139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21140 | # |
| 21141 | # Check to make sure the static flag actually works. |
| 21142 | # |
| 21143 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21144 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21145 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21146 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21148 | else |
| 21149 | lt_prog_compiler_static_works_F77=no |
| 21150 | save_LDFLAGS="$LDFLAGS" |
| 21151 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21152 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21153 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21154 | # The linker can only warn and ignore the option if not recognized |
| 21155 | # So say no if there are warnings |
| 21156 | if test -s conftest.err; then |
| 21157 | # Append any errors to the config.log. |
| 21158 | cat conftest.err 1>&5 |
| 21159 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21160 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21161 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21162 | lt_prog_compiler_static_works_F77=yes |
| 21163 | fi |
| 21164 | else |
| 21165 | lt_prog_compiler_static_works_F77=yes |
| 21166 | fi |
| 21167 | fi |
| 21168 | $rm conftest* |
| 21169 | LDFLAGS="$save_LDFLAGS" |
| 21170 | |
| 21171 | fi |
| 21172 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21173 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21174 | |
| 21175 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21176 | : |
| 21177 | else |
| 21178 | lt_prog_compiler_static_F77= |
| 21179 | fi |
| 21180 | |
| 21181 | |
| 21182 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21183 | 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] | 21184 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21186 | else |
| 21187 | lt_cv_prog_compiler_c_o_F77=no |
| 21188 | $rm -r conftest 2>/dev/null |
| 21189 | mkdir conftest |
| 21190 | cd conftest |
| 21191 | mkdir out |
| 21192 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21193 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21194 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21195 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21196 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21197 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21198 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21199 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21200 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21201 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21202 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 21203 | (eval echo "\"\$as_me:21203: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21204 | (eval "$lt_compile" 2>out/conftest.err) |
| 21205 | ac_status=$? |
| 21206 | cat out/conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 21207 | echo "$as_me:21207: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21208 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21209 | then |
| 21210 | # The compiler can only warn and ignore the option if not recognized |
| 21211 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21212 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21213 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21214 | 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] | 21215 | lt_cv_prog_compiler_c_o_F77=yes |
| 21216 | fi |
| 21217 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21218 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21219 | $rm conftest* |
| 21220 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21221 | # template instantiation |
| 21222 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21223 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21224 | cd .. |
| 21225 | rmdir conftest |
| 21226 | $rm conftest* |
| 21227 | |
| 21228 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21229 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21230 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21231 | |
| 21232 | |
| 21233 | hard_links="nottested" |
| 21234 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21235 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21236 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21237 | 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] | 21238 | hard_links=yes |
| 21239 | $rm conftest* |
| 21240 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21241 | touch conftest.a |
| 21242 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21243 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21244 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21245 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21246 | if test "$hard_links" = no; then |
| 21247 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21248 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21249 | need_locks=warn |
| 21250 | fi |
| 21251 | else |
| 21252 | need_locks=no |
| 21253 | fi |
| 21254 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21255 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21256 | 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] | 21257 | |
| 21258 | runpath_var= |
| 21259 | allow_undefined_flag_F77= |
| 21260 | enable_shared_with_static_runtimes_F77=no |
| 21261 | archive_cmds_F77= |
| 21262 | archive_expsym_cmds_F77= |
| 21263 | old_archive_From_new_cmds_F77= |
| 21264 | old_archive_from_expsyms_cmds_F77= |
| 21265 | export_dynamic_flag_spec_F77= |
| 21266 | whole_archive_flag_spec_F77= |
| 21267 | thread_safe_flag_spec_F77= |
| 21268 | hardcode_libdir_flag_spec_F77= |
| 21269 | hardcode_libdir_flag_spec_ld_F77= |
| 21270 | hardcode_libdir_separator_F77= |
| 21271 | hardcode_direct_F77=no |
| 21272 | hardcode_minus_L_F77=no |
| 21273 | hardcode_shlibpath_var_F77=unsupported |
| 21274 | link_all_deplibs_F77=unknown |
| 21275 | hardcode_automatic_F77=no |
| 21276 | module_cmds_F77= |
| 21277 | module_expsym_cmds_F77= |
| 21278 | always_export_symbols_F77=no |
| 21279 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21280 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21281 | # included in the symbol list |
| 21282 | include_expsyms_F77= |
| 21283 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21284 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21285 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21286 | # as well as any symbol that contains `d'. |
| 21287 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21288 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21289 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21290 | # the symbol is explicitly referenced. Since portable code cannot |
| 21291 | # rely on this symbol name, it's probably fine to never include it in |
| 21292 | # preloaded symbol tables. |
| 21293 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21294 | # Just being paranoid about ensuring that cc_basename is set. |
| 21295 | for cc_temp in $compiler""; do |
| 21296 | case $cc_temp in |
| 21297 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21298 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21299 | \-*) ;; |
| 21300 | *) break;; |
| 21301 | esac |
| 21302 | done |
| 21303 | 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] | 21304 | |
| 21305 | case $host_os in |
| 21306 | cygwin* | mingw* | pw32*) |
| 21307 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21308 | # When not using gcc, we currently assume that we are using |
| 21309 | # Microsoft Visual C++. |
| 21310 | if test "$GCC" != yes; then |
| 21311 | with_gnu_ld=no |
| 21312 | fi |
| 21313 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21314 | interix*) |
| 21315 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21316 | with_gnu_ld=yes |
| 21317 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21318 | openbsd*) |
| 21319 | with_gnu_ld=no |
| 21320 | ;; |
| 21321 | esac |
| 21322 | |
| 21323 | ld_shlibs_F77=yes |
| 21324 | if test "$with_gnu_ld" = yes; then |
| 21325 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21326 | wlarc='${wl}' |
| 21327 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21328 | # Set some defaults for GNU ld with shared library support. These |
| 21329 | # are reset later if shared libraries are not supported. Putting them |
| 21330 | # here allows them to be overridden if necessary. |
| 21331 | runpath_var=LD_RUN_PATH |
| 21332 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21333 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21334 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21335 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21336 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21337 | else |
| 21338 | whole_archive_flag_spec_F77= |
| 21339 | fi |
| 21340 | supports_anon_versioning=no |
| 21341 | case `$LD -v 2>/dev/null` in |
| 21342 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21343 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21344 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21345 | *\ 2.11.*) ;; # other 2.11 versions |
| 21346 | *) supports_anon_versioning=yes ;; |
| 21347 | esac |
| 21348 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21349 | # See if GNU ld supports shared libraries. |
| 21350 | case $host_os in |
| 21351 | aix3* | aix4* | aix5*) |
| 21352 | # On AIX/PPC, the GNU linker is very broken |
| 21353 | if test "$host_cpu" != ia64; then |
| 21354 | ld_shlibs_F77=no |
| 21355 | cat <<EOF 1>&2 |
| 21356 | |
| 21357 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21358 | *** to be unable to reliably create shared libraries on AIX. |
| 21359 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21360 | *** really care for shared libraries, you may want to modify your PATH |
| 21361 | *** so that a non-GNU linker is found, and then restart. |
| 21362 | |
| 21363 | EOF |
| 21364 | fi |
| 21365 | ;; |
| 21366 | |
| 21367 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21368 | 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] | 21369 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21370 | hardcode_minus_L_F77=yes |
| 21371 | |
| 21372 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21373 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21374 | # to version 4, is to share data among multiple programs linked |
| 21375 | # with the same dynamic library. Since this doesn't match the |
| 21376 | # behavior of shared libraries on other platforms, we can't use |
| 21377 | # them. |
| 21378 | ld_shlibs_F77=no |
| 21379 | ;; |
| 21380 | |
| 21381 | beos*) |
| 21382 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21383 | allow_undefined_flag_F77=unsupported |
| 21384 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21385 | # support --undefined. This deserves some investigation. FIXME |
| 21386 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21387 | else |
| 21388 | ld_shlibs_F77=no |
| 21389 | fi |
| 21390 | ;; |
| 21391 | |
| 21392 | cygwin* | mingw* | pw32*) |
| 21393 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21394 | # as there is no search path for DLLs. |
| 21395 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21396 | allow_undefined_flag_F77=unsupported |
| 21397 | always_export_symbols_F77=no |
| 21398 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21399 | 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] | 21400 | |
| 21401 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21402 | 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] | 21403 | # If the export-symbols file already is a .def file (1st line |
| 21404 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21405 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21406 | cp $export_symbols $output_objdir/$soname.def; |
| 21407 | else |
| 21408 | echo EXPORTS > $output_objdir/$soname.def; |
| 21409 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21410 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21411 | $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] | 21412 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21413 | ld_shlibs_F77=no |
| 21414 | fi |
| 21415 | ;; |
| 21416 | |
| 21417 | interix3*) |
| 21418 | hardcode_direct_F77=no |
| 21419 | hardcode_shlibpath_var_F77=no |
| 21420 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21421 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21422 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21423 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21424 | # default) and relocated if they conflict, which is a slow very memory |
| 21425 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21426 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21427 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21428 | 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' |
| 21429 | 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' |
| 21430 | ;; |
| 21431 | |
| 21432 | linux*) |
| 21433 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21434 | tmp_addflag= |
| 21435 | case $cc_basename,$host_cpu in |
| 21436 | pgcc*) # Portland Group C compiler |
| 21437 | 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' |
| 21438 | tmp_addflag=' $pic_flag' |
| 21439 | ;; |
| 21440 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21441 | 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' |
| 21442 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21443 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21444 | tmp_addflag=' -i_dynamic' ;; |
| 21445 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21446 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21447 | ifc* | ifort*) # Intel Fortran compiler |
| 21448 | tmp_addflag=' -nofor_main' ;; |
| 21449 | esac |
| 21450 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21451 | |
| 21452 | if test $supports_anon_versioning = yes; then |
| 21453 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21454 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21455 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21456 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21457 | fi |
| 21458 | else |
| 21459 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21460 | fi |
| 21461 | ;; |
| 21462 | |
| 21463 | netbsd*) |
| 21464 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21465 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21466 | wlarc= |
| 21467 | else |
| 21468 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21469 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21470 | fi |
| 21471 | ;; |
| 21472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21473 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21474 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21475 | ld_shlibs_F77=no |
| 21476 | cat <<EOF 1>&2 |
| 21477 | |
| 21478 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21479 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21480 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21481 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21482 | *** your PATH or compiler configuration so that the native linker is |
| 21483 | *** used, and then restart. |
| 21484 | |
| 21485 | EOF |
| 21486 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21487 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21488 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21489 | else |
| 21490 | ld_shlibs_F77=no |
| 21491 | fi |
| 21492 | ;; |
| 21493 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21494 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21495 | case `$LD -v 2>&1` in |
| 21496 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 21497 | ld_shlibs_F77=no |
| 21498 | cat <<_LT_EOF 1>&2 |
| 21499 | |
| 21500 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21501 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21502 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21503 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21504 | *** your PATH or compiler configuration so that the native linker is |
| 21505 | *** used, and then restart. |
| 21506 | |
| 21507 | _LT_EOF |
| 21508 | ;; |
| 21509 | *) |
| 21510 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21511 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 21512 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 21513 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 21514 | else |
| 21515 | ld_shlibs_F77=no |
| 21516 | fi |
| 21517 | ;; |
| 21518 | esac |
| 21519 | ;; |
| 21520 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21521 | sunos4*) |
| 21522 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21523 | wlarc= |
| 21524 | hardcode_direct_F77=yes |
| 21525 | hardcode_shlibpath_var_F77=no |
| 21526 | ;; |
| 21527 | |
| 21528 | *) |
| 21529 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21530 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21531 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21532 | else |
| 21533 | ld_shlibs_F77=no |
| 21534 | fi |
| 21535 | ;; |
| 21536 | esac |
| 21537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21538 | if test "$ld_shlibs_F77" = no; then |
| 21539 | runpath_var= |
| 21540 | hardcode_libdir_flag_spec_F77= |
| 21541 | export_dynamic_flag_spec_F77= |
| 21542 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21543 | fi |
| 21544 | else |
| 21545 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21546 | case $host_os in |
| 21547 | aix3*) |
| 21548 | allow_undefined_flag_F77=unsupported |
| 21549 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21550 | 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] | 21551 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21552 | # are no directories specified by -L. |
| 21553 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21554 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21555 | # Neither direct hardcoding nor static linking is supported with a |
| 21556 | # broken collect2. |
| 21557 | hardcode_direct_F77=unsupported |
| 21558 | fi |
| 21559 | ;; |
| 21560 | |
| 21561 | aix4* | aix5*) |
| 21562 | if test "$host_cpu" = ia64; then |
| 21563 | # On IA64, the linker does run time linking by default, so we don't |
| 21564 | # have to do anything special. |
| 21565 | aix_use_runtimelinking=no |
| 21566 | exp_sym_flag='-Bexport' |
| 21567 | no_entry_flag="" |
| 21568 | else |
| 21569 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21570 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21571 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21572 | 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' |
| 21573 | else |
| 21574 | 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' |
| 21575 | fi |
| 21576 | aix_use_runtimelinking=no |
| 21577 | |
| 21578 | # Test if we are trying to use run time linking or normal |
| 21579 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21580 | # need to do runtime linking. |
| 21581 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21582 | for ld_flag in $LDFLAGS; do |
| 21583 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21584 | aix_use_runtimelinking=yes |
| 21585 | break |
| 21586 | fi |
| 21587 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21588 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21589 | esac |
| 21590 | |
| 21591 | exp_sym_flag='-bexport' |
| 21592 | no_entry_flag='-bnoentry' |
| 21593 | fi |
| 21594 | |
| 21595 | # When large executables or shared objects are built, AIX ld can |
| 21596 | # have problems creating the table of contents. If linking a library |
| 21597 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21598 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21599 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21600 | |
| 21601 | archive_cmds_F77='' |
| 21602 | hardcode_direct_F77=yes |
| 21603 | hardcode_libdir_separator_F77=':' |
| 21604 | link_all_deplibs_F77=yes |
| 21605 | |
| 21606 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21607 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21608 | # We only want to do this on AIX 4.2 and lower, the check |
| 21609 | # below for broken collect2 doesn't work under 4.3+ |
| 21610 | collect2name=`${CC} -print-prog-name=collect2` |
| 21611 | if test -f "$collect2name" && \ |
| 21612 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21613 | then |
| 21614 | # We have reworked collect2 |
| 21615 | hardcode_direct_F77=yes |
| 21616 | else |
| 21617 | # We have old collect2 |
| 21618 | hardcode_direct_F77=unsupported |
| 21619 | # It fails to find uninstalled libraries when the uninstalled |
| 21620 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21621 | # to unsupported forces relinking |
| 21622 | hardcode_minus_L_F77=yes |
| 21623 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21624 | hardcode_libdir_separator_F77= |
| 21625 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21626 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21627 | esac |
| 21628 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21629 | if test "$aix_use_runtimelinking" = yes; then |
| 21630 | shared_flag="$shared_flag "'${wl}-G' |
| 21631 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21632 | else |
| 21633 | # not using gcc |
| 21634 | if test "$host_cpu" = ia64; then |
| 21635 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21636 | # chokes on -Wl,-G. The following line is correct: |
| 21637 | shared_flag='-G' |
| 21638 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21639 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21640 | shared_flag='${wl}-G' |
| 21641 | else |
| 21642 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21643 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21644 | fi |
| 21645 | fi |
| 21646 | |
| 21647 | # It seems that -bexpall does not export symbols beginning with |
| 21648 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21649 | always_export_symbols_F77=yes |
| 21650 | if test "$aix_use_runtimelinking" = yes; then |
| 21651 | # Warning - without using the other runtime loading flags (-brtl), |
| 21652 | # -berok will link without error, but may produce a broken library. |
| 21653 | allow_undefined_flag_F77='-berok' |
| 21654 | # Determine the default libpath from the value encoded in an empty executable. |
| 21655 | cat >conftest.$ac_ext <<_ACEOF |
| 21656 | program main |
| 21657 | |
| 21658 | end |
| 21659 | _ACEOF |
| 21660 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21661 | if { (ac_try="$ac_link" |
| 21662 | case "(($ac_try" in |
| 21663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21664 | *) ac_try_echo=$ac_try;; |
| 21665 | esac |
| 21666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21667 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21668 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21670 | rm -f conftest.er1 |
| 21671 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21673 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21674 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21675 | { (case "(($ac_try" in |
| 21676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21677 | *) ac_try_echo=$ac_try;; |
| 21678 | esac |
| 21679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21680 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21681 | ac_status=$? |
| 21682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21683 | (exit $ac_status); }; } && |
| 21684 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21685 | { (case "(($ac_try" in |
| 21686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21687 | *) ac_try_echo=$ac_try;; |
| 21688 | esac |
| 21689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21690 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21691 | ac_status=$? |
| 21692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21693 | (exit $ac_status); }; }; then |
| 21694 | |
| 21695 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21696 | }'` |
| 21697 | # Check for a 64-bit object if we didn't find anything. |
| 21698 | 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; } |
| 21699 | }'`; fi |
| 21700 | else |
| 21701 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21703 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21704 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21705 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21706 | |
| 21707 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21708 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21709 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21710 | |
| 21711 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21712 | 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] | 21713 | else |
| 21714 | if test "$host_cpu" = ia64; then |
| 21715 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 21716 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21717 | 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] | 21718 | else |
| 21719 | # Determine the default libpath from the value encoded in an empty executable. |
| 21720 | cat >conftest.$ac_ext <<_ACEOF |
| 21721 | program main |
| 21722 | |
| 21723 | end |
| 21724 | _ACEOF |
| 21725 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21726 | if { (ac_try="$ac_link" |
| 21727 | case "(($ac_try" in |
| 21728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21729 | *) ac_try_echo=$ac_try;; |
| 21730 | esac |
| 21731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21732 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21733 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21735 | rm -f conftest.er1 |
| 21736 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21738 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21739 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21740 | { (case "(($ac_try" in |
| 21741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21742 | *) ac_try_echo=$ac_try;; |
| 21743 | esac |
| 21744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21745 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21746 | ac_status=$? |
| 21747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21748 | (exit $ac_status); }; } && |
| 21749 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21750 | { (case "(($ac_try" in |
| 21751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21752 | *) ac_try_echo=$ac_try;; |
| 21753 | esac |
| 21754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21755 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21756 | ac_status=$? |
| 21757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21758 | (exit $ac_status); }; }; then |
| 21759 | |
| 21760 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21761 | }'` |
| 21762 | # Check for a 64-bit object if we didn't find anything. |
| 21763 | 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; } |
| 21764 | }'`; fi |
| 21765 | else |
| 21766 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21768 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21769 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21770 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21771 | |
| 21772 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21773 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21774 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21775 | |
| 21776 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21777 | # Warning - without using the other run time loading flags, |
| 21778 | # -berok will link without error, but may produce a broken library. |
| 21779 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 21780 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21781 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21782 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21783 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21784 | # This is similar to how AIX traditionally builds its shared libraries. |
| 21785 | 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] | 21786 | fi |
| 21787 | fi |
| 21788 | ;; |
| 21789 | |
| 21790 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21791 | 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] | 21792 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21793 | hardcode_minus_L_F77=yes |
| 21794 | # see comment about different semantics on the GNU ld section |
| 21795 | ld_shlibs_F77=no |
| 21796 | ;; |
| 21797 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21798 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21799 | export_dynamic_flag_spec_F77=-rdynamic |
| 21800 | ;; |
| 21801 | |
| 21802 | cygwin* | mingw* | pw32*) |
| 21803 | # When not using gcc, we currently assume that we are using |
| 21804 | # Microsoft Visual C++. |
| 21805 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 21806 | # no search path for DLLs. |
| 21807 | hardcode_libdir_flag_spec_F77=' ' |
| 21808 | allow_undefined_flag_F77=unsupported |
| 21809 | # Tell ltmain to make .lib files, not .a files. |
| 21810 | libext=lib |
| 21811 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21812 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21813 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21814 | 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] | 21815 | # The linker will automatically build a .lib file if we build a DLL. |
| 21816 | old_archive_From_new_cmds_F77='true' |
| 21817 | # FIXME: Should let the user specify the lib program. |
| 21818 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21819 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21820 | enable_shared_with_static_runtimes_F77=yes |
| 21821 | ;; |
| 21822 | |
| 21823 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21824 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21825 | rhapsody* | darwin1.[012]) |
| 21826 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 21827 | ;; |
| 21828 | *) # Darwin 1.3 on |
| 21829 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 21830 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21831 | else |
| 21832 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 21833 | 10.[012]) |
| 21834 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21835 | ;; |
| 21836 | 10.*) |
| 21837 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 21838 | ;; |
| 21839 | esac |
| 21840 | fi |
| 21841 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21842 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21843 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21844 | hardcode_direct_F77=no |
| 21845 | hardcode_automatic_F77=yes |
| 21846 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21847 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21848 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21849 | if test "$GCC" = yes ; then |
| 21850 | output_verbose_link_cmd='echo' |
| 21851 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 21852 | 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] | 21853 | # 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] | 21854 | 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}' |
| 21855 | 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] | 21856 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21857 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21858 | xlc*) |
| 21859 | output_verbose_link_cmd='echo' |
| 21860 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 21861 | 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] | 21862 | # 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] | 21863 | 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}' |
| 21864 | 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] | 21865 | ;; |
| 21866 | *) |
| 21867 | ld_shlibs_F77=no |
| 21868 | ;; |
| 21869 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21870 | fi |
| 21871 | ;; |
| 21872 | |
| 21873 | dgux*) |
| 21874 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21875 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21876 | hardcode_shlibpath_var_F77=no |
| 21877 | ;; |
| 21878 | |
| 21879 | freebsd1*) |
| 21880 | ld_shlibs_F77=no |
| 21881 | ;; |
| 21882 | |
| 21883 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 21884 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 21885 | # does not break anything, and helps significantly (at the cost of a little |
| 21886 | # extra space). |
| 21887 | freebsd2.2*) |
| 21888 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 21889 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21890 | hardcode_direct_F77=yes |
| 21891 | hardcode_shlibpath_var_F77=no |
| 21892 | ;; |
| 21893 | |
| 21894 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 21895 | freebsd2*) |
| 21896 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21897 | hardcode_direct_F77=yes |
| 21898 | hardcode_minus_L_F77=yes |
| 21899 | hardcode_shlibpath_var_F77=no |
| 21900 | ;; |
| 21901 | |
| 21902 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21903 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21904 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 21905 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21906 | hardcode_direct_F77=yes |
| 21907 | hardcode_shlibpath_var_F77=no |
| 21908 | ;; |
| 21909 | |
| 21910 | hpux9*) |
| 21911 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21912 | 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] | 21913 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21914 | 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] | 21915 | fi |
| 21916 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21917 | hardcode_libdir_separator_F77=: |
| 21918 | hardcode_direct_F77=yes |
| 21919 | |
| 21920 | # hardcode_minus_L: Not really in the search PATH, |
| 21921 | # but as the default location of the library. |
| 21922 | hardcode_minus_L_F77=yes |
| 21923 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21924 | ;; |
| 21925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21926 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21927 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21928 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21929 | else |
| 21930 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 21931 | fi |
| 21932 | if test "$with_gnu_ld" = no; then |
| 21933 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21934 | hardcode_libdir_separator_F77=: |
| 21935 | |
| 21936 | hardcode_direct_F77=yes |
| 21937 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21938 | |
| 21939 | # hardcode_minus_L: Not really in the search PATH, |
| 21940 | # but as the default location of the library. |
| 21941 | hardcode_minus_L_F77=yes |
| 21942 | fi |
| 21943 | ;; |
| 21944 | |
| 21945 | hpux11*) |
| 21946 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 21947 | case $host_cpu in |
| 21948 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21949 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21950 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21951 | ia64*) |
| 21952 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 21953 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21954 | *) |
| 21955 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21956 | ;; |
| 21957 | esac |
| 21958 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21959 | case $host_cpu in |
| 21960 | hppa*64*) |
| 21961 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21962 | ;; |
| 21963 | ia64*) |
| 21964 | 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] | 21965 | ;; |
| 21966 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21967 | 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] | 21968 | ;; |
| 21969 | esac |
| 21970 | fi |
| 21971 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21972 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21973 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21975 | case $host_cpu in |
| 21976 | hppa*64*|ia64*) |
| 21977 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 21978 | hardcode_direct_F77=no |
| 21979 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21980 | ;; |
| 21981 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21982 | hardcode_direct_F77=yes |
| 21983 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21984 | |
| 21985 | # hardcode_minus_L: Not really in the search PATH, |
| 21986 | # but as the default location of the library. |
| 21987 | hardcode_minus_L_F77=yes |
| 21988 | ;; |
| 21989 | esac |
| 21990 | fi |
| 21991 | ;; |
| 21992 | |
| 21993 | irix5* | irix6* | nonstopux*) |
| 21994 | if test "$GCC" = yes; then |
| 21995 | 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' |
| 21996 | else |
| 21997 | 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' |
| 21998 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 21999 | fi |
| 22000 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22001 | hardcode_libdir_separator_F77=: |
| 22002 | link_all_deplibs_F77=yes |
| 22003 | ;; |
| 22004 | |
| 22005 | netbsd*) |
| 22006 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22007 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22008 | else |
| 22009 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22010 | fi |
| 22011 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22012 | hardcode_direct_F77=yes |
| 22013 | hardcode_shlibpath_var_F77=no |
| 22014 | ;; |
| 22015 | |
| 22016 | newsos6) |
| 22017 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22018 | hardcode_direct_F77=yes |
| 22019 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22020 | hardcode_libdir_separator_F77=: |
| 22021 | hardcode_shlibpath_var_F77=no |
| 22022 | ;; |
| 22023 | |
| 22024 | openbsd*) |
| 22025 | hardcode_direct_F77=yes |
| 22026 | hardcode_shlibpath_var_F77=no |
| 22027 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22028 | 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] | 22029 | 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] | 22030 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22031 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22032 | else |
| 22033 | case $host_os in |
| 22034 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22035 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22036 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22037 | ;; |
| 22038 | *) |
| 22039 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22040 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22041 | ;; |
| 22042 | esac |
| 22043 | fi |
| 22044 | ;; |
| 22045 | |
| 22046 | os2*) |
| 22047 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22048 | hardcode_minus_L_F77=yes |
| 22049 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22050 | 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] | 22051 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22052 | ;; |
| 22053 | |
| 22054 | osf3*) |
| 22055 | if test "$GCC" = yes; then |
| 22056 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22057 | 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' |
| 22058 | else |
| 22059 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22060 | 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' |
| 22061 | fi |
| 22062 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22063 | hardcode_libdir_separator_F77=: |
| 22064 | ;; |
| 22065 | |
| 22066 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22067 | if test "$GCC" = yes; then |
| 22068 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22069 | 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' |
| 22070 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22071 | else |
| 22072 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22073 | 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] | 22074 | 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] | 22075 | $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] | 22076 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22077 | # Both c and cxx compiler support -rpath directly |
| 22078 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22079 | fi |
| 22080 | hardcode_libdir_separator_F77=: |
| 22081 | ;; |
| 22082 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22083 | solaris*) |
| 22084 | no_undefined_flag_F77=' -z text' |
| 22085 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22086 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22087 | 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] | 22088 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22089 | $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] | 22090 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22091 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22092 | 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] | 22093 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22094 | $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] | 22095 | fi |
| 22096 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22097 | hardcode_shlibpath_var_F77=no |
| 22098 | case $host_os in |
| 22099 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22100 | *) |
| 22101 | # The compiler driver will combine linker options so we |
| 22102 | # cannot just pass the convience library names through |
| 22103 | # without $wl, iff we do not link with $LD. |
| 22104 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22105 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22106 | case $wlarc in |
| 22107 | '') |
| 22108 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22109 | *) |
| 22110 | 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' ;; |
| 22111 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22112 | esac |
| 22113 | link_all_deplibs_F77=yes |
| 22114 | ;; |
| 22115 | |
| 22116 | sunos4*) |
| 22117 | if test "x$host_vendor" = xsequent; then |
| 22118 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22119 | # files that make .init and .fini sections work. |
| 22120 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22121 | else |
| 22122 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22123 | fi |
| 22124 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22125 | hardcode_direct_F77=yes |
| 22126 | hardcode_minus_L_F77=yes |
| 22127 | hardcode_shlibpath_var_F77=no |
| 22128 | ;; |
| 22129 | |
| 22130 | sysv4) |
| 22131 | case $host_vendor in |
| 22132 | sni) |
| 22133 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22134 | hardcode_direct_F77=yes # is this really true??? |
| 22135 | ;; |
| 22136 | siemens) |
| 22137 | ## LD is ld it makes a PLAMLIB |
| 22138 | ## CC just makes a GrossModule. |
| 22139 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22140 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22141 | hardcode_direct_F77=no |
| 22142 | ;; |
| 22143 | motorola) |
| 22144 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22145 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22146 | ;; |
| 22147 | esac |
| 22148 | runpath_var='LD_RUN_PATH' |
| 22149 | hardcode_shlibpath_var_F77=no |
| 22150 | ;; |
| 22151 | |
| 22152 | sysv4.3*) |
| 22153 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22154 | hardcode_shlibpath_var_F77=no |
| 22155 | export_dynamic_flag_spec_F77='-Bexport' |
| 22156 | ;; |
| 22157 | |
| 22158 | sysv4*MP*) |
| 22159 | if test -d /usr/nec; then |
| 22160 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22161 | hardcode_shlibpath_var_F77=no |
| 22162 | runpath_var=LD_RUN_PATH |
| 22163 | hardcode_runpath_var=yes |
| 22164 | ld_shlibs_F77=yes |
| 22165 | fi |
| 22166 | ;; |
| 22167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22168 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22169 | no_undefined_flag_F77='${wl}-z,text' |
| 22170 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22171 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22172 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22173 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22174 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22175 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22176 | 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] | 22177 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22178 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22179 | 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] | 22180 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22181 | ;; |
| 22182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22183 | sysv5* | sco3.2v5* | sco5v6*) |
| 22184 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22185 | # link with -lc, and that would cause any symbols used from libc to |
| 22186 | # always be unresolved, which means just about no library would |
| 22187 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22188 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22189 | # as -z defs. |
| 22190 | no_undefined_flag_F77='${wl}-z,text' |
| 22191 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22192 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22193 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22194 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22195 | hardcode_libdir_separator_F77=':' |
| 22196 | link_all_deplibs_F77=yes |
| 22197 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22198 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22199 | |
| 22200 | if test "$GCC" = yes; then |
| 22201 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22202 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22203 | else |
| 22204 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22205 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22206 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22207 | ;; |
| 22208 | |
| 22209 | uts4*) |
| 22210 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22211 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22212 | hardcode_shlibpath_var_F77=no |
| 22213 | ;; |
| 22214 | |
| 22215 | *) |
| 22216 | ld_shlibs_F77=no |
| 22217 | ;; |
| 22218 | esac |
| 22219 | fi |
| 22220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22221 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22222 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22223 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22224 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22225 | # |
| 22226 | # Do we need to explicitly link libc? |
| 22227 | # |
| 22228 | case "x$archive_cmds_need_lc_F77" in |
| 22229 | x|xyes) |
| 22230 | # Assume -lc should be added |
| 22231 | archive_cmds_need_lc_F77=yes |
| 22232 | |
| 22233 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22234 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22235 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22236 | # FIXME: we may have to deal with multi-command sequences. |
| 22237 | ;; |
| 22238 | '$CC '*) |
| 22239 | # Test whether the compiler implicitly links with -lc since on some |
| 22240 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22241 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22242 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22243 | 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] | 22244 | $rm conftest* |
| 22245 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22246 | |
| 22247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22248 | (eval $ac_compile) 2>&5 |
| 22249 | ac_status=$? |
| 22250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22251 | (exit $ac_status); } 2>conftest.err; then |
| 22252 | soname=conftest |
| 22253 | lib=conftest |
| 22254 | libobjs=conftest.$ac_objext |
| 22255 | deplibs= |
| 22256 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22257 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22258 | compiler_flags=-v |
| 22259 | linker_flags=-v |
| 22260 | verstring= |
| 22261 | output_objdir=. |
| 22262 | libname=conftest |
| 22263 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22264 | allow_undefined_flag_F77= |
| 22265 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22266 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22267 | ac_status=$? |
| 22268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22269 | (exit $ac_status); } |
| 22270 | then |
| 22271 | archive_cmds_need_lc_F77=no |
| 22272 | else |
| 22273 | archive_cmds_need_lc_F77=yes |
| 22274 | fi |
| 22275 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22276 | else |
| 22277 | cat conftest.err 1>&5 |
| 22278 | fi |
| 22279 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22280 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22281 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22282 | ;; |
| 22283 | esac |
| 22284 | fi |
| 22285 | ;; |
| 22286 | esac |
| 22287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22288 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22289 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22290 | library_names_spec= |
| 22291 | libname_spec='lib$name' |
| 22292 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22293 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22294 | postinstall_cmds= |
| 22295 | postuninstall_cmds= |
| 22296 | finish_cmds= |
| 22297 | finish_eval= |
| 22298 | shlibpath_var= |
| 22299 | shlibpath_overrides_runpath=unknown |
| 22300 | version_type=none |
| 22301 | dynamic_linker="$host_os ld.so" |
| 22302 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22303 | if test "$GCC" = yes; then |
| 22304 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22305 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22306 | # if the path contains ";" then we assume it to be the separator |
| 22307 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22308 | # assumed that no part of a normal pathname contains ";" but that should |
| 22309 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22310 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22311 | else |
| 22312 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22313 | fi |
| 22314 | else |
| 22315 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22316 | fi |
| 22317 | need_lib_prefix=unknown |
| 22318 | hardcode_into_libs=no |
| 22319 | |
| 22320 | # when you set need_version to no, make sure it does not cause -set_version |
| 22321 | # flags to be left without arguments |
| 22322 | need_version=unknown |
| 22323 | |
| 22324 | case $host_os in |
| 22325 | aix3*) |
| 22326 | version_type=linux |
| 22327 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22328 | shlibpath_var=LIBPATH |
| 22329 | |
| 22330 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22331 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22332 | ;; |
| 22333 | |
| 22334 | aix4* | aix5*) |
| 22335 | version_type=linux |
| 22336 | need_lib_prefix=no |
| 22337 | need_version=no |
| 22338 | hardcode_into_libs=yes |
| 22339 | if test "$host_cpu" = ia64; then |
| 22340 | # AIX 5 supports IA64 |
| 22341 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22342 | shlibpath_var=LD_LIBRARY_PATH |
| 22343 | else |
| 22344 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22345 | # for dependence libraries. The import file would start with |
| 22346 | # the line `#! .'. This would cause the generated library to |
| 22347 | # depend on `.', always an invalid library. This was fixed in |
| 22348 | # development snapshots of GCC prior to 3.0. |
| 22349 | case $host_os in |
| 22350 | aix4 | aix4.[01] | aix4.[01].*) |
| 22351 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22352 | echo ' yes ' |
| 22353 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22354 | : |
| 22355 | else |
| 22356 | can_build_shared=no |
| 22357 | fi |
| 22358 | ;; |
| 22359 | esac |
| 22360 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22361 | # soname into executable. Probably we can add versioning support to |
| 22362 | # collect2, so additional links can be useful in future. |
| 22363 | if test "$aix_use_runtimelinking" = yes; then |
| 22364 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22365 | # instead of lib<name>.a to let people know that these are not |
| 22366 | # typical AIX shared libraries. |
| 22367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22368 | else |
| 22369 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22370 | # and later when we are not doing run time linking. |
| 22371 | library_names_spec='${libname}${release}.a $libname.a' |
| 22372 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22373 | fi |
| 22374 | shlibpath_var=LIBPATH |
| 22375 | fi |
| 22376 | ;; |
| 22377 | |
| 22378 | amigaos*) |
| 22379 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22380 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22381 | 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] | 22382 | ;; |
| 22383 | |
| 22384 | beos*) |
| 22385 | library_names_spec='${libname}${shared_ext}' |
| 22386 | dynamic_linker="$host_os ld.so" |
| 22387 | shlibpath_var=LIBRARY_PATH |
| 22388 | ;; |
| 22389 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22390 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22391 | version_type=linux |
| 22392 | need_version=no |
| 22393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22394 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22395 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22396 | shlibpath_var=LD_LIBRARY_PATH |
| 22397 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22398 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22399 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22400 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22401 | # libtool to hard-code these into programs |
| 22402 | ;; |
| 22403 | |
| 22404 | cygwin* | mingw* | pw32*) |
| 22405 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22406 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22407 | need_version=no |
| 22408 | need_lib_prefix=no |
| 22409 | |
| 22410 | case $GCC,$host_os in |
| 22411 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22412 | library_names_spec='$libname.dll.a' |
| 22413 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22414 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22415 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22416 | dldir=$destdir/`dirname \$dlpath`~ |
| 22417 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22418 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22419 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22420 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22421 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22422 | $rm \$dlpath' |
| 22423 | shlibpath_overrides_runpath=yes |
| 22424 | |
| 22425 | case $host_os in |
| 22426 | cygwin*) |
| 22427 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22428 | 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] | 22429 | 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] | 22430 | ;; |
| 22431 | mingw*) |
| 22432 | # MinGW DLLs use traditional 'lib' prefix |
| 22433 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22434 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22435 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22436 | # It is most probably a Windows format PATH printed by |
| 22437 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22438 | # path with ; separators, and with drive letters. We can handle the |
| 22439 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22440 | # especially as we might pass files found there to a mingw objdump, |
| 22441 | # which wouldn't understand a cygwinified path. Ahh. |
| 22442 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22443 | else |
| 22444 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22445 | fi |
| 22446 | ;; |
| 22447 | pw32*) |
| 22448 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22449 | 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] | 22450 | ;; |
| 22451 | esac |
| 22452 | ;; |
| 22453 | |
| 22454 | *) |
| 22455 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22456 | ;; |
| 22457 | esac |
| 22458 | dynamic_linker='Win32 ld.exe' |
| 22459 | # FIXME: first we should search . and the directory the executable is in |
| 22460 | shlibpath_var=PATH |
| 22461 | ;; |
| 22462 | |
| 22463 | darwin* | rhapsody*) |
| 22464 | dynamic_linker="$host_os dyld" |
| 22465 | version_type=darwin |
| 22466 | need_lib_prefix=no |
| 22467 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22468 | 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] | 22469 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22470 | shlibpath_overrides_runpath=yes |
| 22471 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22472 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22473 | # 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] | 22474 | if test "$GCC" = yes; then |
| 22475 | 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"` |
| 22476 | else |
| 22477 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22478 | fi |
| 22479 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22480 | ;; |
| 22481 | |
| 22482 | dgux*) |
| 22483 | version_type=linux |
| 22484 | need_lib_prefix=no |
| 22485 | need_version=no |
| 22486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22487 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22488 | shlibpath_var=LD_LIBRARY_PATH |
| 22489 | ;; |
| 22490 | |
| 22491 | freebsd1*) |
| 22492 | dynamic_linker=no |
| 22493 | ;; |
| 22494 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22495 | kfreebsd*-gnu) |
| 22496 | version_type=linux |
| 22497 | need_lib_prefix=no |
| 22498 | need_version=no |
| 22499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22500 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22501 | shlibpath_var=LD_LIBRARY_PATH |
| 22502 | shlibpath_overrides_runpath=no |
| 22503 | hardcode_into_libs=yes |
| 22504 | dynamic_linker='GNU ld.so' |
| 22505 | ;; |
| 22506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22507 | freebsd* | dragonfly*) |
| 22508 | # DragonFly does not have aout. When/if they implement a new |
| 22509 | # versioning mechanism, adjust this. |
| 22510 | if test -x /usr/bin/objformat; then |
| 22511 | objformat=`/usr/bin/objformat` |
| 22512 | else |
| 22513 | case $host_os in |
| 22514 | freebsd[123]*) objformat=aout ;; |
| 22515 | *) objformat=elf ;; |
| 22516 | esac |
| 22517 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22518 | version_type=freebsd-$objformat |
| 22519 | case $version_type in |
| 22520 | freebsd-elf*) |
| 22521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22522 | need_version=no |
| 22523 | need_lib_prefix=no |
| 22524 | ;; |
| 22525 | freebsd-*) |
| 22526 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22527 | need_version=yes |
| 22528 | ;; |
| 22529 | esac |
| 22530 | shlibpath_var=LD_LIBRARY_PATH |
| 22531 | case $host_os in |
| 22532 | freebsd2*) |
| 22533 | shlibpath_overrides_runpath=yes |
| 22534 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22535 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22536 | shlibpath_overrides_runpath=yes |
| 22537 | hardcode_into_libs=yes |
| 22538 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22539 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 22540 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22541 | shlibpath_overrides_runpath=no |
| 22542 | hardcode_into_libs=yes |
| 22543 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22544 | freebsd*) # from 4.6 on |
| 22545 | shlibpath_overrides_runpath=yes |
| 22546 | hardcode_into_libs=yes |
| 22547 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22548 | esac |
| 22549 | ;; |
| 22550 | |
| 22551 | gnu*) |
| 22552 | version_type=linux |
| 22553 | need_lib_prefix=no |
| 22554 | need_version=no |
| 22555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22556 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22557 | shlibpath_var=LD_LIBRARY_PATH |
| 22558 | hardcode_into_libs=yes |
| 22559 | ;; |
| 22560 | |
| 22561 | hpux9* | hpux10* | hpux11*) |
| 22562 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22563 | # link against other versions. |
| 22564 | version_type=sunos |
| 22565 | need_lib_prefix=no |
| 22566 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22567 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22568 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22569 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22570 | hardcode_into_libs=yes |
| 22571 | dynamic_linker="$host_os dld.so" |
| 22572 | shlibpath_var=LD_LIBRARY_PATH |
| 22573 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22575 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22576 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22577 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22578 | else |
| 22579 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22580 | fi |
| 22581 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22582 | ;; |
| 22583 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22584 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22585 | hardcode_into_libs=yes |
| 22586 | dynamic_linker="$host_os dld.sl" |
| 22587 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22588 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22590 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22591 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22592 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22593 | ;; |
| 22594 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22595 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22596 | dynamic_linker="$host_os dld.sl" |
| 22597 | shlibpath_var=SHLIB_PATH |
| 22598 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22600 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22601 | ;; |
| 22602 | esac |
| 22603 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22604 | postinstall_cmds='chmod 555 $lib' |
| 22605 | ;; |
| 22606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22607 | interix3*) |
| 22608 | version_type=linux |
| 22609 | need_lib_prefix=no |
| 22610 | need_version=no |
| 22611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22612 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22613 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 22614 | shlibpath_var=LD_LIBRARY_PATH |
| 22615 | shlibpath_overrides_runpath=no |
| 22616 | hardcode_into_libs=yes |
| 22617 | ;; |
| 22618 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22619 | irix5* | irix6* | nonstopux*) |
| 22620 | case $host_os in |
| 22621 | nonstopux*) version_type=nonstopux ;; |
| 22622 | *) |
| 22623 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22624 | version_type=linux |
| 22625 | else |
| 22626 | version_type=irix |
| 22627 | fi ;; |
| 22628 | esac |
| 22629 | need_lib_prefix=no |
| 22630 | need_version=no |
| 22631 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22633 | case $host_os in |
| 22634 | irix5* | nonstopux*) |
| 22635 | libsuff= shlibsuff= |
| 22636 | ;; |
| 22637 | *) |
| 22638 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22639 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22640 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22641 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22642 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22643 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22644 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22645 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22646 | esac |
| 22647 | ;; |
| 22648 | esac |
| 22649 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22650 | shlibpath_overrides_runpath=no |
| 22651 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22652 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22653 | hardcode_into_libs=yes |
| 22654 | ;; |
| 22655 | |
| 22656 | # No shared lib support for Linux oldld, aout, or coff. |
| 22657 | linux*oldld* | linux*aout* | linux*coff*) |
| 22658 | dynamic_linker=no |
| 22659 | ;; |
| 22660 | |
| 22661 | # This must be Linux ELF. |
| 22662 | linux*) |
| 22663 | version_type=linux |
| 22664 | need_lib_prefix=no |
| 22665 | need_version=no |
| 22666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22667 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22668 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22669 | shlibpath_var=LD_LIBRARY_PATH |
| 22670 | shlibpath_overrides_runpath=no |
| 22671 | # This implies no fast_install, which is unacceptable. |
| 22672 | # Some rework will be needed to allow for fast_install |
| 22673 | # before this can be enabled. |
| 22674 | hardcode_into_libs=yes |
| 22675 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22676 | # Append ld.so.conf contents to the search path |
| 22677 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22678 | 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] | 22679 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22680 | fi |
| 22681 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22682 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22683 | # powerpc, because MkLinux only supported shared libraries with the |
| 22684 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22685 | # most powerpc-linux boxes support dynamic linking these days and |
| 22686 | # people can always --disable-shared, the test was removed, and we |
| 22687 | # assume the GNU/Linux dynamic linker is in use. |
| 22688 | dynamic_linker='GNU/Linux ld.so' |
| 22689 | ;; |
| 22690 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22691 | knetbsd*-gnu) |
| 22692 | version_type=linux |
| 22693 | need_lib_prefix=no |
| 22694 | need_version=no |
| 22695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22696 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22697 | shlibpath_var=LD_LIBRARY_PATH |
| 22698 | shlibpath_overrides_runpath=no |
| 22699 | hardcode_into_libs=yes |
| 22700 | dynamic_linker='GNU ld.so' |
| 22701 | ;; |
| 22702 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22703 | netbsd*) |
| 22704 | version_type=sunos |
| 22705 | need_lib_prefix=no |
| 22706 | need_version=no |
| 22707 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22709 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22710 | dynamic_linker='NetBSD (a.out) ld.so' |
| 22711 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22712 | 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] | 22713 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22714 | dynamic_linker='NetBSD ld.elf_so' |
| 22715 | fi |
| 22716 | shlibpath_var=LD_LIBRARY_PATH |
| 22717 | shlibpath_overrides_runpath=yes |
| 22718 | hardcode_into_libs=yes |
| 22719 | ;; |
| 22720 | |
| 22721 | newsos6) |
| 22722 | version_type=linux |
| 22723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22724 | shlibpath_var=LD_LIBRARY_PATH |
| 22725 | shlibpath_overrides_runpath=yes |
| 22726 | ;; |
| 22727 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22728 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22729 | version_type=linux |
| 22730 | need_lib_prefix=no |
| 22731 | need_version=no |
| 22732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22733 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22734 | shlibpath_var=LD_LIBRARY_PATH |
| 22735 | shlibpath_overrides_runpath=yes |
| 22736 | ;; |
| 22737 | |
| 22738 | openbsd*) |
| 22739 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22740 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22741 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22742 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 22743 | case $host_os in |
| 22744 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 22745 | *) need_version=no ;; |
| 22746 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22748 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22749 | shlibpath_var=LD_LIBRARY_PATH |
| 22750 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22751 | case $host_os in |
| 22752 | openbsd2.[89] | openbsd2.[89].*) |
| 22753 | shlibpath_overrides_runpath=no |
| 22754 | ;; |
| 22755 | *) |
| 22756 | shlibpath_overrides_runpath=yes |
| 22757 | ;; |
| 22758 | esac |
| 22759 | else |
| 22760 | shlibpath_overrides_runpath=yes |
| 22761 | fi |
| 22762 | ;; |
| 22763 | |
| 22764 | os2*) |
| 22765 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22766 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22767 | need_lib_prefix=no |
| 22768 | library_names_spec='$libname${shared_ext} $libname.a' |
| 22769 | dynamic_linker='OS/2 ld.exe' |
| 22770 | shlibpath_var=LIBPATH |
| 22771 | ;; |
| 22772 | |
| 22773 | osf3* | osf4* | osf5*) |
| 22774 | version_type=osf |
| 22775 | need_lib_prefix=no |
| 22776 | need_version=no |
| 22777 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22779 | shlibpath_var=LD_LIBRARY_PATH |
| 22780 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 22781 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 22782 | ;; |
| 22783 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22784 | solaris*) |
| 22785 | version_type=linux |
| 22786 | need_lib_prefix=no |
| 22787 | need_version=no |
| 22788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22789 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22790 | shlibpath_var=LD_LIBRARY_PATH |
| 22791 | shlibpath_overrides_runpath=yes |
| 22792 | hardcode_into_libs=yes |
| 22793 | # ldd complains unless libraries are executable |
| 22794 | postinstall_cmds='chmod +x $lib' |
| 22795 | ;; |
| 22796 | |
| 22797 | sunos4*) |
| 22798 | version_type=sunos |
| 22799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22800 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 22801 | shlibpath_var=LD_LIBRARY_PATH |
| 22802 | shlibpath_overrides_runpath=yes |
| 22803 | if test "$with_gnu_ld" = yes; then |
| 22804 | need_lib_prefix=no |
| 22805 | fi |
| 22806 | need_version=yes |
| 22807 | ;; |
| 22808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22809 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22810 | version_type=linux |
| 22811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22812 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22813 | shlibpath_var=LD_LIBRARY_PATH |
| 22814 | case $host_vendor in |
| 22815 | sni) |
| 22816 | shlibpath_overrides_runpath=no |
| 22817 | need_lib_prefix=no |
| 22818 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 22819 | runpath_var=LD_RUN_PATH |
| 22820 | ;; |
| 22821 | siemens) |
| 22822 | need_lib_prefix=no |
| 22823 | ;; |
| 22824 | motorola) |
| 22825 | need_lib_prefix=no |
| 22826 | need_version=no |
| 22827 | shlibpath_overrides_runpath=no |
| 22828 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 22829 | ;; |
| 22830 | esac |
| 22831 | ;; |
| 22832 | |
| 22833 | sysv4*MP*) |
| 22834 | if test -d /usr/nec ;then |
| 22835 | version_type=linux |
| 22836 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 22837 | soname_spec='$libname${shared_ext}.$major' |
| 22838 | shlibpath_var=LD_LIBRARY_PATH |
| 22839 | fi |
| 22840 | ;; |
| 22841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22842 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 22843 | version_type=freebsd-elf |
| 22844 | need_lib_prefix=no |
| 22845 | need_version=no |
| 22846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22847 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22848 | shlibpath_var=LD_LIBRARY_PATH |
| 22849 | hardcode_into_libs=yes |
| 22850 | if test "$with_gnu_ld" = yes; then |
| 22851 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 22852 | shlibpath_overrides_runpath=no |
| 22853 | else |
| 22854 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 22855 | shlibpath_overrides_runpath=yes |
| 22856 | case $host_os in |
| 22857 | sco3.2v5*) |
| 22858 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 22859 | ;; |
| 22860 | esac |
| 22861 | fi |
| 22862 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 22863 | ;; |
| 22864 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22865 | uts4*) |
| 22866 | version_type=linux |
| 22867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22868 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22869 | shlibpath_var=LD_LIBRARY_PATH |
| 22870 | ;; |
| 22871 | |
| 22872 | *) |
| 22873 | dynamic_linker=no |
| 22874 | ;; |
| 22875 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22876 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 22877 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22878 | test "$dynamic_linker" = no && can_build_shared=no |
| 22879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22880 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 22881 | if test "$GCC" = yes; then |
| 22882 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 22883 | fi |
| 22884 | |
| 22885 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 22886 | 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] | 22887 | hardcode_action_F77= |
| 22888 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 22889 | test -n "$runpath_var_F77" || \ |
| 22890 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 22891 | |
| 22892 | # We can hardcode non-existant directories. |
| 22893 | if test "$hardcode_direct_F77" != no && |
| 22894 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 22895 | # have to relink, otherwise we might link with an installed library |
| 22896 | # when we should be linking with a yet-to-be-installed one |
| 22897 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 22898 | test "$hardcode_minus_L_F77" != no; then |
| 22899 | # Linking always hardcodes the temporary library directory. |
| 22900 | hardcode_action_F77=relink |
| 22901 | else |
| 22902 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 22903 | hardcode_action_F77=immediate |
| 22904 | fi |
| 22905 | else |
| 22906 | # We cannot hardcode anything, or else we can only hardcode existing |
| 22907 | # directories. |
| 22908 | hardcode_action_F77=unsupported |
| 22909 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22910 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 22911 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22912 | |
| 22913 | if test "$hardcode_action_F77" = relink; then |
| 22914 | # Fast installation is not supported |
| 22915 | enable_fast_install=no |
| 22916 | elif test "$shlibpath_overrides_runpath" = yes || |
| 22917 | test "$enable_shared" = no; then |
| 22918 | # Fast installation is not necessary |
| 22919 | enable_fast_install=needless |
| 22920 | fi |
| 22921 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22922 | |
| 22923 | # The else clause should only fire when bootstrapping the |
| 22924 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 22925 | # with your package, and you will get complaints that there are |
| 22926 | # no rules to generate ltmain.sh. |
| 22927 | if test -f "$ltmain"; then |
| 22928 | # See if we are running on zsh, and set the options which allow our commands through |
| 22929 | # without removal of \ escapes. |
| 22930 | if test -n "${ZSH_VERSION+set}" ; then |
| 22931 | setopt NO_GLOB_SUBST |
| 22932 | fi |
| 22933 | # Now quote all the things that may contain metacharacters while being |
| 22934 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 22935 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22936 | 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] | 22937 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22938 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 22939 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 22940 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 22941 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 22942 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 22943 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 22944 | old_postinstall_cmds old_postuninstall_cmds \ |
| 22945 | compiler_F77 \ |
| 22946 | CC_F77 \ |
| 22947 | LD_F77 \ |
| 22948 | lt_prog_compiler_wl_F77 \ |
| 22949 | lt_prog_compiler_pic_F77 \ |
| 22950 | lt_prog_compiler_static_F77 \ |
| 22951 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 22952 | export_dynamic_flag_spec_F77 \ |
| 22953 | thread_safe_flag_spec_F77 \ |
| 22954 | whole_archive_flag_spec_F77 \ |
| 22955 | enable_shared_with_static_runtimes_F77 \ |
| 22956 | old_archive_cmds_F77 \ |
| 22957 | old_archive_from_new_cmds_F77 \ |
| 22958 | predep_objects_F77 \ |
| 22959 | postdep_objects_F77 \ |
| 22960 | predeps_F77 \ |
| 22961 | postdeps_F77 \ |
| 22962 | compiler_lib_search_path_F77 \ |
| 22963 | archive_cmds_F77 \ |
| 22964 | archive_expsym_cmds_F77 \ |
| 22965 | postinstall_cmds_F77 \ |
| 22966 | postuninstall_cmds_F77 \ |
| 22967 | old_archive_from_expsyms_cmds_F77 \ |
| 22968 | allow_undefined_flag_F77 \ |
| 22969 | no_undefined_flag_F77 \ |
| 22970 | export_symbols_cmds_F77 \ |
| 22971 | hardcode_libdir_flag_spec_F77 \ |
| 22972 | hardcode_libdir_flag_spec_ld_F77 \ |
| 22973 | hardcode_libdir_separator_F77 \ |
| 22974 | hardcode_automatic_F77 \ |
| 22975 | module_cmds_F77 \ |
| 22976 | module_expsym_cmds_F77 \ |
| 22977 | lt_cv_prog_compiler_c_o_F77 \ |
| 22978 | exclude_expsyms_F77 \ |
| 22979 | include_expsyms_F77; do |
| 22980 | |
| 22981 | case $var in |
| 22982 | old_archive_cmds_F77 | \ |
| 22983 | old_archive_from_new_cmds_F77 | \ |
| 22984 | archive_cmds_F77 | \ |
| 22985 | archive_expsym_cmds_F77 | \ |
| 22986 | module_cmds_F77 | \ |
| 22987 | module_expsym_cmds_F77 | \ |
| 22988 | old_archive_from_expsyms_cmds_F77 | \ |
| 22989 | export_symbols_cmds_F77 | \ |
| 22990 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 22991 | postinstall_cmds | postuninstall_cmds | \ |
| 22992 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 22993 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 22994 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22995 | 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] | 22996 | ;; |
| 22997 | *) |
| 22998 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 22999 | ;; |
| 23000 | esac |
| 23001 | done |
| 23002 | |
| 23003 | case $lt_echo in |
| 23004 | *'\$0 --fallback-echo"') |
| 23005 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23006 | ;; |
| 23007 | esac |
| 23008 | |
| 23009 | cfgfile="$ofile" |
| 23010 | |
| 23011 | cat <<__EOF__ >> "$cfgfile" |
| 23012 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23013 | |
| 23014 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23015 | |
| 23016 | # Shell to use when invoking shell scripts. |
| 23017 | SHELL=$lt_SHELL |
| 23018 | |
| 23019 | # Whether or not to build shared libraries. |
| 23020 | build_libtool_libs=$enable_shared |
| 23021 | |
| 23022 | # Whether or not to build static libraries. |
| 23023 | build_old_libs=$enable_static |
| 23024 | |
| 23025 | # Whether or not to add -lc for building shared libraries. |
| 23026 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23027 | |
| 23028 | # Whether or not to disallow shared libs when runtime libs are static |
| 23029 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23030 | |
| 23031 | # Whether or not to optimize for fast installation. |
| 23032 | fast_install=$enable_fast_install |
| 23033 | |
| 23034 | # The host system. |
| 23035 | host_alias=$host_alias |
| 23036 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23037 | host_os=$host_os |
| 23038 | |
| 23039 | # The build system. |
| 23040 | build_alias=$build_alias |
| 23041 | build=$build |
| 23042 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23043 | |
| 23044 | # An echo program that does not interpret backslashes. |
| 23045 | echo=$lt_echo |
| 23046 | |
| 23047 | # The archiver. |
| 23048 | AR=$lt_AR |
| 23049 | AR_FLAGS=$lt_AR_FLAGS |
| 23050 | |
| 23051 | # A C compiler. |
| 23052 | LTCC=$lt_LTCC |
| 23053 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23054 | # LTCC compiler flags. |
| 23055 | LTCFLAGS=$lt_LTCFLAGS |
| 23056 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23057 | # A language-specific compiler. |
| 23058 | CC=$lt_compiler_F77 |
| 23059 | |
| 23060 | # Is the compiler the GNU C compiler? |
| 23061 | with_gcc=$GCC_F77 |
| 23062 | |
| 23063 | # An ERE matcher. |
| 23064 | EGREP=$lt_EGREP |
| 23065 | |
| 23066 | # The linker used to build libraries. |
| 23067 | LD=$lt_LD_F77 |
| 23068 | |
| 23069 | # Whether we need hard or soft links. |
| 23070 | LN_S=$lt_LN_S |
| 23071 | |
| 23072 | # A BSD-compatible nm program. |
| 23073 | NM=$lt_NM |
| 23074 | |
| 23075 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23076 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23077 | |
| 23078 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23079 | MAGIC_CMD=$MAGIC_CMD |
| 23080 | |
| 23081 | # Used on cygwin: DLL creation program. |
| 23082 | DLLTOOL="$DLLTOOL" |
| 23083 | |
| 23084 | # Used on cygwin: object dumper. |
| 23085 | OBJDUMP="$OBJDUMP" |
| 23086 | |
| 23087 | # Used on cygwin: assembler. |
| 23088 | AS="$AS" |
| 23089 | |
| 23090 | # The name of the directory that contains temporary libtool files. |
| 23091 | objdir=$objdir |
| 23092 | |
| 23093 | # How to create reloadable object files. |
| 23094 | reload_flag=$lt_reload_flag |
| 23095 | reload_cmds=$lt_reload_cmds |
| 23096 | |
| 23097 | # How to pass a linker flag through the compiler. |
| 23098 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23099 | |
| 23100 | # Object file suffix (normally "o"). |
| 23101 | objext="$ac_objext" |
| 23102 | |
| 23103 | # Old archive suffix (normally "a"). |
| 23104 | libext="$libext" |
| 23105 | |
| 23106 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23107 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23108 | |
| 23109 | # Executable file suffix (normally ""). |
| 23110 | exeext="$exeext" |
| 23111 | |
| 23112 | # Additional compiler flags for building library objects. |
| 23113 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23114 | pic_mode=$pic_mode |
| 23115 | |
| 23116 | # What is the maximum length of a command? |
| 23117 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23118 | |
| 23119 | # Does compiler simultaneously support -c and -o options? |
| 23120 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23122 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23123 | need_locks=$lt_need_locks |
| 23124 | |
| 23125 | # Do we need the lib prefix for modules? |
| 23126 | need_lib_prefix=$need_lib_prefix |
| 23127 | |
| 23128 | # Do we need a version for libraries? |
| 23129 | need_version=$need_version |
| 23130 | |
| 23131 | # Whether dlopen is supported. |
| 23132 | dlopen_support=$enable_dlopen |
| 23133 | |
| 23134 | # Whether dlopen of programs is supported. |
| 23135 | dlopen_self=$enable_dlopen_self |
| 23136 | |
| 23137 | # Whether dlopen of statically linked programs is supported. |
| 23138 | dlopen_self_static=$enable_dlopen_self_static |
| 23139 | |
| 23140 | # Compiler flag to prevent dynamic linking. |
| 23141 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23142 | |
| 23143 | # Compiler flag to turn off builtin functions. |
| 23144 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23145 | |
| 23146 | # Compiler flag to allow reflexive dlopens. |
| 23147 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23148 | |
| 23149 | # Compiler flag to generate shared objects directly from archives. |
| 23150 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23151 | |
| 23152 | # Compiler flag to generate thread-safe objects. |
| 23153 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23154 | |
| 23155 | # Library versioning type. |
| 23156 | version_type=$version_type |
| 23157 | |
| 23158 | # Format of library name prefix. |
| 23159 | libname_spec=$lt_libname_spec |
| 23160 | |
| 23161 | # List of archive names. First name is the real one, the rest are links. |
| 23162 | # The last name is the one that the linker finds with -lNAME. |
| 23163 | library_names_spec=$lt_library_names_spec |
| 23164 | |
| 23165 | # The coded name of the library, if different from the real name. |
| 23166 | soname_spec=$lt_soname_spec |
| 23167 | |
| 23168 | # Commands used to build and install an old-style archive. |
| 23169 | RANLIB=$lt_RANLIB |
| 23170 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23171 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23172 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23173 | |
| 23174 | # Create an old-style archive from a shared archive. |
| 23175 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23176 | |
| 23177 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23178 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23179 | |
| 23180 | # Commands used to build and install a shared archive. |
| 23181 | archive_cmds=$lt_archive_cmds_F77 |
| 23182 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23183 | postinstall_cmds=$lt_postinstall_cmds |
| 23184 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23185 | |
| 23186 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23187 | module_cmds=$lt_module_cmds_F77 |
| 23188 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23189 | |
| 23190 | # Commands to strip libraries. |
| 23191 | old_striplib=$lt_old_striplib |
| 23192 | striplib=$lt_striplib |
| 23193 | |
| 23194 | # Dependencies to place before the objects being linked to create a |
| 23195 | # shared library. |
| 23196 | predep_objects=$lt_predep_objects_F77 |
| 23197 | |
| 23198 | # Dependencies to place after the objects being linked to create a |
| 23199 | # shared library. |
| 23200 | postdep_objects=$lt_postdep_objects_F77 |
| 23201 | |
| 23202 | # Dependencies to place before the objects being linked to create a |
| 23203 | # shared library. |
| 23204 | predeps=$lt_predeps_F77 |
| 23205 | |
| 23206 | # Dependencies to place after the objects being linked to create a |
| 23207 | # shared library. |
| 23208 | postdeps=$lt_postdeps_F77 |
| 23209 | |
| 23210 | # The library search path used internally by the compiler when linking |
| 23211 | # a shared library. |
| 23212 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23213 | |
| 23214 | # Method to check whether dependent libraries are shared objects. |
| 23215 | deplibs_check_method=$lt_deplibs_check_method |
| 23216 | |
| 23217 | # Command to use when deplibs_check_method == file_magic. |
| 23218 | file_magic_cmd=$lt_file_magic_cmd |
| 23219 | |
| 23220 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23221 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23222 | |
| 23223 | # Flag that forces no undefined symbols. |
| 23224 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23225 | |
| 23226 | # Commands used to finish a libtool library installation in a directory. |
| 23227 | finish_cmds=$lt_finish_cmds |
| 23228 | |
| 23229 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23230 | finish_eval=$lt_finish_eval |
| 23231 | |
| 23232 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23233 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23234 | |
| 23235 | # Transform the output of nm in a proper C declaration |
| 23236 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23237 | |
| 23238 | # Transform the output of nm in a C name address pair |
| 23239 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23240 | |
| 23241 | # This is the shared library runtime path variable. |
| 23242 | runpath_var=$runpath_var |
| 23243 | |
| 23244 | # This is the shared library path variable. |
| 23245 | shlibpath_var=$shlibpath_var |
| 23246 | |
| 23247 | # Is shlibpath searched before the hard-coded library search path? |
| 23248 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23249 | |
| 23250 | # How to hardcode a shared library path into an executable. |
| 23251 | hardcode_action=$hardcode_action_F77 |
| 23252 | |
| 23253 | # Whether we should hardcode library paths into libraries. |
| 23254 | hardcode_into_libs=$hardcode_into_libs |
| 23255 | |
| 23256 | # Flag to hardcode \$libdir into a binary during linking. |
| 23257 | # This must work even if \$libdir does not exist. |
| 23258 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23259 | |
| 23260 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23261 | # a binary during linking. This must work even if \$libdir does |
| 23262 | # not exist. |
| 23263 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23264 | |
| 23265 | # Whether we need a single -rpath flag with a separated argument. |
| 23266 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23267 | |
| 23268 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23269 | # resulting binary. |
| 23270 | hardcode_direct=$hardcode_direct_F77 |
| 23271 | |
| 23272 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23273 | # resulting binary. |
| 23274 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23275 | |
| 23276 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23277 | # the resulting binary. |
| 23278 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23279 | |
| 23280 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23281 | # and all subsequent libraries and executables linked against it. |
| 23282 | hardcode_automatic=$hardcode_automatic_F77 |
| 23283 | |
| 23284 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23285 | # restored at relink time. |
| 23286 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23287 | |
| 23288 | # Whether libtool must link a program against all its dependency libraries. |
| 23289 | link_all_deplibs=$link_all_deplibs_F77 |
| 23290 | |
| 23291 | # Compile-time system search path for libraries |
| 23292 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23293 | |
| 23294 | # Run-time system search path for libraries |
| 23295 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23296 | |
| 23297 | # Fix the shell variable \$srcfile for the compiler. |
| 23298 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23299 | |
| 23300 | # Set to yes if exported symbols are required. |
| 23301 | always_export_symbols=$always_export_symbols_F77 |
| 23302 | |
| 23303 | # The commands to list exported symbols. |
| 23304 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23305 | |
| 23306 | # The commands to extract the exported symbol list from a shared archive. |
| 23307 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23308 | |
| 23309 | # Symbols that should not be listed in the preloaded symbols. |
| 23310 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23311 | |
| 23312 | # Symbols that must always be exported. |
| 23313 | include_expsyms=$lt_include_expsyms_F77 |
| 23314 | |
| 23315 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23316 | |
| 23317 | __EOF__ |
| 23318 | |
| 23319 | |
| 23320 | else |
| 23321 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23322 | # `config.status --recheck' to rerun these tests and create the |
| 23323 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23324 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23325 | if test -f "$ltmain_in"; then |
| 23326 | test -f Makefile && make "$ltmain" |
| 23327 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23328 | fi |
| 23329 | |
| 23330 | |
| 23331 | ac_ext=c |
| 23332 | ac_cpp='$CPP $CPPFLAGS' |
| 23333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23336 | |
| 23337 | CC="$lt_save_CC" |
| 23338 | |
| 23339 | else |
| 23340 | tagname="" |
| 23341 | fi |
| 23342 | ;; |
| 23343 | |
| 23344 | GCJ) |
| 23345 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23346 | ac_ext=c |
| 23347 | ac_cpp='$CPP $CPPFLAGS' |
| 23348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23351 | |
| 23352 | |
| 23353 | # Source file extension for Java test sources. |
| 23354 | ac_ext=java |
| 23355 | |
| 23356 | # Object file extension for compiled Java test sources. |
| 23357 | objext=o |
| 23358 | objext_GCJ=$objext |
| 23359 | |
| 23360 | # Code to be used in simple compile tests |
| 23361 | lt_simple_compile_test_code="class foo {}\n" |
| 23362 | |
| 23363 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23364 | 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] | 23365 | |
| 23366 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23367 | |
| 23368 | # If no C compiler was specified, use CC. |
| 23369 | LTCC=${LTCC-"$CC"} |
| 23370 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23371 | # If no C compiler flags were specified, use CFLAGS. |
| 23372 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23373 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23374 | # Allow CC to be a program name with arguments. |
| 23375 | compiler=$CC |
| 23376 | |
| 23377 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23378 | # save warnings/boilerplate of simple test code |
| 23379 | ac_outfile=conftest.$ac_objext |
| 23380 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23381 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23382 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23383 | $rm conftest* |
| 23384 | |
| 23385 | ac_outfile=conftest.$ac_objext |
| 23386 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23387 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23388 | _lt_linker_boilerplate=`cat conftest.err` |
| 23389 | $rm conftest* |
| 23390 | |
| 23391 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23392 | # Allow CC to be a program name with arguments. |
| 23393 | lt_save_CC="$CC" |
| 23394 | CC=${GCJ-"gcj"} |
| 23395 | compiler=$CC |
| 23396 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23397 | for cc_temp in $compiler""; do |
| 23398 | case $cc_temp in |
| 23399 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23400 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23401 | \-*) ;; |
| 23402 | *) break;; |
| 23403 | esac |
| 23404 | done |
| 23405 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23406 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23407 | |
| 23408 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23409 | archive_cmds_need_lc_GCJ=no |
| 23410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23411 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23412 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23413 | |
| 23414 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23415 | |
| 23416 | if test "$GCC" = yes; then |
| 23417 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23418 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23420 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23421 | 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] | 23422 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23424 | else |
| 23425 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23426 | ac_outfile=conftest.$ac_objext |
| 23427 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23428 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23429 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23430 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23431 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23432 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23433 | # The option is referenced via a variable to avoid confusing sed. |
| 23434 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23435 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23436 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23437 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 23438 | (eval echo "\"\$as_me:23438: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23439 | (eval "$lt_compile" 2>conftest.err) |
| 23440 | ac_status=$? |
| 23441 | cat conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 23442 | echo "$as_me:23442: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23443 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23444 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23445 | # So say no if there are warnings other than the usual output. |
| 23446 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23447 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23448 | 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] | 23449 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 23450 | fi |
| 23451 | fi |
| 23452 | $rm conftest* |
| 23453 | |
| 23454 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23455 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 23456 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23457 | |
| 23458 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 23459 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 23460 | else |
| 23461 | : |
| 23462 | fi |
| 23463 | |
| 23464 | fi |
| 23465 | |
| 23466 | lt_prog_compiler_wl_GCJ= |
| 23467 | lt_prog_compiler_pic_GCJ= |
| 23468 | lt_prog_compiler_static_GCJ= |
| 23469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23470 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 23471 | 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] | 23472 | |
| 23473 | if test "$GCC" = yes; then |
| 23474 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23475 | lt_prog_compiler_static_GCJ='-static' |
| 23476 | |
| 23477 | case $host_os in |
| 23478 | aix*) |
| 23479 | # All AIX code is PIC. |
| 23480 | if test "$host_cpu" = ia64; then |
| 23481 | # AIX 5 now supports IA64 processor |
| 23482 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23483 | fi |
| 23484 | ;; |
| 23485 | |
| 23486 | amigaos*) |
| 23487 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 23488 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 23489 | # like `-m68040'. |
| 23490 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 23491 | ;; |
| 23492 | |
| 23493 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23494 | # PIC is the default for these OSes. |
| 23495 | ;; |
| 23496 | |
| 23497 | mingw* | pw32* | os2*) |
| 23498 | # This hack is so that the source file can tell whether it is being |
| 23499 | # built for inclusion in a dll (and should export symbols for example). |
| 23500 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23501 | ;; |
| 23502 | |
| 23503 | darwin* | rhapsody*) |
| 23504 | # PIC is the default on this platform |
| 23505 | # Common symbols not allowed in MH_DYLIB files |
| 23506 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 23507 | ;; |
| 23508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23509 | interix3*) |
| 23510 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23511 | # Instead, we relocate shared libraries at runtime. |
| 23512 | ;; |
| 23513 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23514 | msdosdjgpp*) |
| 23515 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23516 | # on systems that don't support them. |
| 23517 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23518 | enable_shared=no |
| 23519 | ;; |
| 23520 | |
| 23521 | sysv4*MP*) |
| 23522 | if test -d /usr/nec; then |
| 23523 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 23524 | fi |
| 23525 | ;; |
| 23526 | |
| 23527 | hpux*) |
| 23528 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23529 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23530 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23531 | hppa*64*|ia64*) |
| 23532 | # +Z the default |
| 23533 | ;; |
| 23534 | *) |
| 23535 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23536 | ;; |
| 23537 | esac |
| 23538 | ;; |
| 23539 | |
| 23540 | *) |
| 23541 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23542 | ;; |
| 23543 | esac |
| 23544 | else |
| 23545 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 23546 | case $host_os in |
| 23547 | aix*) |
| 23548 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23549 | if test "$host_cpu" = ia64; then |
| 23550 | # AIX 5 now supports IA64 processor |
| 23551 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23552 | else |
| 23553 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 23554 | fi |
| 23555 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23556 | darwin*) |
| 23557 | # PIC is the default on this platform |
| 23558 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23559 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23560 | xlc*) |
| 23561 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 23562 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23563 | ;; |
| 23564 | esac |
| 23565 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23566 | |
| 23567 | mingw* | pw32* | os2*) |
| 23568 | # This hack is so that the source file can tell whether it is being |
| 23569 | # built for inclusion in a dll (and should export symbols for example). |
| 23570 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23571 | ;; |
| 23572 | |
| 23573 | hpux9* | hpux10* | hpux11*) |
| 23574 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23575 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23576 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23577 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23578 | hppa*64*|ia64*) |
| 23579 | # +Z the default |
| 23580 | ;; |
| 23581 | *) |
| 23582 | lt_prog_compiler_pic_GCJ='+Z' |
| 23583 | ;; |
| 23584 | esac |
| 23585 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23586 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 23587 | ;; |
| 23588 | |
| 23589 | irix5* | irix6* | nonstopux*) |
| 23590 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23591 | # PIC (with -KPIC) is the default. |
| 23592 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23593 | ;; |
| 23594 | |
| 23595 | newsos6) |
| 23596 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23597 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23598 | ;; |
| 23599 | |
| 23600 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23601 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23602 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23603 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23604 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23605 | lt_prog_compiler_static_GCJ='-static' |
| 23606 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23607 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 23608 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23609 | # which looks to be a dead project) |
| 23610 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23611 | lt_prog_compiler_pic_GCJ='-fpic' |
| 23612 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23613 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23614 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23615 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23616 | # All Alpha code is PIC. |
| 23617 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23618 | ;; |
| 23619 | esac |
| 23620 | ;; |
| 23621 | |
| 23622 | osf3* | osf4* | osf5*) |
| 23623 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23624 | # All OSF/1 code is PIC. |
| 23625 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23626 | ;; |
| 23627 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23628 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23629 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23630 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23631 | case $cc_basename in |
| 23632 | f77* | f90* | f95*) |
| 23633 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 23634 | *) |
| 23635 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 23636 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23637 | ;; |
| 23638 | |
| 23639 | sunos4*) |
| 23640 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 23641 | lt_prog_compiler_pic_GCJ='-PIC' |
| 23642 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23643 | ;; |
| 23644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23645 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23646 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23647 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23648 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23649 | ;; |
| 23650 | |
| 23651 | sysv4*MP*) |
| 23652 | if test -d /usr/nec ;then |
| 23653 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 23654 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23655 | fi |
| 23656 | ;; |
| 23657 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23658 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 23659 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23660 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23661 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23662 | ;; |
| 23663 | |
| 23664 | unicos*) |
| 23665 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23666 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23667 | ;; |
| 23668 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23669 | uts4*) |
| 23670 | lt_prog_compiler_pic_GCJ='-pic' |
| 23671 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23672 | ;; |
| 23673 | |
| 23674 | *) |
| 23675 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23676 | ;; |
| 23677 | esac |
| 23678 | fi |
| 23679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23680 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 23681 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23682 | |
| 23683 | # |
| 23684 | # Check to make sure the PIC flag actually works. |
| 23685 | # |
| 23686 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23687 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23688 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 23689 | 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] | 23690 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 23691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23692 | else |
| 23693 | lt_prog_compiler_pic_works_GCJ=no |
| 23694 | ac_outfile=conftest.$ac_objext |
| 23695 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23696 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 23697 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23698 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23699 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23700 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23701 | # The option is referenced via a variable to avoid confusing sed. |
| 23702 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23703 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23704 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23705 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 23706 | (eval echo "\"\$as_me:23706: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23707 | (eval "$lt_compile" 2>conftest.err) |
| 23708 | ac_status=$? |
| 23709 | cat conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 23710 | echo "$as_me:23710: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23711 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23712 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23713 | # So say no if there are warnings other than the usual output. |
| 23714 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23715 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23716 | 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] | 23717 | lt_prog_compiler_pic_works_GCJ=yes |
| 23718 | fi |
| 23719 | fi |
| 23720 | $rm conftest* |
| 23721 | |
| 23722 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23723 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 23724 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23725 | |
| 23726 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 23727 | case $lt_prog_compiler_pic_GCJ in |
| 23728 | "" | " "*) ;; |
| 23729 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 23730 | esac |
| 23731 | else |
| 23732 | lt_prog_compiler_pic_GCJ= |
| 23733 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23734 | fi |
| 23735 | |
| 23736 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23737 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23738 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 23739 | *djgpp*) |
| 23740 | lt_prog_compiler_pic_GCJ= |
| 23741 | ;; |
| 23742 | *) |
| 23743 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 23744 | ;; |
| 23745 | esac |
| 23746 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23747 | # |
| 23748 | # Check to make sure the static flag actually works. |
| 23749 | # |
| 23750 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 23751 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 23752 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 23753 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 23754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23755 | else |
| 23756 | lt_prog_compiler_static_works_GCJ=no |
| 23757 | save_LDFLAGS="$LDFLAGS" |
| 23758 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 23759 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 23760 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 23761 | # The linker can only warn and ignore the option if not recognized |
| 23762 | # So say no if there are warnings |
| 23763 | if test -s conftest.err; then |
| 23764 | # Append any errors to the config.log. |
| 23765 | cat conftest.err 1>&5 |
| 23766 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 23767 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23768 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 23769 | lt_prog_compiler_static_works_GCJ=yes |
| 23770 | fi |
| 23771 | else |
| 23772 | lt_prog_compiler_static_works_GCJ=yes |
| 23773 | fi |
| 23774 | fi |
| 23775 | $rm conftest* |
| 23776 | LDFLAGS="$save_LDFLAGS" |
| 23777 | |
| 23778 | fi |
| 23779 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 23780 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 23781 | |
| 23782 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 23783 | : |
| 23784 | else |
| 23785 | lt_prog_compiler_static_GCJ= |
| 23786 | fi |
| 23787 | |
| 23788 | |
| 23789 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 23790 | 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] | 23791 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 23792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23793 | else |
| 23794 | lt_cv_prog_compiler_c_o_GCJ=no |
| 23795 | $rm -r conftest 2>/dev/null |
| 23796 | mkdir conftest |
| 23797 | cd conftest |
| 23798 | mkdir out |
| 23799 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23800 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23801 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 23802 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23803 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23804 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23805 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23806 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23807 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23808 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23809 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 23810 | (eval echo "\"\$as_me:23810: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23811 | (eval "$lt_compile" 2>out/conftest.err) |
| 23812 | ac_status=$? |
| 23813 | cat out/conftest.err >&5 |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 23814 | echo "$as_me:23814: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23815 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 23816 | then |
| 23817 | # The compiler can only warn and ignore the option if not recognized |
| 23818 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23819 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 23820 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 23821 | 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] | 23822 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 23823 | fi |
| 23824 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23825 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23826 | $rm conftest* |
| 23827 | # SGI C++ compiler will create directory out/ii_files/ for |
| 23828 | # template instantiation |
| 23829 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 23830 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23831 | cd .. |
| 23832 | rmdir conftest |
| 23833 | $rm conftest* |
| 23834 | |
| 23835 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23836 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 23837 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23838 | |
| 23839 | |
| 23840 | hard_links="nottested" |
| 23841 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 23842 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23843 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 23844 | 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] | 23845 | hard_links=yes |
| 23846 | $rm conftest* |
| 23847 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 23848 | touch conftest.a |
| 23849 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 23850 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23851 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 23852 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23853 | if test "$hard_links" = no; then |
| 23854 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 23855 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 23856 | need_locks=warn |
| 23857 | fi |
| 23858 | else |
| 23859 | need_locks=no |
| 23860 | fi |
| 23861 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23862 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 23863 | 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] | 23864 | |
| 23865 | runpath_var= |
| 23866 | allow_undefined_flag_GCJ= |
| 23867 | enable_shared_with_static_runtimes_GCJ=no |
| 23868 | archive_cmds_GCJ= |
| 23869 | archive_expsym_cmds_GCJ= |
| 23870 | old_archive_From_new_cmds_GCJ= |
| 23871 | old_archive_from_expsyms_cmds_GCJ= |
| 23872 | export_dynamic_flag_spec_GCJ= |
| 23873 | whole_archive_flag_spec_GCJ= |
| 23874 | thread_safe_flag_spec_GCJ= |
| 23875 | hardcode_libdir_flag_spec_GCJ= |
| 23876 | hardcode_libdir_flag_spec_ld_GCJ= |
| 23877 | hardcode_libdir_separator_GCJ= |
| 23878 | hardcode_direct_GCJ=no |
| 23879 | hardcode_minus_L_GCJ=no |
| 23880 | hardcode_shlibpath_var_GCJ=unsupported |
| 23881 | link_all_deplibs_GCJ=unknown |
| 23882 | hardcode_automatic_GCJ=no |
| 23883 | module_cmds_GCJ= |
| 23884 | module_expsym_cmds_GCJ= |
| 23885 | always_export_symbols_GCJ=no |
| 23886 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 23887 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 23888 | # included in the symbol list |
| 23889 | include_expsyms_GCJ= |
| 23890 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 23891 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 23892 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 23893 | # as well as any symbol that contains `d'. |
| 23894 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 23895 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 23896 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 23897 | # the symbol is explicitly referenced. Since portable code cannot |
| 23898 | # rely on this symbol name, it's probably fine to never include it in |
| 23899 | # preloaded symbol tables. |
| 23900 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23901 | # Just being paranoid about ensuring that cc_basename is set. |
| 23902 | for cc_temp in $compiler""; do |
| 23903 | case $cc_temp in |
| 23904 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23905 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23906 | \-*) ;; |
| 23907 | *) break;; |
| 23908 | esac |
| 23909 | done |
| 23910 | 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] | 23911 | |
| 23912 | case $host_os in |
| 23913 | cygwin* | mingw* | pw32*) |
| 23914 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 23915 | # When not using gcc, we currently assume that we are using |
| 23916 | # Microsoft Visual C++. |
| 23917 | if test "$GCC" != yes; then |
| 23918 | with_gnu_ld=no |
| 23919 | fi |
| 23920 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23921 | interix*) |
| 23922 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 23923 | with_gnu_ld=yes |
| 23924 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23925 | openbsd*) |
| 23926 | with_gnu_ld=no |
| 23927 | ;; |
| 23928 | esac |
| 23929 | |
| 23930 | ld_shlibs_GCJ=yes |
| 23931 | if test "$with_gnu_ld" = yes; then |
| 23932 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 23933 | wlarc='${wl}' |
| 23934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23935 | # Set some defaults for GNU ld with shared library support. These |
| 23936 | # are reset later if shared libraries are not supported. Putting them |
| 23937 | # here allows them to be overridden if necessary. |
| 23938 | runpath_var=LD_RUN_PATH |
| 23939 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 23940 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 23941 | # ancient GNU ld didn't support --whole-archive et. al. |
| 23942 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 23943 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 23944 | else |
| 23945 | whole_archive_flag_spec_GCJ= |
| 23946 | fi |
| 23947 | supports_anon_versioning=no |
| 23948 | case `$LD -v 2>/dev/null` in |
| 23949 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 23950 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 23951 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 23952 | *\ 2.11.*) ;; # other 2.11 versions |
| 23953 | *) supports_anon_versioning=yes ;; |
| 23954 | esac |
| 23955 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23956 | # See if GNU ld supports shared libraries. |
| 23957 | case $host_os in |
| 23958 | aix3* | aix4* | aix5*) |
| 23959 | # On AIX/PPC, the GNU linker is very broken |
| 23960 | if test "$host_cpu" != ia64; then |
| 23961 | ld_shlibs_GCJ=no |
| 23962 | cat <<EOF 1>&2 |
| 23963 | |
| 23964 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 23965 | *** to be unable to reliably create shared libraries on AIX. |
| 23966 | *** Therefore, libtool is disabling shared libraries support. If you |
| 23967 | *** really care for shared libraries, you may want to modify your PATH |
| 23968 | *** so that a non-GNU linker is found, and then restart. |
| 23969 | |
| 23970 | EOF |
| 23971 | fi |
| 23972 | ;; |
| 23973 | |
| 23974 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23975 | 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] | 23976 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23977 | hardcode_minus_L_GCJ=yes |
| 23978 | |
| 23979 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 23980 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 23981 | # to version 4, is to share data among multiple programs linked |
| 23982 | # with the same dynamic library. Since this doesn't match the |
| 23983 | # behavior of shared libraries on other platforms, we can't use |
| 23984 | # them. |
| 23985 | ld_shlibs_GCJ=no |
| 23986 | ;; |
| 23987 | |
| 23988 | beos*) |
| 23989 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 23990 | allow_undefined_flag_GCJ=unsupported |
| 23991 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 23992 | # support --undefined. This deserves some investigation. FIXME |
| 23993 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23994 | else |
| 23995 | ld_shlibs_GCJ=no |
| 23996 | fi |
| 23997 | ;; |
| 23998 | |
| 23999 | cygwin* | mingw* | pw32*) |
| 24000 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24001 | # as there is no search path for DLLs. |
| 24002 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24003 | allow_undefined_flag_GCJ=unsupported |
| 24004 | always_export_symbols_GCJ=no |
| 24005 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24006 | 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] | 24007 | |
| 24008 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24009 | 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] | 24010 | # If the export-symbols file already is a .def file (1st line |
| 24011 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24012 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24013 | cp $export_symbols $output_objdir/$soname.def; |
| 24014 | else |
| 24015 | echo EXPORTS > $output_objdir/$soname.def; |
| 24016 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24017 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24018 | $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] | 24019 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24020 | ld_shlibs_GCJ=no |
| 24021 | fi |
| 24022 | ;; |
| 24023 | |
| 24024 | interix3*) |
| 24025 | hardcode_direct_GCJ=no |
| 24026 | hardcode_shlibpath_var_GCJ=no |
| 24027 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24028 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24029 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24030 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24031 | # default) and relocated if they conflict, which is a slow very memory |
| 24032 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24033 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24034 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24035 | 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' |
| 24036 | 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' |
| 24037 | ;; |
| 24038 | |
| 24039 | linux*) |
| 24040 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24041 | tmp_addflag= |
| 24042 | case $cc_basename,$host_cpu in |
| 24043 | pgcc*) # Portland Group C compiler |
| 24044 | 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' |
| 24045 | tmp_addflag=' $pic_flag' |
| 24046 | ;; |
| 24047 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24048 | 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' |
| 24049 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24050 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24051 | tmp_addflag=' -i_dynamic' ;; |
| 24052 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24053 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24054 | ifc* | ifort*) # Intel Fortran compiler |
| 24055 | tmp_addflag=' -nofor_main' ;; |
| 24056 | esac |
| 24057 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24058 | |
| 24059 | if test $supports_anon_versioning = yes; then |
| 24060 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24061 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24062 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24063 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24064 | fi |
| 24065 | else |
| 24066 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24067 | fi |
| 24068 | ;; |
| 24069 | |
| 24070 | netbsd*) |
| 24071 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24072 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24073 | wlarc= |
| 24074 | else |
| 24075 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24076 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24077 | fi |
| 24078 | ;; |
| 24079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24080 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24081 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24082 | ld_shlibs_GCJ=no |
| 24083 | cat <<EOF 1>&2 |
| 24084 | |
| 24085 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24086 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24087 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24088 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24089 | *** your PATH or compiler configuration so that the native linker is |
| 24090 | *** used, and then restart. |
| 24091 | |
| 24092 | EOF |
| 24093 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24094 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24095 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24096 | else |
| 24097 | ld_shlibs_GCJ=no |
| 24098 | fi |
| 24099 | ;; |
| 24100 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24101 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24102 | case `$LD -v 2>&1` in |
| 24103 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24104 | ld_shlibs_GCJ=no |
| 24105 | cat <<_LT_EOF 1>&2 |
| 24106 | |
| 24107 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24108 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24109 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24110 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24111 | *** your PATH or compiler configuration so that the native linker is |
| 24112 | *** used, and then restart. |
| 24113 | |
| 24114 | _LT_EOF |
| 24115 | ;; |
| 24116 | *) |
| 24117 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24118 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24119 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24120 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24121 | else |
| 24122 | ld_shlibs_GCJ=no |
| 24123 | fi |
| 24124 | ;; |
| 24125 | esac |
| 24126 | ;; |
| 24127 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24128 | sunos4*) |
| 24129 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24130 | wlarc= |
| 24131 | hardcode_direct_GCJ=yes |
| 24132 | hardcode_shlibpath_var_GCJ=no |
| 24133 | ;; |
| 24134 | |
| 24135 | *) |
| 24136 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24137 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24138 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24139 | else |
| 24140 | ld_shlibs_GCJ=no |
| 24141 | fi |
| 24142 | ;; |
| 24143 | esac |
| 24144 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24145 | if test "$ld_shlibs_GCJ" = no; then |
| 24146 | runpath_var= |
| 24147 | hardcode_libdir_flag_spec_GCJ= |
| 24148 | export_dynamic_flag_spec_GCJ= |
| 24149 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24150 | fi |
| 24151 | else |
| 24152 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24153 | case $host_os in |
| 24154 | aix3*) |
| 24155 | allow_undefined_flag_GCJ=unsupported |
| 24156 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24157 | 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] | 24158 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24159 | # are no directories specified by -L. |
| 24160 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24161 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24162 | # Neither direct hardcoding nor static linking is supported with a |
| 24163 | # broken collect2. |
| 24164 | hardcode_direct_GCJ=unsupported |
| 24165 | fi |
| 24166 | ;; |
| 24167 | |
| 24168 | aix4* | aix5*) |
| 24169 | if test "$host_cpu" = ia64; then |
| 24170 | # On IA64, the linker does run time linking by default, so we don't |
| 24171 | # have to do anything special. |
| 24172 | aix_use_runtimelinking=no |
| 24173 | exp_sym_flag='-Bexport' |
| 24174 | no_entry_flag="" |
| 24175 | else |
| 24176 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24177 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24178 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24179 | 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' |
| 24180 | else |
| 24181 | 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' |
| 24182 | fi |
| 24183 | aix_use_runtimelinking=no |
| 24184 | |
| 24185 | # Test if we are trying to use run time linking or normal |
| 24186 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24187 | # need to do runtime linking. |
| 24188 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24189 | for ld_flag in $LDFLAGS; do |
| 24190 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24191 | aix_use_runtimelinking=yes |
| 24192 | break |
| 24193 | fi |
| 24194 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24195 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24196 | esac |
| 24197 | |
| 24198 | exp_sym_flag='-bexport' |
| 24199 | no_entry_flag='-bnoentry' |
| 24200 | fi |
| 24201 | |
| 24202 | # When large executables or shared objects are built, AIX ld can |
| 24203 | # have problems creating the table of contents. If linking a library |
| 24204 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24205 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24206 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24207 | |
| 24208 | archive_cmds_GCJ='' |
| 24209 | hardcode_direct_GCJ=yes |
| 24210 | hardcode_libdir_separator_GCJ=':' |
| 24211 | link_all_deplibs_GCJ=yes |
| 24212 | |
| 24213 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24214 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24215 | # We only want to do this on AIX 4.2 and lower, the check |
| 24216 | # below for broken collect2 doesn't work under 4.3+ |
| 24217 | collect2name=`${CC} -print-prog-name=collect2` |
| 24218 | if test -f "$collect2name" && \ |
| 24219 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24220 | then |
| 24221 | # We have reworked collect2 |
| 24222 | hardcode_direct_GCJ=yes |
| 24223 | else |
| 24224 | # We have old collect2 |
| 24225 | hardcode_direct_GCJ=unsupported |
| 24226 | # It fails to find uninstalled libraries when the uninstalled |
| 24227 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24228 | # to unsupported forces relinking |
| 24229 | hardcode_minus_L_GCJ=yes |
| 24230 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24231 | hardcode_libdir_separator_GCJ= |
| 24232 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24233 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24234 | esac |
| 24235 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24236 | if test "$aix_use_runtimelinking" = yes; then |
| 24237 | shared_flag="$shared_flag "'${wl}-G' |
| 24238 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24239 | else |
| 24240 | # not using gcc |
| 24241 | if test "$host_cpu" = ia64; then |
| 24242 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24243 | # chokes on -Wl,-G. The following line is correct: |
| 24244 | shared_flag='-G' |
| 24245 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24246 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24247 | shared_flag='${wl}-G' |
| 24248 | else |
| 24249 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24250 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24251 | fi |
| 24252 | fi |
| 24253 | |
| 24254 | # It seems that -bexpall does not export symbols beginning with |
| 24255 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24256 | always_export_symbols_GCJ=yes |
| 24257 | if test "$aix_use_runtimelinking" = yes; then |
| 24258 | # Warning - without using the other runtime loading flags (-brtl), |
| 24259 | # -berok will link without error, but may produce a broken library. |
| 24260 | allow_undefined_flag_GCJ='-berok' |
| 24261 | # Determine the default libpath from the value encoded in an empty executable. |
| 24262 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24263 | /* confdefs.h. */ |
| 24264 | _ACEOF |
| 24265 | cat confdefs.h >>conftest.$ac_ext |
| 24266 | cat >>conftest.$ac_ext <<_ACEOF |
| 24267 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24268 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24269 | int |
| 24270 | main () |
| 24271 | { |
| 24272 | |
| 24273 | ; |
| 24274 | return 0; |
| 24275 | } |
| 24276 | _ACEOF |
| 24277 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24278 | if { (ac_try="$ac_link" |
| 24279 | case "(($ac_try" in |
| 24280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24281 | *) ac_try_echo=$ac_try;; |
| 24282 | esac |
| 24283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24284 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24285 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24287 | rm -f conftest.er1 |
| 24288 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24290 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24292 | { (case "(($ac_try" in |
| 24293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24294 | *) ac_try_echo=$ac_try;; |
| 24295 | esac |
| 24296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24297 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24298 | ac_status=$? |
| 24299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24300 | (exit $ac_status); }; } && |
| 24301 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24302 | { (case "(($ac_try" in |
| 24303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24304 | *) ac_try_echo=$ac_try;; |
| 24305 | esac |
| 24306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24307 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24308 | ac_status=$? |
| 24309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24310 | (exit $ac_status); }; }; then |
| 24311 | |
| 24312 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24313 | }'` |
| 24314 | # Check for a 64-bit object if we didn't find anything. |
| 24315 | 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; } |
| 24316 | }'`; fi |
| 24317 | else |
| 24318 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24321 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24322 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24323 | |
| 24324 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24325 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24326 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24327 | |
| 24328 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24329 | 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] | 24330 | else |
| 24331 | if test "$host_cpu" = ia64; then |
| 24332 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24333 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24334 | 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] | 24335 | else |
| 24336 | # Determine the default libpath from the value encoded in an empty executable. |
| 24337 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24338 | /* confdefs.h. */ |
| 24339 | _ACEOF |
| 24340 | cat confdefs.h >>conftest.$ac_ext |
| 24341 | cat >>conftest.$ac_ext <<_ACEOF |
| 24342 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24343 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24344 | int |
| 24345 | main () |
| 24346 | { |
| 24347 | |
| 24348 | ; |
| 24349 | return 0; |
| 24350 | } |
| 24351 | _ACEOF |
| 24352 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24353 | if { (ac_try="$ac_link" |
| 24354 | case "(($ac_try" in |
| 24355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24356 | *) ac_try_echo=$ac_try;; |
| 24357 | esac |
| 24358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24359 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24360 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24362 | rm -f conftest.er1 |
| 24363 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24365 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24367 | { (case "(($ac_try" in |
| 24368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24369 | *) ac_try_echo=$ac_try;; |
| 24370 | esac |
| 24371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24372 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24373 | ac_status=$? |
| 24374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24375 | (exit $ac_status); }; } && |
| 24376 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24377 | { (case "(($ac_try" in |
| 24378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24379 | *) ac_try_echo=$ac_try;; |
| 24380 | esac |
| 24381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24382 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24383 | ac_status=$? |
| 24384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24385 | (exit $ac_status); }; }; then |
| 24386 | |
| 24387 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24388 | }'` |
| 24389 | # Check for a 64-bit object if we didn't find anything. |
| 24390 | 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; } |
| 24391 | }'`; fi |
| 24392 | else |
| 24393 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24396 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24397 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24398 | |
| 24399 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24400 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24401 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24402 | |
| 24403 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24404 | # Warning - without using the other run time loading flags, |
| 24405 | # -berok will link without error, but may produce a broken library. |
| 24406 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24407 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24408 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24409 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24410 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24411 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24412 | 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] | 24413 | fi |
| 24414 | fi |
| 24415 | ;; |
| 24416 | |
| 24417 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24418 | 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] | 24419 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24420 | hardcode_minus_L_GCJ=yes |
| 24421 | # see comment about different semantics on the GNU ld section |
| 24422 | ld_shlibs_GCJ=no |
| 24423 | ;; |
| 24424 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24425 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24426 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24427 | ;; |
| 24428 | |
| 24429 | cygwin* | mingw* | pw32*) |
| 24430 | # When not using gcc, we currently assume that we are using |
| 24431 | # Microsoft Visual C++. |
| 24432 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24433 | # no search path for DLLs. |
| 24434 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24435 | allow_undefined_flag_GCJ=unsupported |
| 24436 | # Tell ltmain to make .lib files, not .a files. |
| 24437 | libext=lib |
| 24438 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24439 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24440 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24441 | 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] | 24442 | # The linker will automatically build a .lib file if we build a DLL. |
| 24443 | old_archive_From_new_cmds_GCJ='true' |
| 24444 | # FIXME: Should let the user specify the lib program. |
| 24445 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24446 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24447 | enable_shared_with_static_runtimes_GCJ=yes |
| 24448 | ;; |
| 24449 | |
| 24450 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24451 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24452 | rhapsody* | darwin1.[012]) |
| 24453 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 24454 | ;; |
| 24455 | *) # Darwin 1.3 on |
| 24456 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24457 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24458 | else |
| 24459 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24460 | 10.[012]) |
| 24461 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24462 | ;; |
| 24463 | 10.*) |
| 24464 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 24465 | ;; |
| 24466 | esac |
| 24467 | fi |
| 24468 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24469 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24470 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24471 | hardcode_direct_GCJ=no |
| 24472 | hardcode_automatic_GCJ=yes |
| 24473 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24474 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24475 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24476 | if test "$GCC" = yes ; then |
| 24477 | output_verbose_link_cmd='echo' |
| 24478 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 24479 | 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] | 24480 | # 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] | 24481 | 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}' |
| 24482 | 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] | 24483 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24484 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24485 | xlc*) |
| 24486 | output_verbose_link_cmd='echo' |
| 24487 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 24488 | 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] | 24489 | # 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] | 24490 | 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}' |
| 24491 | 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] | 24492 | ;; |
| 24493 | *) |
| 24494 | ld_shlibs_GCJ=no |
| 24495 | ;; |
| 24496 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24497 | fi |
| 24498 | ;; |
| 24499 | |
| 24500 | dgux*) |
| 24501 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24502 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24503 | hardcode_shlibpath_var_GCJ=no |
| 24504 | ;; |
| 24505 | |
| 24506 | freebsd1*) |
| 24507 | ld_shlibs_GCJ=no |
| 24508 | ;; |
| 24509 | |
| 24510 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 24511 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 24512 | # does not break anything, and helps significantly (at the cost of a little |
| 24513 | # extra space). |
| 24514 | freebsd2.2*) |
| 24515 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 24516 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24517 | hardcode_direct_GCJ=yes |
| 24518 | hardcode_shlibpath_var_GCJ=no |
| 24519 | ;; |
| 24520 | |
| 24521 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 24522 | freebsd2*) |
| 24523 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24524 | hardcode_direct_GCJ=yes |
| 24525 | hardcode_minus_L_GCJ=yes |
| 24526 | hardcode_shlibpath_var_GCJ=no |
| 24527 | ;; |
| 24528 | |
| 24529 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24530 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24531 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 24532 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24533 | hardcode_direct_GCJ=yes |
| 24534 | hardcode_shlibpath_var_GCJ=no |
| 24535 | ;; |
| 24536 | |
| 24537 | hpux9*) |
| 24538 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24539 | 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] | 24540 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24541 | 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] | 24542 | fi |
| 24543 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24544 | hardcode_libdir_separator_GCJ=: |
| 24545 | hardcode_direct_GCJ=yes |
| 24546 | |
| 24547 | # hardcode_minus_L: Not really in the search PATH, |
| 24548 | # but as the default location of the library. |
| 24549 | hardcode_minus_L_GCJ=yes |
| 24550 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24551 | ;; |
| 24552 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24553 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24554 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24555 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24556 | else |
| 24557 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 24558 | fi |
| 24559 | if test "$with_gnu_ld" = no; then |
| 24560 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24561 | hardcode_libdir_separator_GCJ=: |
| 24562 | |
| 24563 | hardcode_direct_GCJ=yes |
| 24564 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24565 | |
| 24566 | # hardcode_minus_L: Not really in the search PATH, |
| 24567 | # but as the default location of the library. |
| 24568 | hardcode_minus_L_GCJ=yes |
| 24569 | fi |
| 24570 | ;; |
| 24571 | |
| 24572 | hpux11*) |
| 24573 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 24574 | case $host_cpu in |
| 24575 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24576 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24577 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24578 | ia64*) |
| 24579 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 24580 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24581 | *) |
| 24582 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24583 | ;; |
| 24584 | esac |
| 24585 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24586 | case $host_cpu in |
| 24587 | hppa*64*) |
| 24588 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24589 | ;; |
| 24590 | ia64*) |
| 24591 | 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] | 24592 | ;; |
| 24593 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24594 | 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] | 24595 | ;; |
| 24596 | esac |
| 24597 | fi |
| 24598 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24599 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24600 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24602 | case $host_cpu in |
| 24603 | hppa*64*|ia64*) |
| 24604 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 24605 | hardcode_direct_GCJ=no |
| 24606 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24607 | ;; |
| 24608 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24609 | hardcode_direct_GCJ=yes |
| 24610 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24611 | |
| 24612 | # hardcode_minus_L: Not really in the search PATH, |
| 24613 | # but as the default location of the library. |
| 24614 | hardcode_minus_L_GCJ=yes |
| 24615 | ;; |
| 24616 | esac |
| 24617 | fi |
| 24618 | ;; |
| 24619 | |
| 24620 | irix5* | irix6* | nonstopux*) |
| 24621 | if test "$GCC" = yes; then |
| 24622 | 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' |
| 24623 | else |
| 24624 | 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' |
| 24625 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 24626 | fi |
| 24627 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24628 | hardcode_libdir_separator_GCJ=: |
| 24629 | link_all_deplibs_GCJ=yes |
| 24630 | ;; |
| 24631 | |
| 24632 | netbsd*) |
| 24633 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24634 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 24635 | else |
| 24636 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 24637 | fi |
| 24638 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24639 | hardcode_direct_GCJ=yes |
| 24640 | hardcode_shlibpath_var_GCJ=no |
| 24641 | ;; |
| 24642 | |
| 24643 | newsos6) |
| 24644 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24645 | hardcode_direct_GCJ=yes |
| 24646 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24647 | hardcode_libdir_separator_GCJ=: |
| 24648 | hardcode_shlibpath_var_GCJ=no |
| 24649 | ;; |
| 24650 | |
| 24651 | openbsd*) |
| 24652 | hardcode_direct_GCJ=yes |
| 24653 | hardcode_shlibpath_var_GCJ=no |
| 24654 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 24655 | 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] | 24656 | 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] | 24657 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24658 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24659 | else |
| 24660 | case $host_os in |
| 24661 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 24662 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24663 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24664 | ;; |
| 24665 | *) |
| 24666 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 24667 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24668 | ;; |
| 24669 | esac |
| 24670 | fi |
| 24671 | ;; |
| 24672 | |
| 24673 | os2*) |
| 24674 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24675 | hardcode_minus_L_GCJ=yes |
| 24676 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24677 | 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] | 24678 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 24679 | ;; |
| 24680 | |
| 24681 | osf3*) |
| 24682 | if test "$GCC" = yes; then |
| 24683 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24684 | 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' |
| 24685 | else |
| 24686 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24687 | 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' |
| 24688 | fi |
| 24689 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24690 | hardcode_libdir_separator_GCJ=: |
| 24691 | ;; |
| 24692 | |
| 24693 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 24694 | if test "$GCC" = yes; then |
| 24695 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24696 | 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' |
| 24697 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24698 | else |
| 24699 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24700 | 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] | 24701 | 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] | 24702 | $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] | 24703 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24704 | # Both c and cxx compiler support -rpath directly |
| 24705 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 24706 | fi |
| 24707 | hardcode_libdir_separator_GCJ=: |
| 24708 | ;; |
| 24709 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24710 | solaris*) |
| 24711 | no_undefined_flag_GCJ=' -z text' |
| 24712 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24713 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24714 | 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] | 24715 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24716 | $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] | 24717 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24718 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24719 | 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] | 24720 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24721 | $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] | 24722 | fi |
| 24723 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24724 | hardcode_shlibpath_var_GCJ=no |
| 24725 | case $host_os in |
| 24726 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24727 | *) |
| 24728 | # The compiler driver will combine linker options so we |
| 24729 | # cannot just pass the convience library names through |
| 24730 | # without $wl, iff we do not link with $LD. |
| 24731 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 24732 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 24733 | case $wlarc in |
| 24734 | '') |
| 24735 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 24736 | *) |
| 24737 | 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' ;; |
| 24738 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24739 | esac |
| 24740 | link_all_deplibs_GCJ=yes |
| 24741 | ;; |
| 24742 | |
| 24743 | sunos4*) |
| 24744 | if test "x$host_vendor" = xsequent; then |
| 24745 | # Use $CC to link under sequent, because it throws in some extra .o |
| 24746 | # files that make .init and .fini sections work. |
| 24747 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24748 | else |
| 24749 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 24750 | fi |
| 24751 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24752 | hardcode_direct_GCJ=yes |
| 24753 | hardcode_minus_L_GCJ=yes |
| 24754 | hardcode_shlibpath_var_GCJ=no |
| 24755 | ;; |
| 24756 | |
| 24757 | sysv4) |
| 24758 | case $host_vendor in |
| 24759 | sni) |
| 24760 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24761 | hardcode_direct_GCJ=yes # is this really true??? |
| 24762 | ;; |
| 24763 | siemens) |
| 24764 | ## LD is ld it makes a PLAMLIB |
| 24765 | ## CC just makes a GrossModule. |
| 24766 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 24767 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 24768 | hardcode_direct_GCJ=no |
| 24769 | ;; |
| 24770 | motorola) |
| 24771 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24772 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 24773 | ;; |
| 24774 | esac |
| 24775 | runpath_var='LD_RUN_PATH' |
| 24776 | hardcode_shlibpath_var_GCJ=no |
| 24777 | ;; |
| 24778 | |
| 24779 | sysv4.3*) |
| 24780 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24781 | hardcode_shlibpath_var_GCJ=no |
| 24782 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 24783 | ;; |
| 24784 | |
| 24785 | sysv4*MP*) |
| 24786 | if test -d /usr/nec; then |
| 24787 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24788 | hardcode_shlibpath_var_GCJ=no |
| 24789 | runpath_var=LD_RUN_PATH |
| 24790 | hardcode_runpath_var=yes |
| 24791 | ld_shlibs_GCJ=yes |
| 24792 | fi |
| 24793 | ;; |
| 24794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24795 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 24796 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24797 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24798 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24799 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24800 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24801 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24802 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24803 | 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] | 24804 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24805 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24806 | 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] | 24807 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24808 | ;; |
| 24809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24810 | sysv5* | sco3.2v5* | sco5v6*) |
| 24811 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 24812 | # link with -lc, and that would cause any symbols used from libc to |
| 24813 | # always be unresolved, which means just about no library would |
| 24814 | # ever link correctly. If we're not using GNU ld we use -z text |
| 24815 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 24816 | # as -z defs. |
| 24817 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24818 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 24819 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24820 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24821 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 24822 | hardcode_libdir_separator_GCJ=':' |
| 24823 | link_all_deplibs_GCJ=yes |
| 24824 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24825 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24826 | |
| 24827 | if test "$GCC" = yes; then |
| 24828 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24829 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24830 | else |
| 24831 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24832 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24833 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24834 | ;; |
| 24835 | |
| 24836 | uts4*) |
| 24837 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24838 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24839 | hardcode_shlibpath_var_GCJ=no |
| 24840 | ;; |
| 24841 | |
| 24842 | *) |
| 24843 | ld_shlibs_GCJ=no |
| 24844 | ;; |
| 24845 | esac |
| 24846 | fi |
| 24847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24848 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 24849 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24850 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 24851 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24852 | # |
| 24853 | # Do we need to explicitly link libc? |
| 24854 | # |
| 24855 | case "x$archive_cmds_need_lc_GCJ" in |
| 24856 | x|xyes) |
| 24857 | # Assume -lc should be added |
| 24858 | archive_cmds_need_lc_GCJ=yes |
| 24859 | |
| 24860 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 24861 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24862 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24863 | # FIXME: we may have to deal with multi-command sequences. |
| 24864 | ;; |
| 24865 | '$CC '*) |
| 24866 | # Test whether the compiler implicitly links with -lc since on some |
| 24867 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 24868 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24869 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 24870 | 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] | 24871 | $rm conftest* |
| 24872 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24873 | |
| 24874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24875 | (eval $ac_compile) 2>&5 |
| 24876 | ac_status=$? |
| 24877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24878 | (exit $ac_status); } 2>conftest.err; then |
| 24879 | soname=conftest |
| 24880 | lib=conftest |
| 24881 | libobjs=conftest.$ac_objext |
| 24882 | deplibs= |
| 24883 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24884 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24885 | compiler_flags=-v |
| 24886 | linker_flags=-v |
| 24887 | verstring= |
| 24888 | output_objdir=. |
| 24889 | libname=conftest |
| 24890 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 24891 | allow_undefined_flag_GCJ= |
| 24892 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 24893 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 24894 | ac_status=$? |
| 24895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24896 | (exit $ac_status); } |
| 24897 | then |
| 24898 | archive_cmds_need_lc_GCJ=no |
| 24899 | else |
| 24900 | archive_cmds_need_lc_GCJ=yes |
| 24901 | fi |
| 24902 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 24903 | else |
| 24904 | cat conftest.err 1>&5 |
| 24905 | fi |
| 24906 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24907 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 24908 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24909 | ;; |
| 24910 | esac |
| 24911 | fi |
| 24912 | ;; |
| 24913 | esac |
| 24914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24915 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 24916 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24917 | library_names_spec= |
| 24918 | libname_spec='lib$name' |
| 24919 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24920 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24921 | postinstall_cmds= |
| 24922 | postuninstall_cmds= |
| 24923 | finish_cmds= |
| 24924 | finish_eval= |
| 24925 | shlibpath_var= |
| 24926 | shlibpath_overrides_runpath=unknown |
| 24927 | version_type=none |
| 24928 | dynamic_linker="$host_os ld.so" |
| 24929 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 24930 | if test "$GCC" = yes; then |
| 24931 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 24932 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 24933 | # if the path contains ";" then we assume it to be the separator |
| 24934 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 24935 | # assumed that no part of a normal pathname contains ";" but that should |
| 24936 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 24937 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 24938 | else |
| 24939 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 24940 | fi |
| 24941 | else |
| 24942 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 24943 | fi |
| 24944 | need_lib_prefix=unknown |
| 24945 | hardcode_into_libs=no |
| 24946 | |
| 24947 | # when you set need_version to no, make sure it does not cause -set_version |
| 24948 | # flags to be left without arguments |
| 24949 | need_version=unknown |
| 24950 | |
| 24951 | case $host_os in |
| 24952 | aix3*) |
| 24953 | version_type=linux |
| 24954 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 24955 | shlibpath_var=LIBPATH |
| 24956 | |
| 24957 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 24958 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24959 | ;; |
| 24960 | |
| 24961 | aix4* | aix5*) |
| 24962 | version_type=linux |
| 24963 | need_lib_prefix=no |
| 24964 | need_version=no |
| 24965 | hardcode_into_libs=yes |
| 24966 | if test "$host_cpu" = ia64; then |
| 24967 | # AIX 5 supports IA64 |
| 24968 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 24969 | shlibpath_var=LD_LIBRARY_PATH |
| 24970 | else |
| 24971 | # With GCC up to 2.95.x, collect2 would create an import file |
| 24972 | # for dependence libraries. The import file would start with |
| 24973 | # the line `#! .'. This would cause the generated library to |
| 24974 | # depend on `.', always an invalid library. This was fixed in |
| 24975 | # development snapshots of GCC prior to 3.0. |
| 24976 | case $host_os in |
| 24977 | aix4 | aix4.[01] | aix4.[01].*) |
| 24978 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 24979 | echo ' yes ' |
| 24980 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 24981 | : |
| 24982 | else |
| 24983 | can_build_shared=no |
| 24984 | fi |
| 24985 | ;; |
| 24986 | esac |
| 24987 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 24988 | # soname into executable. Probably we can add versioning support to |
| 24989 | # collect2, so additional links can be useful in future. |
| 24990 | if test "$aix_use_runtimelinking" = yes; then |
| 24991 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 24992 | # instead of lib<name>.a to let people know that these are not |
| 24993 | # typical AIX shared libraries. |
| 24994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24995 | else |
| 24996 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 24997 | # and later when we are not doing run time linking. |
| 24998 | library_names_spec='${libname}${release}.a $libname.a' |
| 24999 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25000 | fi |
| 25001 | shlibpath_var=LIBPATH |
| 25002 | fi |
| 25003 | ;; |
| 25004 | |
| 25005 | amigaos*) |
| 25006 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25007 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25008 | 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] | 25009 | ;; |
| 25010 | |
| 25011 | beos*) |
| 25012 | library_names_spec='${libname}${shared_ext}' |
| 25013 | dynamic_linker="$host_os ld.so" |
| 25014 | shlibpath_var=LIBRARY_PATH |
| 25015 | ;; |
| 25016 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25017 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25018 | version_type=linux |
| 25019 | need_version=no |
| 25020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25021 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25022 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25023 | shlibpath_var=LD_LIBRARY_PATH |
| 25024 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25025 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25026 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25027 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25028 | # libtool to hard-code these into programs |
| 25029 | ;; |
| 25030 | |
| 25031 | cygwin* | mingw* | pw32*) |
| 25032 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25033 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25034 | need_version=no |
| 25035 | need_lib_prefix=no |
| 25036 | |
| 25037 | case $GCC,$host_os in |
| 25038 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25039 | library_names_spec='$libname.dll.a' |
| 25040 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25041 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25042 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25043 | dldir=$destdir/`dirname \$dlpath`~ |
| 25044 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25045 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25046 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25047 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25048 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25049 | $rm \$dlpath' |
| 25050 | shlibpath_overrides_runpath=yes |
| 25051 | |
| 25052 | case $host_os in |
| 25053 | cygwin*) |
| 25054 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25055 | 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] | 25056 | 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] | 25057 | ;; |
| 25058 | mingw*) |
| 25059 | # MinGW DLLs use traditional 'lib' prefix |
| 25060 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25061 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25062 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25063 | # It is most probably a Windows format PATH printed by |
| 25064 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25065 | # path with ; separators, and with drive letters. We can handle the |
| 25066 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25067 | # especially as we might pass files found there to a mingw objdump, |
| 25068 | # which wouldn't understand a cygwinified path. Ahh. |
| 25069 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25070 | else |
| 25071 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25072 | fi |
| 25073 | ;; |
| 25074 | pw32*) |
| 25075 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25076 | 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] | 25077 | ;; |
| 25078 | esac |
| 25079 | ;; |
| 25080 | |
| 25081 | *) |
| 25082 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25083 | ;; |
| 25084 | esac |
| 25085 | dynamic_linker='Win32 ld.exe' |
| 25086 | # FIXME: first we should search . and the directory the executable is in |
| 25087 | shlibpath_var=PATH |
| 25088 | ;; |
| 25089 | |
| 25090 | darwin* | rhapsody*) |
| 25091 | dynamic_linker="$host_os dyld" |
| 25092 | version_type=darwin |
| 25093 | need_lib_prefix=no |
| 25094 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25095 | 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] | 25096 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25097 | shlibpath_overrides_runpath=yes |
| 25098 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25099 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25100 | # 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] | 25101 | if test "$GCC" = yes; then |
| 25102 | 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"` |
| 25103 | else |
| 25104 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25105 | fi |
| 25106 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25107 | ;; |
| 25108 | |
| 25109 | dgux*) |
| 25110 | version_type=linux |
| 25111 | need_lib_prefix=no |
| 25112 | need_version=no |
| 25113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25114 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25115 | shlibpath_var=LD_LIBRARY_PATH |
| 25116 | ;; |
| 25117 | |
| 25118 | freebsd1*) |
| 25119 | dynamic_linker=no |
| 25120 | ;; |
| 25121 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25122 | kfreebsd*-gnu) |
| 25123 | version_type=linux |
| 25124 | need_lib_prefix=no |
| 25125 | need_version=no |
| 25126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25127 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25128 | shlibpath_var=LD_LIBRARY_PATH |
| 25129 | shlibpath_overrides_runpath=no |
| 25130 | hardcode_into_libs=yes |
| 25131 | dynamic_linker='GNU ld.so' |
| 25132 | ;; |
| 25133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25134 | freebsd* | dragonfly*) |
| 25135 | # DragonFly does not have aout. When/if they implement a new |
| 25136 | # versioning mechanism, adjust this. |
| 25137 | if test -x /usr/bin/objformat; then |
| 25138 | objformat=`/usr/bin/objformat` |
| 25139 | else |
| 25140 | case $host_os in |
| 25141 | freebsd[123]*) objformat=aout ;; |
| 25142 | *) objformat=elf ;; |
| 25143 | esac |
| 25144 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25145 | version_type=freebsd-$objformat |
| 25146 | case $version_type in |
| 25147 | freebsd-elf*) |
| 25148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25149 | need_version=no |
| 25150 | need_lib_prefix=no |
| 25151 | ;; |
| 25152 | freebsd-*) |
| 25153 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25154 | need_version=yes |
| 25155 | ;; |
| 25156 | esac |
| 25157 | shlibpath_var=LD_LIBRARY_PATH |
| 25158 | case $host_os in |
| 25159 | freebsd2*) |
| 25160 | shlibpath_overrides_runpath=yes |
| 25161 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25162 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25163 | shlibpath_overrides_runpath=yes |
| 25164 | hardcode_into_libs=yes |
| 25165 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25166 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25167 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25168 | shlibpath_overrides_runpath=no |
| 25169 | hardcode_into_libs=yes |
| 25170 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25171 | freebsd*) # from 4.6 on |
| 25172 | shlibpath_overrides_runpath=yes |
| 25173 | hardcode_into_libs=yes |
| 25174 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25175 | esac |
| 25176 | ;; |
| 25177 | |
| 25178 | gnu*) |
| 25179 | version_type=linux |
| 25180 | need_lib_prefix=no |
| 25181 | need_version=no |
| 25182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25183 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25184 | shlibpath_var=LD_LIBRARY_PATH |
| 25185 | hardcode_into_libs=yes |
| 25186 | ;; |
| 25187 | |
| 25188 | hpux9* | hpux10* | hpux11*) |
| 25189 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25190 | # link against other versions. |
| 25191 | version_type=sunos |
| 25192 | need_lib_prefix=no |
| 25193 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25194 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25195 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25196 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25197 | hardcode_into_libs=yes |
| 25198 | dynamic_linker="$host_os dld.so" |
| 25199 | shlibpath_var=LD_LIBRARY_PATH |
| 25200 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25202 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25203 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25204 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25205 | else |
| 25206 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25207 | fi |
| 25208 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25209 | ;; |
| 25210 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25211 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25212 | hardcode_into_libs=yes |
| 25213 | dynamic_linker="$host_os dld.sl" |
| 25214 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25215 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25216 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25217 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25218 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25219 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25220 | ;; |
| 25221 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25222 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25223 | dynamic_linker="$host_os dld.sl" |
| 25224 | shlibpath_var=SHLIB_PATH |
| 25225 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25227 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25228 | ;; |
| 25229 | esac |
| 25230 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25231 | postinstall_cmds='chmod 555 $lib' |
| 25232 | ;; |
| 25233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25234 | interix3*) |
| 25235 | version_type=linux |
| 25236 | need_lib_prefix=no |
| 25237 | need_version=no |
| 25238 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25239 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25240 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25241 | shlibpath_var=LD_LIBRARY_PATH |
| 25242 | shlibpath_overrides_runpath=no |
| 25243 | hardcode_into_libs=yes |
| 25244 | ;; |
| 25245 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25246 | irix5* | irix6* | nonstopux*) |
| 25247 | case $host_os in |
| 25248 | nonstopux*) version_type=nonstopux ;; |
| 25249 | *) |
| 25250 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25251 | version_type=linux |
| 25252 | else |
| 25253 | version_type=irix |
| 25254 | fi ;; |
| 25255 | esac |
| 25256 | need_lib_prefix=no |
| 25257 | need_version=no |
| 25258 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25260 | case $host_os in |
| 25261 | irix5* | nonstopux*) |
| 25262 | libsuff= shlibsuff= |
| 25263 | ;; |
| 25264 | *) |
| 25265 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25266 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25267 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25268 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25269 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25270 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25271 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25272 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25273 | esac |
| 25274 | ;; |
| 25275 | esac |
| 25276 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25277 | shlibpath_overrides_runpath=no |
| 25278 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25279 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25280 | hardcode_into_libs=yes |
| 25281 | ;; |
| 25282 | |
| 25283 | # No shared lib support for Linux oldld, aout, or coff. |
| 25284 | linux*oldld* | linux*aout* | linux*coff*) |
| 25285 | dynamic_linker=no |
| 25286 | ;; |
| 25287 | |
| 25288 | # This must be Linux ELF. |
| 25289 | linux*) |
| 25290 | version_type=linux |
| 25291 | need_lib_prefix=no |
| 25292 | need_version=no |
| 25293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25294 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25295 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25296 | shlibpath_var=LD_LIBRARY_PATH |
| 25297 | shlibpath_overrides_runpath=no |
| 25298 | # This implies no fast_install, which is unacceptable. |
| 25299 | # Some rework will be needed to allow for fast_install |
| 25300 | # before this can be enabled. |
| 25301 | hardcode_into_libs=yes |
| 25302 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25303 | # Append ld.so.conf contents to the search path |
| 25304 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25305 | 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] | 25306 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25307 | fi |
| 25308 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25309 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25310 | # powerpc, because MkLinux only supported shared libraries with the |
| 25311 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25312 | # most powerpc-linux boxes support dynamic linking these days and |
| 25313 | # people can always --disable-shared, the test was removed, and we |
| 25314 | # assume the GNU/Linux dynamic linker is in use. |
| 25315 | dynamic_linker='GNU/Linux ld.so' |
| 25316 | ;; |
| 25317 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25318 | knetbsd*-gnu) |
| 25319 | version_type=linux |
| 25320 | need_lib_prefix=no |
| 25321 | need_version=no |
| 25322 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25323 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25324 | shlibpath_var=LD_LIBRARY_PATH |
| 25325 | shlibpath_overrides_runpath=no |
| 25326 | hardcode_into_libs=yes |
| 25327 | dynamic_linker='GNU ld.so' |
| 25328 | ;; |
| 25329 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25330 | netbsd*) |
| 25331 | version_type=sunos |
| 25332 | need_lib_prefix=no |
| 25333 | need_version=no |
| 25334 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25336 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25337 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25338 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25339 | 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] | 25340 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25341 | dynamic_linker='NetBSD ld.elf_so' |
| 25342 | fi |
| 25343 | shlibpath_var=LD_LIBRARY_PATH |
| 25344 | shlibpath_overrides_runpath=yes |
| 25345 | hardcode_into_libs=yes |
| 25346 | ;; |
| 25347 | |
| 25348 | newsos6) |
| 25349 | version_type=linux |
| 25350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25351 | shlibpath_var=LD_LIBRARY_PATH |
| 25352 | shlibpath_overrides_runpath=yes |
| 25353 | ;; |
| 25354 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25355 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25356 | version_type=linux |
| 25357 | need_lib_prefix=no |
| 25358 | need_version=no |
| 25359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25360 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25361 | shlibpath_var=LD_LIBRARY_PATH |
| 25362 | shlibpath_overrides_runpath=yes |
| 25363 | ;; |
| 25364 | |
| 25365 | openbsd*) |
| 25366 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25367 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25368 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25369 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25370 | case $host_os in |
| 25371 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25372 | *) need_version=no ;; |
| 25373 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25375 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25376 | shlibpath_var=LD_LIBRARY_PATH |
| 25377 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25378 | case $host_os in |
| 25379 | openbsd2.[89] | openbsd2.[89].*) |
| 25380 | shlibpath_overrides_runpath=no |
| 25381 | ;; |
| 25382 | *) |
| 25383 | shlibpath_overrides_runpath=yes |
| 25384 | ;; |
| 25385 | esac |
| 25386 | else |
| 25387 | shlibpath_overrides_runpath=yes |
| 25388 | fi |
| 25389 | ;; |
| 25390 | |
| 25391 | os2*) |
| 25392 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25393 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25394 | need_lib_prefix=no |
| 25395 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25396 | dynamic_linker='OS/2 ld.exe' |
| 25397 | shlibpath_var=LIBPATH |
| 25398 | ;; |
| 25399 | |
| 25400 | osf3* | osf4* | osf5*) |
| 25401 | version_type=osf |
| 25402 | need_lib_prefix=no |
| 25403 | need_version=no |
| 25404 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25406 | shlibpath_var=LD_LIBRARY_PATH |
| 25407 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25408 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25409 | ;; |
| 25410 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25411 | solaris*) |
| 25412 | version_type=linux |
| 25413 | need_lib_prefix=no |
| 25414 | need_version=no |
| 25415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25416 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25417 | shlibpath_var=LD_LIBRARY_PATH |
| 25418 | shlibpath_overrides_runpath=yes |
| 25419 | hardcode_into_libs=yes |
| 25420 | # ldd complains unless libraries are executable |
| 25421 | postinstall_cmds='chmod +x $lib' |
| 25422 | ;; |
| 25423 | |
| 25424 | sunos4*) |
| 25425 | version_type=sunos |
| 25426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25427 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25428 | shlibpath_var=LD_LIBRARY_PATH |
| 25429 | shlibpath_overrides_runpath=yes |
| 25430 | if test "$with_gnu_ld" = yes; then |
| 25431 | need_lib_prefix=no |
| 25432 | fi |
| 25433 | need_version=yes |
| 25434 | ;; |
| 25435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25436 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25437 | version_type=linux |
| 25438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25439 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25440 | shlibpath_var=LD_LIBRARY_PATH |
| 25441 | case $host_vendor in |
| 25442 | sni) |
| 25443 | shlibpath_overrides_runpath=no |
| 25444 | need_lib_prefix=no |
| 25445 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 25446 | runpath_var=LD_RUN_PATH |
| 25447 | ;; |
| 25448 | siemens) |
| 25449 | need_lib_prefix=no |
| 25450 | ;; |
| 25451 | motorola) |
| 25452 | need_lib_prefix=no |
| 25453 | need_version=no |
| 25454 | shlibpath_overrides_runpath=no |
| 25455 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 25456 | ;; |
| 25457 | esac |
| 25458 | ;; |
| 25459 | |
| 25460 | sysv4*MP*) |
| 25461 | if test -d /usr/nec ;then |
| 25462 | version_type=linux |
| 25463 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 25464 | soname_spec='$libname${shared_ext}.$major' |
| 25465 | shlibpath_var=LD_LIBRARY_PATH |
| 25466 | fi |
| 25467 | ;; |
| 25468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25469 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 25470 | version_type=freebsd-elf |
| 25471 | need_lib_prefix=no |
| 25472 | need_version=no |
| 25473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25474 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25475 | shlibpath_var=LD_LIBRARY_PATH |
| 25476 | hardcode_into_libs=yes |
| 25477 | if test "$with_gnu_ld" = yes; then |
| 25478 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 25479 | shlibpath_overrides_runpath=no |
| 25480 | else |
| 25481 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 25482 | shlibpath_overrides_runpath=yes |
| 25483 | case $host_os in |
| 25484 | sco3.2v5*) |
| 25485 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 25486 | ;; |
| 25487 | esac |
| 25488 | fi |
| 25489 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 25490 | ;; |
| 25491 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25492 | uts4*) |
| 25493 | version_type=linux |
| 25494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25495 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25496 | shlibpath_var=LD_LIBRARY_PATH |
| 25497 | ;; |
| 25498 | |
| 25499 | *) |
| 25500 | dynamic_linker=no |
| 25501 | ;; |
| 25502 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25503 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 25504 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25505 | test "$dynamic_linker" = no && can_build_shared=no |
| 25506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25507 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 25508 | if test "$GCC" = yes; then |
| 25509 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 25510 | fi |
| 25511 | |
| 25512 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 25513 | 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] | 25514 | hardcode_action_GCJ= |
| 25515 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 25516 | test -n "$runpath_var_GCJ" || \ |
| 25517 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 25518 | |
| 25519 | # We can hardcode non-existant directories. |
| 25520 | if test "$hardcode_direct_GCJ" != no && |
| 25521 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 25522 | # have to relink, otherwise we might link with an installed library |
| 25523 | # when we should be linking with a yet-to-be-installed one |
| 25524 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 25525 | test "$hardcode_minus_L_GCJ" != no; then |
| 25526 | # Linking always hardcodes the temporary library directory. |
| 25527 | hardcode_action_GCJ=relink |
| 25528 | else |
| 25529 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 25530 | hardcode_action_GCJ=immediate |
| 25531 | fi |
| 25532 | else |
| 25533 | # We cannot hardcode anything, or else we can only hardcode existing |
| 25534 | # directories. |
| 25535 | hardcode_action_GCJ=unsupported |
| 25536 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25537 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 25538 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25539 | |
| 25540 | if test "$hardcode_action_GCJ" = relink; then |
| 25541 | # Fast installation is not supported |
| 25542 | enable_fast_install=no |
| 25543 | elif test "$shlibpath_overrides_runpath" = yes || |
| 25544 | test "$enable_shared" = no; then |
| 25545 | # Fast installation is not necessary |
| 25546 | enable_fast_install=needless |
| 25547 | fi |
| 25548 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25549 | |
| 25550 | # The else clause should only fire when bootstrapping the |
| 25551 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25552 | # with your package, and you will get complaints that there are |
| 25553 | # no rules to generate ltmain.sh. |
| 25554 | if test -f "$ltmain"; then |
| 25555 | # See if we are running on zsh, and set the options which allow our commands through |
| 25556 | # without removal of \ escapes. |
| 25557 | if test -n "${ZSH_VERSION+set}" ; then |
| 25558 | setopt NO_GLOB_SUBST |
| 25559 | fi |
| 25560 | # Now quote all the things that may contain metacharacters while being |
| 25561 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25562 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25563 | 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] | 25564 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25565 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25566 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25567 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25568 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25569 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25570 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25571 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25572 | compiler_GCJ \ |
| 25573 | CC_GCJ \ |
| 25574 | LD_GCJ \ |
| 25575 | lt_prog_compiler_wl_GCJ \ |
| 25576 | lt_prog_compiler_pic_GCJ \ |
| 25577 | lt_prog_compiler_static_GCJ \ |
| 25578 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 25579 | export_dynamic_flag_spec_GCJ \ |
| 25580 | thread_safe_flag_spec_GCJ \ |
| 25581 | whole_archive_flag_spec_GCJ \ |
| 25582 | enable_shared_with_static_runtimes_GCJ \ |
| 25583 | old_archive_cmds_GCJ \ |
| 25584 | old_archive_from_new_cmds_GCJ \ |
| 25585 | predep_objects_GCJ \ |
| 25586 | postdep_objects_GCJ \ |
| 25587 | predeps_GCJ \ |
| 25588 | postdeps_GCJ \ |
| 25589 | compiler_lib_search_path_GCJ \ |
| 25590 | archive_cmds_GCJ \ |
| 25591 | archive_expsym_cmds_GCJ \ |
| 25592 | postinstall_cmds_GCJ \ |
| 25593 | postuninstall_cmds_GCJ \ |
| 25594 | old_archive_from_expsyms_cmds_GCJ \ |
| 25595 | allow_undefined_flag_GCJ \ |
| 25596 | no_undefined_flag_GCJ \ |
| 25597 | export_symbols_cmds_GCJ \ |
| 25598 | hardcode_libdir_flag_spec_GCJ \ |
| 25599 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 25600 | hardcode_libdir_separator_GCJ \ |
| 25601 | hardcode_automatic_GCJ \ |
| 25602 | module_cmds_GCJ \ |
| 25603 | module_expsym_cmds_GCJ \ |
| 25604 | lt_cv_prog_compiler_c_o_GCJ \ |
| 25605 | exclude_expsyms_GCJ \ |
| 25606 | include_expsyms_GCJ; do |
| 25607 | |
| 25608 | case $var in |
| 25609 | old_archive_cmds_GCJ | \ |
| 25610 | old_archive_from_new_cmds_GCJ | \ |
| 25611 | archive_cmds_GCJ | \ |
| 25612 | archive_expsym_cmds_GCJ | \ |
| 25613 | module_cmds_GCJ | \ |
| 25614 | module_expsym_cmds_GCJ | \ |
| 25615 | old_archive_from_expsyms_cmds_GCJ | \ |
| 25616 | export_symbols_cmds_GCJ | \ |
| 25617 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25618 | postinstall_cmds | postuninstall_cmds | \ |
| 25619 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25620 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25621 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25622 | 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] | 25623 | ;; |
| 25624 | *) |
| 25625 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 25626 | ;; |
| 25627 | esac |
| 25628 | done |
| 25629 | |
| 25630 | case $lt_echo in |
| 25631 | *'\$0 --fallback-echo"') |
| 25632 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 25633 | ;; |
| 25634 | esac |
| 25635 | |
| 25636 | cfgfile="$ofile" |
| 25637 | |
| 25638 | cat <<__EOF__ >> "$cfgfile" |
| 25639 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 25640 | |
| 25641 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 25642 | |
| 25643 | # Shell to use when invoking shell scripts. |
| 25644 | SHELL=$lt_SHELL |
| 25645 | |
| 25646 | # Whether or not to build shared libraries. |
| 25647 | build_libtool_libs=$enable_shared |
| 25648 | |
| 25649 | # Whether or not to build static libraries. |
| 25650 | build_old_libs=$enable_static |
| 25651 | |
| 25652 | # Whether or not to add -lc for building shared libraries. |
| 25653 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 25654 | |
| 25655 | # Whether or not to disallow shared libs when runtime libs are static |
| 25656 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 25657 | |
| 25658 | # Whether or not to optimize for fast installation. |
| 25659 | fast_install=$enable_fast_install |
| 25660 | |
| 25661 | # The host system. |
| 25662 | host_alias=$host_alias |
| 25663 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25664 | host_os=$host_os |
| 25665 | |
| 25666 | # The build system. |
| 25667 | build_alias=$build_alias |
| 25668 | build=$build |
| 25669 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25670 | |
| 25671 | # An echo program that does not interpret backslashes. |
| 25672 | echo=$lt_echo |
| 25673 | |
| 25674 | # The archiver. |
| 25675 | AR=$lt_AR |
| 25676 | AR_FLAGS=$lt_AR_FLAGS |
| 25677 | |
| 25678 | # A C compiler. |
| 25679 | LTCC=$lt_LTCC |
| 25680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25681 | # LTCC compiler flags. |
| 25682 | LTCFLAGS=$lt_LTCFLAGS |
| 25683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25684 | # A language-specific compiler. |
| 25685 | CC=$lt_compiler_GCJ |
| 25686 | |
| 25687 | # Is the compiler the GNU C compiler? |
| 25688 | with_gcc=$GCC_GCJ |
| 25689 | |
| 25690 | # An ERE matcher. |
| 25691 | EGREP=$lt_EGREP |
| 25692 | |
| 25693 | # The linker used to build libraries. |
| 25694 | LD=$lt_LD_GCJ |
| 25695 | |
| 25696 | # Whether we need hard or soft links. |
| 25697 | LN_S=$lt_LN_S |
| 25698 | |
| 25699 | # A BSD-compatible nm program. |
| 25700 | NM=$lt_NM |
| 25701 | |
| 25702 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25703 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25704 | |
| 25705 | # Used to examine libraries when file_magic_cmd begins "file" |
| 25706 | MAGIC_CMD=$MAGIC_CMD |
| 25707 | |
| 25708 | # Used on cygwin: DLL creation program. |
| 25709 | DLLTOOL="$DLLTOOL" |
| 25710 | |
| 25711 | # Used on cygwin: object dumper. |
| 25712 | OBJDUMP="$OBJDUMP" |
| 25713 | |
| 25714 | # Used on cygwin: assembler. |
| 25715 | AS="$AS" |
| 25716 | |
| 25717 | # The name of the directory that contains temporary libtool files. |
| 25718 | objdir=$objdir |
| 25719 | |
| 25720 | # How to create reloadable object files. |
| 25721 | reload_flag=$lt_reload_flag |
| 25722 | reload_cmds=$lt_reload_cmds |
| 25723 | |
| 25724 | # How to pass a linker flag through the compiler. |
| 25725 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 25726 | |
| 25727 | # Object file suffix (normally "o"). |
| 25728 | objext="$ac_objext" |
| 25729 | |
| 25730 | # Old archive suffix (normally "a"). |
| 25731 | libext="$libext" |
| 25732 | |
| 25733 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25734 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25735 | |
| 25736 | # Executable file suffix (normally ""). |
| 25737 | exeext="$exeext" |
| 25738 | |
| 25739 | # Additional compiler flags for building library objects. |
| 25740 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 25741 | pic_mode=$pic_mode |
| 25742 | |
| 25743 | # What is the maximum length of a command? |
| 25744 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 25745 | |
| 25746 | # Does compiler simultaneously support -c and -o options? |
| 25747 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 25748 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25749 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25750 | need_locks=$lt_need_locks |
| 25751 | |
| 25752 | # Do we need the lib prefix for modules? |
| 25753 | need_lib_prefix=$need_lib_prefix |
| 25754 | |
| 25755 | # Do we need a version for libraries? |
| 25756 | need_version=$need_version |
| 25757 | |
| 25758 | # Whether dlopen is supported. |
| 25759 | dlopen_support=$enable_dlopen |
| 25760 | |
| 25761 | # Whether dlopen of programs is supported. |
| 25762 | dlopen_self=$enable_dlopen_self |
| 25763 | |
| 25764 | # Whether dlopen of statically linked programs is supported. |
| 25765 | dlopen_self_static=$enable_dlopen_self_static |
| 25766 | |
| 25767 | # Compiler flag to prevent dynamic linking. |
| 25768 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 25769 | |
| 25770 | # Compiler flag to turn off builtin functions. |
| 25771 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 25772 | |
| 25773 | # Compiler flag to allow reflexive dlopens. |
| 25774 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 25775 | |
| 25776 | # Compiler flag to generate shared objects directly from archives. |
| 25777 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 25778 | |
| 25779 | # Compiler flag to generate thread-safe objects. |
| 25780 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 25781 | |
| 25782 | # Library versioning type. |
| 25783 | version_type=$version_type |
| 25784 | |
| 25785 | # Format of library name prefix. |
| 25786 | libname_spec=$lt_libname_spec |
| 25787 | |
| 25788 | # List of archive names. First name is the real one, the rest are links. |
| 25789 | # The last name is the one that the linker finds with -lNAME. |
| 25790 | library_names_spec=$lt_library_names_spec |
| 25791 | |
| 25792 | # The coded name of the library, if different from the real name. |
| 25793 | soname_spec=$lt_soname_spec |
| 25794 | |
| 25795 | # Commands used to build and install an old-style archive. |
| 25796 | RANLIB=$lt_RANLIB |
| 25797 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 25798 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 25799 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 25800 | |
| 25801 | # Create an old-style archive from a shared archive. |
| 25802 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 25803 | |
| 25804 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25805 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 25806 | |
| 25807 | # Commands used to build and install a shared archive. |
| 25808 | archive_cmds=$lt_archive_cmds_GCJ |
| 25809 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 25810 | postinstall_cmds=$lt_postinstall_cmds |
| 25811 | postuninstall_cmds=$lt_postuninstall_cmds |
| 25812 | |
| 25813 | # Commands used to build a loadable module (assumed same as above if empty) |
| 25814 | module_cmds=$lt_module_cmds_GCJ |
| 25815 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 25816 | |
| 25817 | # Commands to strip libraries. |
| 25818 | old_striplib=$lt_old_striplib |
| 25819 | striplib=$lt_striplib |
| 25820 | |
| 25821 | # Dependencies to place before the objects being linked to create a |
| 25822 | # shared library. |
| 25823 | predep_objects=$lt_predep_objects_GCJ |
| 25824 | |
| 25825 | # Dependencies to place after the objects being linked to create a |
| 25826 | # shared library. |
| 25827 | postdep_objects=$lt_postdep_objects_GCJ |
| 25828 | |
| 25829 | # Dependencies to place before the objects being linked to create a |
| 25830 | # shared library. |
| 25831 | predeps=$lt_predeps_GCJ |
| 25832 | |
| 25833 | # Dependencies to place after the objects being linked to create a |
| 25834 | # shared library. |
| 25835 | postdeps=$lt_postdeps_GCJ |
| 25836 | |
| 25837 | # The library search path used internally by the compiler when linking |
| 25838 | # a shared library. |
| 25839 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 25840 | |
| 25841 | # Method to check whether dependent libraries are shared objects. |
| 25842 | deplibs_check_method=$lt_deplibs_check_method |
| 25843 | |
| 25844 | # Command to use when deplibs_check_method == file_magic. |
| 25845 | file_magic_cmd=$lt_file_magic_cmd |
| 25846 | |
| 25847 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25848 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 25849 | |
| 25850 | # Flag that forces no undefined symbols. |
| 25851 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 25852 | |
| 25853 | # Commands used to finish a libtool library installation in a directory. |
| 25854 | finish_cmds=$lt_finish_cmds |
| 25855 | |
| 25856 | # Same as above, but a single script fragment to be evaled but not shown. |
| 25857 | finish_eval=$lt_finish_eval |
| 25858 | |
| 25859 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 25860 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 25861 | |
| 25862 | # Transform the output of nm in a proper C declaration |
| 25863 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 25864 | |
| 25865 | # Transform the output of nm in a C name address pair |
| 25866 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 25867 | |
| 25868 | # This is the shared library runtime path variable. |
| 25869 | runpath_var=$runpath_var |
| 25870 | |
| 25871 | # This is the shared library path variable. |
| 25872 | shlibpath_var=$shlibpath_var |
| 25873 | |
| 25874 | # Is shlibpath searched before the hard-coded library search path? |
| 25875 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 25876 | |
| 25877 | # How to hardcode a shared library path into an executable. |
| 25878 | hardcode_action=$hardcode_action_GCJ |
| 25879 | |
| 25880 | # Whether we should hardcode library paths into libraries. |
| 25881 | hardcode_into_libs=$hardcode_into_libs |
| 25882 | |
| 25883 | # Flag to hardcode \$libdir into a binary during linking. |
| 25884 | # This must work even if \$libdir does not exist. |
| 25885 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 25886 | |
| 25887 | # If ld is used when linking, flag to hardcode \$libdir into |
| 25888 | # a binary during linking. This must work even if \$libdir does |
| 25889 | # not exist. |
| 25890 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 25891 | |
| 25892 | # Whether we need a single -rpath flag with a separated argument. |
| 25893 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 25894 | |
| 25895 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 25896 | # resulting binary. |
| 25897 | hardcode_direct=$hardcode_direct_GCJ |
| 25898 | |
| 25899 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 25900 | # resulting binary. |
| 25901 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 25902 | |
| 25903 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 25904 | # the resulting binary. |
| 25905 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 25906 | |
| 25907 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 25908 | # and all subsequent libraries and executables linked against it. |
| 25909 | hardcode_automatic=$hardcode_automatic_GCJ |
| 25910 | |
| 25911 | # Variables whose values should be saved in libtool wrapper scripts and |
| 25912 | # restored at relink time. |
| 25913 | variables_saved_for_relink="$variables_saved_for_relink" |
| 25914 | |
| 25915 | # Whether libtool must link a program against all its dependency libraries. |
| 25916 | link_all_deplibs=$link_all_deplibs_GCJ |
| 25917 | |
| 25918 | # Compile-time system search path for libraries |
| 25919 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 25920 | |
| 25921 | # Run-time system search path for libraries |
| 25922 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 25923 | |
| 25924 | # Fix the shell variable \$srcfile for the compiler. |
| 25925 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 25926 | |
| 25927 | # Set to yes if exported symbols are required. |
| 25928 | always_export_symbols=$always_export_symbols_GCJ |
| 25929 | |
| 25930 | # The commands to list exported symbols. |
| 25931 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 25932 | |
| 25933 | # The commands to extract the exported symbol list from a shared archive. |
| 25934 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 25935 | |
| 25936 | # Symbols that should not be listed in the preloaded symbols. |
| 25937 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 25938 | |
| 25939 | # Symbols that must always be exported. |
| 25940 | include_expsyms=$lt_include_expsyms_GCJ |
| 25941 | |
| 25942 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 25943 | |
| 25944 | __EOF__ |
| 25945 | |
| 25946 | |
| 25947 | else |
| 25948 | # If there is no Makefile yet, we rely on a make rule to execute |
| 25949 | # `config.status --recheck' to rerun these tests and create the |
| 25950 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25951 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 25952 | if test -f "$ltmain_in"; then |
| 25953 | test -f Makefile && make "$ltmain" |
| 25954 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25955 | fi |
| 25956 | |
| 25957 | |
| 25958 | ac_ext=c |
| 25959 | ac_cpp='$CPP $CPPFLAGS' |
| 25960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25963 | |
| 25964 | CC="$lt_save_CC" |
| 25965 | |
| 25966 | else |
| 25967 | tagname="" |
| 25968 | fi |
| 25969 | ;; |
| 25970 | |
| 25971 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25972 | ac_ext=c |
| 25973 | ac_cpp='$CPP $CPPFLAGS' |
| 25974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25977 | |
| 25978 | |
| 25979 | # Source file extension for RC test sources. |
| 25980 | ac_ext=rc |
| 25981 | |
| 25982 | # Object file extension for compiled RC test sources. |
| 25983 | objext=o |
| 25984 | objext_RC=$objext |
| 25985 | |
| 25986 | # Code to be used in simple compile tests |
| 25987 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 25988 | |
| 25989 | # Code to be used in simple link tests |
| 25990 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 25991 | |
| 25992 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 25993 | |
| 25994 | # If no C compiler was specified, use CC. |
| 25995 | LTCC=${LTCC-"$CC"} |
| 25996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25997 | # If no C compiler flags were specified, use CFLAGS. |
| 25998 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 25999 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26000 | # Allow CC to be a program name with arguments. |
| 26001 | compiler=$CC |
| 26002 | |
| 26003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26004 | # save warnings/boilerplate of simple test code |
| 26005 | ac_outfile=conftest.$ac_objext |
| 26006 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26007 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26008 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26009 | $rm conftest* |
| 26010 | |
| 26011 | ac_outfile=conftest.$ac_objext |
| 26012 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26013 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26014 | _lt_linker_boilerplate=`cat conftest.err` |
| 26015 | $rm conftest* |
| 26016 | |
| 26017 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26018 | # Allow CC to be a program name with arguments. |
| 26019 | lt_save_CC="$CC" |
| 26020 | CC=${RC-"windres"} |
| 26021 | compiler=$CC |
| 26022 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26023 | for cc_temp in $compiler""; do |
| 26024 | case $cc_temp in |
| 26025 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26026 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26027 | \-*) ;; |
| 26028 | *) break;; |
| 26029 | esac |
| 26030 | done |
| 26031 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26032 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26033 | lt_cv_prog_compiler_c_o_RC=yes |
| 26034 | |
| 26035 | # The else clause should only fire when bootstrapping the |
| 26036 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26037 | # with your package, and you will get complaints that there are |
| 26038 | # no rules to generate ltmain.sh. |
| 26039 | if test -f "$ltmain"; then |
| 26040 | # See if we are running on zsh, and set the options which allow our commands through |
| 26041 | # without removal of \ escapes. |
| 26042 | if test -n "${ZSH_VERSION+set}" ; then |
| 26043 | setopt NO_GLOB_SUBST |
| 26044 | fi |
| 26045 | # Now quote all the things that may contain metacharacters while being |
| 26046 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26047 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26048 | 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] | 26049 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26050 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26051 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26052 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26053 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26054 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26055 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26056 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26057 | compiler_RC \ |
| 26058 | CC_RC \ |
| 26059 | LD_RC \ |
| 26060 | lt_prog_compiler_wl_RC \ |
| 26061 | lt_prog_compiler_pic_RC \ |
| 26062 | lt_prog_compiler_static_RC \ |
| 26063 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26064 | export_dynamic_flag_spec_RC \ |
| 26065 | thread_safe_flag_spec_RC \ |
| 26066 | whole_archive_flag_spec_RC \ |
| 26067 | enable_shared_with_static_runtimes_RC \ |
| 26068 | old_archive_cmds_RC \ |
| 26069 | old_archive_from_new_cmds_RC \ |
| 26070 | predep_objects_RC \ |
| 26071 | postdep_objects_RC \ |
| 26072 | predeps_RC \ |
| 26073 | postdeps_RC \ |
| 26074 | compiler_lib_search_path_RC \ |
| 26075 | archive_cmds_RC \ |
| 26076 | archive_expsym_cmds_RC \ |
| 26077 | postinstall_cmds_RC \ |
| 26078 | postuninstall_cmds_RC \ |
| 26079 | old_archive_from_expsyms_cmds_RC \ |
| 26080 | allow_undefined_flag_RC \ |
| 26081 | no_undefined_flag_RC \ |
| 26082 | export_symbols_cmds_RC \ |
| 26083 | hardcode_libdir_flag_spec_RC \ |
| 26084 | hardcode_libdir_flag_spec_ld_RC \ |
| 26085 | hardcode_libdir_separator_RC \ |
| 26086 | hardcode_automatic_RC \ |
| 26087 | module_cmds_RC \ |
| 26088 | module_expsym_cmds_RC \ |
| 26089 | lt_cv_prog_compiler_c_o_RC \ |
| 26090 | exclude_expsyms_RC \ |
| 26091 | include_expsyms_RC; do |
| 26092 | |
| 26093 | case $var in |
| 26094 | old_archive_cmds_RC | \ |
| 26095 | old_archive_from_new_cmds_RC | \ |
| 26096 | archive_cmds_RC | \ |
| 26097 | archive_expsym_cmds_RC | \ |
| 26098 | module_cmds_RC | \ |
| 26099 | module_expsym_cmds_RC | \ |
| 26100 | old_archive_from_expsyms_cmds_RC | \ |
| 26101 | export_symbols_cmds_RC | \ |
| 26102 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26103 | postinstall_cmds | postuninstall_cmds | \ |
| 26104 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26105 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26106 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26107 | 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] | 26108 | ;; |
| 26109 | *) |
| 26110 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26111 | ;; |
| 26112 | esac |
| 26113 | done |
| 26114 | |
| 26115 | case $lt_echo in |
| 26116 | *'\$0 --fallback-echo"') |
| 26117 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26118 | ;; |
| 26119 | esac |
| 26120 | |
| 26121 | cfgfile="$ofile" |
| 26122 | |
| 26123 | cat <<__EOF__ >> "$cfgfile" |
| 26124 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26125 | |
| 26126 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26127 | |
| 26128 | # Shell to use when invoking shell scripts. |
| 26129 | SHELL=$lt_SHELL |
| 26130 | |
| 26131 | # Whether or not to build shared libraries. |
| 26132 | build_libtool_libs=$enable_shared |
| 26133 | |
| 26134 | # Whether or not to build static libraries. |
| 26135 | build_old_libs=$enable_static |
| 26136 | |
| 26137 | # Whether or not to add -lc for building shared libraries. |
| 26138 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26139 | |
| 26140 | # Whether or not to disallow shared libs when runtime libs are static |
| 26141 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26142 | |
| 26143 | # Whether or not to optimize for fast installation. |
| 26144 | fast_install=$enable_fast_install |
| 26145 | |
| 26146 | # The host system. |
| 26147 | host_alias=$host_alias |
| 26148 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26149 | host_os=$host_os |
| 26150 | |
| 26151 | # The build system. |
| 26152 | build_alias=$build_alias |
| 26153 | build=$build |
| 26154 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26155 | |
| 26156 | # An echo program that does not interpret backslashes. |
| 26157 | echo=$lt_echo |
| 26158 | |
| 26159 | # The archiver. |
| 26160 | AR=$lt_AR |
| 26161 | AR_FLAGS=$lt_AR_FLAGS |
| 26162 | |
| 26163 | # A C compiler. |
| 26164 | LTCC=$lt_LTCC |
| 26165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26166 | # LTCC compiler flags. |
| 26167 | LTCFLAGS=$lt_LTCFLAGS |
| 26168 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26169 | # A language-specific compiler. |
| 26170 | CC=$lt_compiler_RC |
| 26171 | |
| 26172 | # Is the compiler the GNU C compiler? |
| 26173 | with_gcc=$GCC_RC |
| 26174 | |
| 26175 | # An ERE matcher. |
| 26176 | EGREP=$lt_EGREP |
| 26177 | |
| 26178 | # The linker used to build libraries. |
| 26179 | LD=$lt_LD_RC |
| 26180 | |
| 26181 | # Whether we need hard or soft links. |
| 26182 | LN_S=$lt_LN_S |
| 26183 | |
| 26184 | # A BSD-compatible nm program. |
| 26185 | NM=$lt_NM |
| 26186 | |
| 26187 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26188 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26189 | |
| 26190 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26191 | MAGIC_CMD=$MAGIC_CMD |
| 26192 | |
| 26193 | # Used on cygwin: DLL creation program. |
| 26194 | DLLTOOL="$DLLTOOL" |
| 26195 | |
| 26196 | # Used on cygwin: object dumper. |
| 26197 | OBJDUMP="$OBJDUMP" |
| 26198 | |
| 26199 | # Used on cygwin: assembler. |
| 26200 | AS="$AS" |
| 26201 | |
| 26202 | # The name of the directory that contains temporary libtool files. |
| 26203 | objdir=$objdir |
| 26204 | |
| 26205 | # How to create reloadable object files. |
| 26206 | reload_flag=$lt_reload_flag |
| 26207 | reload_cmds=$lt_reload_cmds |
| 26208 | |
| 26209 | # How to pass a linker flag through the compiler. |
| 26210 | wl=$lt_lt_prog_compiler_wl_RC |
| 26211 | |
| 26212 | # Object file suffix (normally "o"). |
| 26213 | objext="$ac_objext" |
| 26214 | |
| 26215 | # Old archive suffix (normally "a"). |
| 26216 | libext="$libext" |
| 26217 | |
| 26218 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26219 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26220 | |
| 26221 | # Executable file suffix (normally ""). |
| 26222 | exeext="$exeext" |
| 26223 | |
| 26224 | # Additional compiler flags for building library objects. |
| 26225 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26226 | pic_mode=$pic_mode |
| 26227 | |
| 26228 | # What is the maximum length of a command? |
| 26229 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26230 | |
| 26231 | # Does compiler simultaneously support -c and -o options? |
| 26232 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26234 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26235 | need_locks=$lt_need_locks |
| 26236 | |
| 26237 | # Do we need the lib prefix for modules? |
| 26238 | need_lib_prefix=$need_lib_prefix |
| 26239 | |
| 26240 | # Do we need a version for libraries? |
| 26241 | need_version=$need_version |
| 26242 | |
| 26243 | # Whether dlopen is supported. |
| 26244 | dlopen_support=$enable_dlopen |
| 26245 | |
| 26246 | # Whether dlopen of programs is supported. |
| 26247 | dlopen_self=$enable_dlopen_self |
| 26248 | |
| 26249 | # Whether dlopen of statically linked programs is supported. |
| 26250 | dlopen_self_static=$enable_dlopen_self_static |
| 26251 | |
| 26252 | # Compiler flag to prevent dynamic linking. |
| 26253 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26254 | |
| 26255 | # Compiler flag to turn off builtin functions. |
| 26256 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26257 | |
| 26258 | # Compiler flag to allow reflexive dlopens. |
| 26259 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26260 | |
| 26261 | # Compiler flag to generate shared objects directly from archives. |
| 26262 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26263 | |
| 26264 | # Compiler flag to generate thread-safe objects. |
| 26265 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26266 | |
| 26267 | # Library versioning type. |
| 26268 | version_type=$version_type |
| 26269 | |
| 26270 | # Format of library name prefix. |
| 26271 | libname_spec=$lt_libname_spec |
| 26272 | |
| 26273 | # List of archive names. First name is the real one, the rest are links. |
| 26274 | # The last name is the one that the linker finds with -lNAME. |
| 26275 | library_names_spec=$lt_library_names_spec |
| 26276 | |
| 26277 | # The coded name of the library, if different from the real name. |
| 26278 | soname_spec=$lt_soname_spec |
| 26279 | |
| 26280 | # Commands used to build and install an old-style archive. |
| 26281 | RANLIB=$lt_RANLIB |
| 26282 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26283 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26284 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26285 | |
| 26286 | # Create an old-style archive from a shared archive. |
| 26287 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26288 | |
| 26289 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26290 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26291 | |
| 26292 | # Commands used to build and install a shared archive. |
| 26293 | archive_cmds=$lt_archive_cmds_RC |
| 26294 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26295 | postinstall_cmds=$lt_postinstall_cmds |
| 26296 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26297 | |
| 26298 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26299 | module_cmds=$lt_module_cmds_RC |
| 26300 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26301 | |
| 26302 | # Commands to strip libraries. |
| 26303 | old_striplib=$lt_old_striplib |
| 26304 | striplib=$lt_striplib |
| 26305 | |
| 26306 | # Dependencies to place before the objects being linked to create a |
| 26307 | # shared library. |
| 26308 | predep_objects=$lt_predep_objects_RC |
| 26309 | |
| 26310 | # Dependencies to place after the objects being linked to create a |
| 26311 | # shared library. |
| 26312 | postdep_objects=$lt_postdep_objects_RC |
| 26313 | |
| 26314 | # Dependencies to place before the objects being linked to create a |
| 26315 | # shared library. |
| 26316 | predeps=$lt_predeps_RC |
| 26317 | |
| 26318 | # Dependencies to place after the objects being linked to create a |
| 26319 | # shared library. |
| 26320 | postdeps=$lt_postdeps_RC |
| 26321 | |
| 26322 | # The library search path used internally by the compiler when linking |
| 26323 | # a shared library. |
| 26324 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26325 | |
| 26326 | # Method to check whether dependent libraries are shared objects. |
| 26327 | deplibs_check_method=$lt_deplibs_check_method |
| 26328 | |
| 26329 | # Command to use when deplibs_check_method == file_magic. |
| 26330 | file_magic_cmd=$lt_file_magic_cmd |
| 26331 | |
| 26332 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26333 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26334 | |
| 26335 | # Flag that forces no undefined symbols. |
| 26336 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26337 | |
| 26338 | # Commands used to finish a libtool library installation in a directory. |
| 26339 | finish_cmds=$lt_finish_cmds |
| 26340 | |
| 26341 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26342 | finish_eval=$lt_finish_eval |
| 26343 | |
| 26344 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26345 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26346 | |
| 26347 | # Transform the output of nm in a proper C declaration |
| 26348 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26349 | |
| 26350 | # Transform the output of nm in a C name address pair |
| 26351 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26352 | |
| 26353 | # This is the shared library runtime path variable. |
| 26354 | runpath_var=$runpath_var |
| 26355 | |
| 26356 | # This is the shared library path variable. |
| 26357 | shlibpath_var=$shlibpath_var |
| 26358 | |
| 26359 | # Is shlibpath searched before the hard-coded library search path? |
| 26360 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26361 | |
| 26362 | # How to hardcode a shared library path into an executable. |
| 26363 | hardcode_action=$hardcode_action_RC |
| 26364 | |
| 26365 | # Whether we should hardcode library paths into libraries. |
| 26366 | hardcode_into_libs=$hardcode_into_libs |
| 26367 | |
| 26368 | # Flag to hardcode \$libdir into a binary during linking. |
| 26369 | # This must work even if \$libdir does not exist. |
| 26370 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26371 | |
| 26372 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26373 | # a binary during linking. This must work even if \$libdir does |
| 26374 | # not exist. |
| 26375 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26376 | |
| 26377 | # Whether we need a single -rpath flag with a separated argument. |
| 26378 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26379 | |
| 26380 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26381 | # resulting binary. |
| 26382 | hardcode_direct=$hardcode_direct_RC |
| 26383 | |
| 26384 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26385 | # resulting binary. |
| 26386 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26387 | |
| 26388 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26389 | # the resulting binary. |
| 26390 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26391 | |
| 26392 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26393 | # and all subsequent libraries and executables linked against it. |
| 26394 | hardcode_automatic=$hardcode_automatic_RC |
| 26395 | |
| 26396 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26397 | # restored at relink time. |
| 26398 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26399 | |
| 26400 | # Whether libtool must link a program against all its dependency libraries. |
| 26401 | link_all_deplibs=$link_all_deplibs_RC |
| 26402 | |
| 26403 | # Compile-time system search path for libraries |
| 26404 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26405 | |
| 26406 | # Run-time system search path for libraries |
| 26407 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26408 | |
| 26409 | # Fix the shell variable \$srcfile for the compiler. |
| 26410 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26411 | |
| 26412 | # Set to yes if exported symbols are required. |
| 26413 | always_export_symbols=$always_export_symbols_RC |
| 26414 | |
| 26415 | # The commands to list exported symbols. |
| 26416 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26417 | |
| 26418 | # The commands to extract the exported symbol list from a shared archive. |
| 26419 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26420 | |
| 26421 | # Symbols that should not be listed in the preloaded symbols. |
| 26422 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26423 | |
| 26424 | # Symbols that must always be exported. |
| 26425 | include_expsyms=$lt_include_expsyms_RC |
| 26426 | |
| 26427 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26428 | |
| 26429 | __EOF__ |
| 26430 | |
| 26431 | |
| 26432 | else |
| 26433 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26434 | # `config.status --recheck' to rerun these tests and create the |
| 26435 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26436 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26437 | if test -f "$ltmain_in"; then |
| 26438 | test -f Makefile && make "$ltmain" |
| 26439 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26440 | fi |
| 26441 | |
| 26442 | |
| 26443 | ac_ext=c |
| 26444 | ac_cpp='$CPP $CPPFLAGS' |
| 26445 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26446 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26448 | |
| 26449 | CC="$lt_save_CC" |
| 26450 | |
| 26451 | ;; |
| 26452 | |
| 26453 | *) |
| 26454 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 26455 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 26456 | { (exit 1); exit 1; }; } |
| 26457 | ;; |
| 26458 | esac |
| 26459 | |
| 26460 | # Append the new tag name to the list of available tags. |
| 26461 | if test -n "$tagname" ; then |
| 26462 | available_tags="$available_tags $tagname" |
| 26463 | fi |
| 26464 | fi |
| 26465 | done |
| 26466 | IFS="$lt_save_ifs" |
| 26467 | |
| 26468 | # Now substitute the updated list of available tags. |
| 26469 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 26470 | mv "${ofile}T" "$ofile" |
| 26471 | chmod +x "$ofile" |
| 26472 | else |
| 26473 | rm -f "${ofile}T" |
| 26474 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 26475 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 26476 | { (exit 1); exit 1; }; } |
| 26477 | fi |
| 26478 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26479 | |
| 26480 | |
| 26481 | |
| 26482 | # This can be used to rebuild libtool when needed |
| 26483 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 26484 | |
| 26485 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26486 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26487 | |
| 26488 | # Prevent multiple expansion |
| 26489 | |
| 26490 | |
| 26491 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26492 | |
| 26493 | |
| 26494 | |
| 26495 | |
| 26496 | |
| 26497 | |
| 26498 | |
| 26499 | |
| 26500 | |
| 26501 | |
| 26502 | |
| 26503 | |
| 26504 | |
| 26505 | |
| 26506 | |
| 26507 | |
| 26508 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26509 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 26510 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 26511 | |
| 26512 | cat >>confdefs.h <<\_ACEOF |
| 26513 | #define CAN_DLOPEN_SELF 1 |
| 26514 | _ACEOF |
| 26515 | |
| 26516 | fi |
| 26517 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26518 | etags_version=`$ETAGS --version 2>&1` |
| 26519 | case "$etags_version" in |
| 26520 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 26521 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 26522 | *) ETAGSFLAGS="" ;; |
| 26523 | esac |
| 26524 | ETAGSFLAGS=$ETAGSFLAGS |
| 26525 | |
| 26526 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26527 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26528 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 26529 | LLVMGXX="llvm-g++${EXEEXT}" |
| 26530 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 26531 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26532 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26534 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 26535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26536 | else |
| 26537 | case $LLVMGCC in |
| 26538 | [\\/]* | ?:[\\/]*) |
| 26539 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 26540 | ;; |
| 26541 | *) |
| 26542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26543 | for as_dir in $PATH |
| 26544 | do |
| 26545 | IFS=$as_save_IFS |
| 26546 | test -z "$as_dir" && as_dir=. |
| 26547 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26548 | 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] | 26549 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 26550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26551 | break 2 |
| 26552 | fi |
| 26553 | done |
| 26554 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26555 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26556 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26557 | ;; |
| 26558 | esac |
| 26559 | fi |
| 26560 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26561 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26562 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 26563 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26564 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26565 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26566 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26567 | fi |
| 26568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26569 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26570 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 26571 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26572 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26574 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 26575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26576 | else |
| 26577 | case $LLVMGXX in |
| 26578 | [\\/]* | ?:[\\/]*) |
| 26579 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 26580 | ;; |
| 26581 | *) |
| 26582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26583 | for as_dir in $PATH |
| 26584 | do |
| 26585 | IFS=$as_save_IFS |
| 26586 | test -z "$as_dir" && as_dir=. |
| 26587 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26588 | 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] | 26589 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 26590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26591 | break 2 |
| 26592 | fi |
| 26593 | done |
| 26594 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26595 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26596 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26597 | ;; |
| 26598 | esac |
| 26599 | fi |
| 26600 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26601 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26602 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 26603 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26604 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26605 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26606 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26607 | fi |
| 26608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26609 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26610 | else |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26611 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 26612 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26613 | LLVMGCC=$LLVMGCC |
| 26614 | |
| 26615 | LLVMGXX=$LLVMGXX |
| 26616 | |
| 26617 | fi |
| 26618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26619 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 26620 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26621 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26622 | ICC=no |
| 26623 | IXX=no |
| 26624 | case $CC in |
| 26625 | icc*|icpc*) |
| 26626 | ICC=yes |
| 26627 | IXX=yes |
| 26628 | ;; |
| 26629 | *) |
| 26630 | ;; |
| 26631 | esac |
| 26632 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 26633 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 26634 | then |
| 26635 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 26636 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 26637 | { (exit 1); exit 1; }; } |
| 26638 | fi |
| 26639 | |
| 26640 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 26641 | then |
| 26642 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 26643 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 26644 | { (exit 1); exit 1; }; } |
| 26645 | fi |
| 26646 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26647 | if test "$GCC" = "yes" |
| 26648 | then |
Reid Spencer | bc9e49c | 2005-07-27 21:58:38 +0000 | [diff] [blame] | 26649 | 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] | 26650 | if test "$gccmajor" -lt "3" |
| 26651 | then |
| 26652 | { { 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] | 26653 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 26654 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26655 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26656 | fi |
| 26657 | |
| 26658 | if test -z "$llvm_cv_gnu_make_command" |
| 26659 | then |
| 26660 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 26661 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 26662 | { (exit 1); exit 1; }; } |
| 26663 | fi |
| 26664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26665 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 26666 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26667 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26668 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26669 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26670 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 26671 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26672 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 26673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26674 | else |
| 26675 | ac_check_lib_save_LIBS=$LIBS |
| 26676 | LIBS="-lelf $LIBS" |
| 26677 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26678 | /* confdefs.h. */ |
| 26679 | _ACEOF |
| 26680 | cat confdefs.h >>conftest.$ac_ext |
| 26681 | cat >>conftest.$ac_ext <<_ACEOF |
| 26682 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26683 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26684 | /* Override any GCC internal prototype to avoid an error. |
| 26685 | Use char because int might match the return type of a GCC |
| 26686 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26687 | #ifdef __cplusplus |
| 26688 | extern "C" |
| 26689 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26690 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26691 | int |
| 26692 | main () |
| 26693 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26694 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26695 | ; |
| 26696 | return 0; |
| 26697 | } |
| 26698 | _ACEOF |
| 26699 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26700 | if { (ac_try="$ac_link" |
| 26701 | case "(($ac_try" in |
| 26702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26703 | *) ac_try_echo=$ac_try;; |
| 26704 | esac |
| 26705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26706 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26707 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26709 | rm -f conftest.er1 |
| 26710 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26712 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26714 | { (case "(($ac_try" in |
| 26715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26716 | *) ac_try_echo=$ac_try;; |
| 26717 | esac |
| 26718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26719 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26720 | ac_status=$? |
| 26721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26722 | (exit $ac_status); }; } && |
| 26723 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26724 | { (case "(($ac_try" in |
| 26725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26726 | *) ac_try_echo=$ac_try;; |
| 26727 | esac |
| 26728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26729 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26730 | ac_status=$? |
| 26731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26732 | (exit $ac_status); }; }; then |
| 26733 | ac_cv_lib_elf_elf_begin=yes |
| 26734 | else |
| 26735 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26738 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26739 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26740 | |
| 26741 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26742 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26743 | LIBS=$ac_check_lib_save_LIBS |
| 26744 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26745 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 26746 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26747 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 26748 | cat >>confdefs.h <<_ACEOF |
| 26749 | #define HAVE_LIBELF 1 |
| 26750 | _ACEOF |
| 26751 | |
| 26752 | LIBS="-lelf $LIBS" |
| 26753 | |
| 26754 | fi |
| 26755 | |
| 26756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26757 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 26758 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26759 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 26760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26761 | else |
| 26762 | ac_check_lib_save_LIBS=$LIBS |
| 26763 | LIBS="-lm $LIBS" |
| 26764 | cat >conftest.$ac_ext <<_ACEOF |
| 26765 | /* confdefs.h. */ |
| 26766 | _ACEOF |
| 26767 | cat confdefs.h >>conftest.$ac_ext |
| 26768 | cat >>conftest.$ac_ext <<_ACEOF |
| 26769 | /* end confdefs.h. */ |
| 26770 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26771 | /* Override any GCC internal prototype to avoid an error. |
| 26772 | Use char because int might match the return type of a GCC |
| 26773 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26774 | #ifdef __cplusplus |
| 26775 | extern "C" |
| 26776 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26777 | char sin (); |
| 26778 | int |
| 26779 | main () |
| 26780 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26781 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26782 | ; |
| 26783 | return 0; |
| 26784 | } |
| 26785 | _ACEOF |
| 26786 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26787 | if { (ac_try="$ac_link" |
| 26788 | case "(($ac_try" in |
| 26789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26790 | *) ac_try_echo=$ac_try;; |
| 26791 | esac |
| 26792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26793 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26794 | ac_status=$? |
| 26795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26796 | rm -f conftest.er1 |
| 26797 | cat conftest.err >&5 |
| 26798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26799 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26801 | { (case "(($ac_try" in |
| 26802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26803 | *) ac_try_echo=$ac_try;; |
| 26804 | esac |
| 26805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26806 | (eval "$ac_try") 2>&5 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26807 | ac_status=$? |
| 26808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26809 | (exit $ac_status); }; } && |
| 26810 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26811 | { (case "(($ac_try" in |
| 26812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26813 | *) ac_try_echo=$ac_try;; |
| 26814 | esac |
| 26815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26816 | (eval "$ac_try") 2>&5 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26817 | ac_status=$? |
| 26818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26819 | (exit $ac_status); }; }; then |
| 26820 | ac_cv_lib_m_sin=yes |
| 26821 | else |
| 26822 | echo "$as_me: failed program was:" >&5 |
| 26823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26824 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26825 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26826 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26827 | |
| 26828 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26829 | conftest$ac_exeext conftest.$ac_ext |
| 26830 | LIBS=$ac_check_lib_save_LIBS |
| 26831 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26832 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 26833 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26834 | if test $ac_cv_lib_m_sin = yes; then |
| 26835 | cat >>confdefs.h <<_ACEOF |
| 26836 | #define HAVE_LIBM 1 |
| 26837 | _ACEOF |
| 26838 | |
| 26839 | LIBS="-lm $LIBS" |
| 26840 | |
| 26841 | fi |
| 26842 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26843 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 26844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26845 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 26846 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26847 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26849 | else |
| 26850 | ac_check_lib_save_LIBS=$LIBS |
| 26851 | LIBS="-limagehlp $LIBS" |
| 26852 | cat >conftest.$ac_ext <<_ACEOF |
| 26853 | /* confdefs.h. */ |
| 26854 | _ACEOF |
| 26855 | cat confdefs.h >>conftest.$ac_ext |
| 26856 | cat >>conftest.$ac_ext <<_ACEOF |
| 26857 | /* end confdefs.h. */ |
| 26858 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26859 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26860 | int |
| 26861 | main () |
| 26862 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26863 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26864 | ; |
| 26865 | return 0; |
| 26866 | } |
| 26867 | _ACEOF |
| 26868 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26869 | if { (ac_try="$ac_link" |
| 26870 | case "(($ac_try" in |
| 26871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26872 | *) ac_try_echo=$ac_try;; |
| 26873 | esac |
| 26874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26875 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26876 | ac_status=$? |
| 26877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26878 | rm -f conftest.er1 |
| 26879 | cat conftest.err >&5 |
| 26880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26881 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26883 | { (case "(($ac_try" in |
| 26884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26885 | *) ac_try_echo=$ac_try;; |
| 26886 | esac |
| 26887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26888 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26889 | ac_status=$? |
| 26890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26891 | (exit $ac_status); }; } && |
| 26892 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26893 | { (case "(($ac_try" in |
| 26894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26895 | *) ac_try_echo=$ac_try;; |
| 26896 | esac |
| 26897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26898 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26899 | ac_status=$? |
| 26900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26901 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26902 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26903 | else |
| 26904 | echo "$as_me: failed program was:" >&5 |
| 26905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26906 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26907 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26908 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26909 | |
| 26910 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26911 | conftest$ac_exeext conftest.$ac_ext |
| 26912 | LIBS=$ac_check_lib_save_LIBS |
| 26913 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26914 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 26915 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26916 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26917 | cat >>confdefs.h <<_ACEOF |
| 26918 | #define HAVE_LIBIMAGEHLP 1 |
| 26919 | _ACEOF |
| 26920 | |
| 26921 | LIBS="-limagehlp $LIBS" |
| 26922 | |
| 26923 | fi |
| 26924 | |
| 26925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26926 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 26927 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26928 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26930 | else |
| 26931 | ac_check_lib_save_LIBS=$LIBS |
| 26932 | LIBS="-lpsapi $LIBS" |
| 26933 | cat >conftest.$ac_ext <<_ACEOF |
| 26934 | /* confdefs.h. */ |
| 26935 | _ACEOF |
| 26936 | cat confdefs.h >>conftest.$ac_ext |
| 26937 | cat >>conftest.$ac_ext <<_ACEOF |
| 26938 | /* end confdefs.h. */ |
| 26939 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26940 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26941 | int |
| 26942 | main () |
| 26943 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26944 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26945 | ; |
| 26946 | return 0; |
| 26947 | } |
| 26948 | _ACEOF |
| 26949 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26950 | if { (ac_try="$ac_link" |
| 26951 | case "(($ac_try" in |
| 26952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26953 | *) ac_try_echo=$ac_try;; |
| 26954 | esac |
| 26955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26956 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26957 | ac_status=$? |
| 26958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26959 | rm -f conftest.er1 |
| 26960 | cat conftest.err >&5 |
| 26961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26962 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26964 | { (case "(($ac_try" in |
| 26965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26966 | *) ac_try_echo=$ac_try;; |
| 26967 | esac |
| 26968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26969 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26970 | ac_status=$? |
| 26971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26972 | (exit $ac_status); }; } && |
| 26973 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26974 | { (case "(($ac_try" in |
| 26975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26976 | *) ac_try_echo=$ac_try;; |
| 26977 | esac |
| 26978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26979 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26980 | ac_status=$? |
| 26981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26982 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26983 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26984 | else |
| 26985 | echo "$as_me: failed program was:" >&5 |
| 26986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26987 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26988 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26989 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26990 | |
| 26991 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26992 | conftest$ac_exeext conftest.$ac_ext |
| 26993 | LIBS=$ac_check_lib_save_LIBS |
| 26994 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26995 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 26996 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26997 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26998 | cat >>confdefs.h <<_ACEOF |
| 26999 | #define HAVE_LIBPSAPI 1 |
| 27000 | _ACEOF |
| 27001 | |
| 27002 | LIBS="-lpsapi $LIBS" |
| 27003 | |
| 27004 | fi |
| 27005 | |
| 27006 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27008 | { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 27009 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; } |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27010 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27012 | else |
| 27013 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27014 | cat >conftest.$ac_ext <<_ACEOF |
| 27015 | /* confdefs.h. */ |
| 27016 | _ACEOF |
| 27017 | cat confdefs.h >>conftest.$ac_ext |
| 27018 | cat >>conftest.$ac_ext <<_ACEOF |
| 27019 | /* end confdefs.h. */ |
| 27020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27021 | /* Override any GCC internal prototype to avoid an error. |
| 27022 | Use char because int might match the return type of a GCC |
| 27023 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27024 | #ifdef __cplusplus |
| 27025 | extern "C" |
| 27026 | #endif |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27027 | char lt_dlopen (); |
| 27028 | int |
| 27029 | main () |
| 27030 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27031 | return lt_dlopen (); |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27032 | ; |
| 27033 | return 0; |
| 27034 | } |
| 27035 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27036 | for ac_lib in '' ltdl; do |
| 27037 | if test -z "$ac_lib"; then |
| 27038 | ac_res="none required" |
| 27039 | else |
| 27040 | ac_res=-l$ac_lib |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27041 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27042 | fi |
| 27043 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27044 | if { (ac_try="$ac_link" |
| 27045 | case "(($ac_try" in |
| 27046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27047 | *) ac_try_echo=$ac_try;; |
| 27048 | esac |
| 27049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27050 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27051 | ac_status=$? |
| 27052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27053 | rm -f conftest.er1 |
| 27054 | cat conftest.err >&5 |
| 27055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27056 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27057 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27058 | { (case "(($ac_try" in |
| 27059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27060 | *) ac_try_echo=$ac_try;; |
| 27061 | esac |
| 27062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27063 | (eval "$ac_try") 2>&5 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27064 | ac_status=$? |
| 27065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27066 | (exit $ac_status); }; } && |
| 27067 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27068 | { (case "(($ac_try" in |
| 27069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27070 | *) ac_try_echo=$ac_try;; |
| 27071 | esac |
| 27072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27073 | (eval "$ac_try") 2>&5 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27074 | ac_status=$? |
| 27075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27076 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27077 | ac_cv_search_lt_dlopen=$ac_res |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27078 | else |
| 27079 | echo "$as_me: failed program was:" >&5 |
| 27080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27082 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27083 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27084 | |
| 27085 | rm -f core conftest.err conftest.$ac_objext \ |
| 27086 | conftest$ac_exeext |
| 27087 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27088 | break |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27089 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27090 | done |
| 27091 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27092 | : |
| 27093 | else |
| 27094 | ac_cv_search_lt_dlopen=no |
| 27095 | fi |
| 27096 | rm conftest.$ac_ext |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27097 | LIBS=$ac_func_search_save_LIBS |
| 27098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27099 | { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 27100 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; } |
| 27101 | ac_res=$ac_cv_search_lt_dlopen |
| 27102 | if test "$ac_res" != no; then |
| 27103 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27104 | |
| 27105 | cat >>confdefs.h <<\_ACEOF |
| 27106 | #define HAVE_LT_DLOPEN 1 |
| 27107 | _ACEOF |
| 27108 | |
| 27109 | else |
| 27110 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 27111 | not be available" >&5 |
| 27112 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 27113 | not be available" >&2;} |
| 27114 | fi |
| 27115 | |
| 27116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27117 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27118 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27119 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27121 | else |
| 27122 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27123 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27124 | /* confdefs.h. */ |
| 27125 | _ACEOF |
| 27126 | cat confdefs.h >>conftest.$ac_ext |
| 27127 | cat >>conftest.$ac_ext <<_ACEOF |
| 27128 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27130 | /* Override any GCC internal prototype to avoid an error. |
| 27131 | Use char because int might match the return type of a GCC |
| 27132 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27133 | #ifdef __cplusplus |
| 27134 | extern "C" |
| 27135 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27136 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27137 | int |
| 27138 | main () |
| 27139 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27140 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27141 | ; |
| 27142 | return 0; |
| 27143 | } |
| 27144 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27145 | for ac_lib in '' dl; do |
| 27146 | if test -z "$ac_lib"; then |
| 27147 | ac_res="none required" |
| 27148 | else |
| 27149 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27150 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27151 | fi |
| 27152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27153 | if { (ac_try="$ac_link" |
| 27154 | case "(($ac_try" in |
| 27155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27156 | *) ac_try_echo=$ac_try;; |
| 27157 | esac |
| 27158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27159 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27160 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27162 | rm -f conftest.er1 |
| 27163 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27165 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27167 | { (case "(($ac_try" in |
| 27168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27169 | *) ac_try_echo=$ac_try;; |
| 27170 | esac |
| 27171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27172 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27173 | ac_status=$? |
| 27174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27175 | (exit $ac_status); }; } && |
| 27176 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27177 | { (case "(($ac_try" in |
| 27178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27179 | *) ac_try_echo=$ac_try;; |
| 27180 | esac |
| 27181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27182 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27183 | ac_status=$? |
| 27184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27185 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27186 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27187 | else |
| 27188 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27191 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27193 | |
| 27194 | rm -f core conftest.err conftest.$ac_objext \ |
| 27195 | conftest$ac_exeext |
| 27196 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27197 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27198 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27199 | done |
| 27200 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27201 | : |
| 27202 | else |
| 27203 | ac_cv_search_dlopen=no |
| 27204 | fi |
| 27205 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27206 | LIBS=$ac_func_search_save_LIBS |
| 27207 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27208 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27209 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27210 | ac_res=$ac_cv_search_dlopen |
| 27211 | if test "$ac_res" != no; then |
| 27212 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27213 | |
| 27214 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27215 | #define HAVE_DLOPEN 1 |
| 27216 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27217 | |
| 27218 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27219 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27220 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27221 | fi |
| 27222 | |
| 27223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27224 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27225 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27226 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27228 | else |
| 27229 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27230 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27231 | /* confdefs.h. */ |
| 27232 | _ACEOF |
| 27233 | cat confdefs.h >>conftest.$ac_ext |
| 27234 | cat >>conftest.$ac_ext <<_ACEOF |
| 27235 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27236 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27237 | /* Override any GCC internal prototype to avoid an error. |
| 27238 | Use char because int might match the return type of a GCC |
| 27239 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27240 | #ifdef __cplusplus |
| 27241 | extern "C" |
| 27242 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27243 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27244 | int |
| 27245 | main () |
| 27246 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27247 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27248 | ; |
| 27249 | return 0; |
| 27250 | } |
| 27251 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27252 | for ac_lib in '' malloc; do |
| 27253 | if test -z "$ac_lib"; then |
| 27254 | ac_res="none required" |
| 27255 | else |
| 27256 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27257 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27258 | fi |
| 27259 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27260 | if { (ac_try="$ac_link" |
| 27261 | case "(($ac_try" in |
| 27262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27263 | *) ac_try_echo=$ac_try;; |
| 27264 | esac |
| 27265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27266 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27267 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27269 | rm -f conftest.er1 |
| 27270 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27272 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27274 | { (case "(($ac_try" in |
| 27275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27276 | *) ac_try_echo=$ac_try;; |
| 27277 | esac |
| 27278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27279 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27280 | ac_status=$? |
| 27281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27282 | (exit $ac_status); }; } && |
| 27283 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27284 | { (case "(($ac_try" in |
| 27285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27286 | *) ac_try_echo=$ac_try;; |
| 27287 | esac |
| 27288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27289 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27290 | ac_status=$? |
| 27291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27292 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27293 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27294 | else |
| 27295 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27298 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27299 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27300 | |
| 27301 | rm -f core conftest.err conftest.$ac_objext \ |
| 27302 | conftest$ac_exeext |
| 27303 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27304 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27305 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27306 | done |
| 27307 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27308 | : |
| 27309 | else |
| 27310 | ac_cv_search_mallinfo=no |
| 27311 | fi |
| 27312 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27313 | LIBS=$ac_func_search_save_LIBS |
| 27314 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27315 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27316 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27317 | ac_res=$ac_cv_search_mallinfo |
| 27318 | if test "$ac_res" != no; then |
| 27319 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27320 | |
| 27321 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27322 | #define HAVE_MALLINFO 1 |
| 27323 | _ACEOF |
| 27324 | |
| 27325 | fi |
| 27326 | |
| 27327 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27328 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27330 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27331 | 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] | 27332 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27334 | else |
| 27335 | ac_check_lib_save_LIBS=$LIBS |
| 27336 | LIBS="-lpthread $LIBS" |
| 27337 | cat >conftest.$ac_ext <<_ACEOF |
| 27338 | /* confdefs.h. */ |
| 27339 | _ACEOF |
| 27340 | cat confdefs.h >>conftest.$ac_ext |
| 27341 | cat >>conftest.$ac_ext <<_ACEOF |
| 27342 | /* end confdefs.h. */ |
| 27343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27344 | /* Override any GCC internal prototype to avoid an error. |
| 27345 | Use char because int might match the return type of a GCC |
| 27346 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27347 | #ifdef __cplusplus |
| 27348 | extern "C" |
| 27349 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27350 | char pthread_mutex_init (); |
| 27351 | int |
| 27352 | main () |
| 27353 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27354 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27355 | ; |
| 27356 | return 0; |
| 27357 | } |
| 27358 | _ACEOF |
| 27359 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27360 | if { (ac_try="$ac_link" |
| 27361 | case "(($ac_try" in |
| 27362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27363 | *) ac_try_echo=$ac_try;; |
| 27364 | esac |
| 27365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27366 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27367 | ac_status=$? |
| 27368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27369 | rm -f conftest.er1 |
| 27370 | cat conftest.err >&5 |
| 27371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27372 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27374 | { (case "(($ac_try" in |
| 27375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27376 | *) ac_try_echo=$ac_try;; |
| 27377 | esac |
| 27378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27379 | (eval "$ac_try") 2>&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27380 | ac_status=$? |
| 27381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27382 | (exit $ac_status); }; } && |
| 27383 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27384 | { (case "(($ac_try" in |
| 27385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27386 | *) ac_try_echo=$ac_try;; |
| 27387 | esac |
| 27388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27389 | (eval "$ac_try") 2>&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27390 | ac_status=$? |
| 27391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27392 | (exit $ac_status); }; }; then |
| 27393 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27394 | else |
| 27395 | echo "$as_me: failed program was:" >&5 |
| 27396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27398 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27399 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27400 | |
| 27401 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27402 | conftest$ac_exeext conftest.$ac_ext |
| 27403 | LIBS=$ac_check_lib_save_LIBS |
| 27404 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27405 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27406 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27407 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27408 | cat >>confdefs.h <<_ACEOF |
| 27409 | #define HAVE_LIBPTHREAD 1 |
| 27410 | _ACEOF |
| 27411 | |
| 27412 | LIBS="-lpthread $LIBS" |
| 27413 | |
| 27414 | fi |
| 27415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27416 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27417 | 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] | 27418 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27420 | else |
| 27421 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27422 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27423 | /* confdefs.h. */ |
| 27424 | _ACEOF |
| 27425 | cat confdefs.h >>conftest.$ac_ext |
| 27426 | cat >>conftest.$ac_ext <<_ACEOF |
| 27427 | /* end confdefs.h. */ |
| 27428 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27429 | /* Override any GCC internal prototype to avoid an error. |
| 27430 | Use char because int might match the return type of a GCC |
| 27431 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27432 | #ifdef __cplusplus |
| 27433 | extern "C" |
| 27434 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27435 | char pthread_mutex_lock (); |
| 27436 | int |
| 27437 | main () |
| 27438 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27439 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27440 | ; |
| 27441 | return 0; |
| 27442 | } |
| 27443 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27444 | for ac_lib in '' pthread; do |
| 27445 | if test -z "$ac_lib"; then |
| 27446 | ac_res="none required" |
| 27447 | else |
| 27448 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27449 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27450 | fi |
| 27451 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27452 | if { (ac_try="$ac_link" |
| 27453 | case "(($ac_try" in |
| 27454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27455 | *) ac_try_echo=$ac_try;; |
| 27456 | esac |
| 27457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27458 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27459 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27461 | rm -f conftest.er1 |
| 27462 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27464 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27466 | { (case "(($ac_try" in |
| 27467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27468 | *) ac_try_echo=$ac_try;; |
| 27469 | esac |
| 27470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27471 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27472 | ac_status=$? |
| 27473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27474 | (exit $ac_status); }; } && |
| 27475 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27476 | { (case "(($ac_try" in |
| 27477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27478 | *) ac_try_echo=$ac_try;; |
| 27479 | esac |
| 27480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27481 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27482 | ac_status=$? |
| 27483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27484 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27485 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27486 | else |
| 27487 | echo "$as_me: failed program was:" >&5 |
| 27488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27490 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27491 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27492 | |
| 27493 | rm -f core conftest.err conftest.$ac_objext \ |
| 27494 | conftest$ac_exeext |
| 27495 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27496 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27497 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27498 | done |
| 27499 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27500 | : |
| 27501 | else |
| 27502 | ac_cv_search_pthread_mutex_lock=no |
| 27503 | fi |
| 27504 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27505 | LIBS=$ac_func_search_save_LIBS |
| 27506 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27507 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 27508 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 27509 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 27510 | if test "$ac_res" != no; then |
| 27511 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27512 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 27513 | cat >>confdefs.h <<\_ACEOF |
| 27514 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 27515 | _ACEOF |
| 27516 | |
| 27517 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27518 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27519 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 27520 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27521 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27522 | |
| 27523 | |
| 27524 | |
| 27525 | |
| 27526 | |
| 27527 | ac_header_dirent=no |
| 27528 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 27529 | 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] | 27530 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 27531 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 27532 | 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] | 27533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27534 | else |
| 27535 | cat >conftest.$ac_ext <<_ACEOF |
| 27536 | /* confdefs.h. */ |
| 27537 | _ACEOF |
| 27538 | cat confdefs.h >>conftest.$ac_ext |
| 27539 | cat >>conftest.$ac_ext <<_ACEOF |
| 27540 | /* end confdefs.h. */ |
| 27541 | #include <sys/types.h> |
| 27542 | #include <$ac_hdr> |
| 27543 | |
| 27544 | int |
| 27545 | main () |
| 27546 | { |
| 27547 | if ((DIR *) 0) |
| 27548 | return 0; |
| 27549 | ; |
| 27550 | return 0; |
| 27551 | } |
| 27552 | _ACEOF |
| 27553 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27554 | if { (ac_try="$ac_compile" |
| 27555 | case "(($ac_try" in |
| 27556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27557 | *) ac_try_echo=$ac_try;; |
| 27558 | esac |
| 27559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27560 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27561 | ac_status=$? |
| 27562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27563 | rm -f conftest.er1 |
| 27564 | cat conftest.err >&5 |
| 27565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27566 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27568 | { (case "(($ac_try" in |
| 27569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27570 | *) ac_try_echo=$ac_try;; |
| 27571 | esac |
| 27572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27573 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27574 | ac_status=$? |
| 27575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27576 | (exit $ac_status); }; } && |
| 27577 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27578 | { (case "(($ac_try" in |
| 27579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27580 | *) ac_try_echo=$ac_try;; |
| 27581 | esac |
| 27582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27583 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27584 | ac_status=$? |
| 27585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27586 | (exit $ac_status); }; }; then |
| 27587 | eval "$as_ac_Header=yes" |
| 27588 | else |
| 27589 | echo "$as_me: failed program was:" >&5 |
| 27590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27591 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27592 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27593 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27594 | |
| 27595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27596 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27597 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27598 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27599 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27600 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27601 | cat >>confdefs.h <<_ACEOF |
| 27602 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 27603 | _ACEOF |
| 27604 | |
| 27605 | ac_header_dirent=$ac_hdr; break |
| 27606 | fi |
| 27607 | |
| 27608 | done |
| 27609 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 27610 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27611 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27612 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27613 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27615 | else |
| 27616 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27617 | cat >conftest.$ac_ext <<_ACEOF |
| 27618 | /* confdefs.h. */ |
| 27619 | _ACEOF |
| 27620 | cat confdefs.h >>conftest.$ac_ext |
| 27621 | cat >>conftest.$ac_ext <<_ACEOF |
| 27622 | /* end confdefs.h. */ |
| 27623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27624 | /* Override any GCC internal prototype to avoid an error. |
| 27625 | Use char because int might match the return type of a GCC |
| 27626 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27627 | #ifdef __cplusplus |
| 27628 | extern "C" |
| 27629 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27630 | char opendir (); |
| 27631 | int |
| 27632 | main () |
| 27633 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27634 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27635 | ; |
| 27636 | return 0; |
| 27637 | } |
| 27638 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27639 | for ac_lib in '' dir; do |
| 27640 | if test -z "$ac_lib"; then |
| 27641 | ac_res="none required" |
| 27642 | else |
| 27643 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27644 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27645 | fi |
| 27646 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27647 | if { (ac_try="$ac_link" |
| 27648 | case "(($ac_try" in |
| 27649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27650 | *) ac_try_echo=$ac_try;; |
| 27651 | esac |
| 27652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27653 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27654 | ac_status=$? |
| 27655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27656 | rm -f conftest.er1 |
| 27657 | cat conftest.err >&5 |
| 27658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27659 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27660 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27661 | { (case "(($ac_try" in |
| 27662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27663 | *) ac_try_echo=$ac_try;; |
| 27664 | esac |
| 27665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27666 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27667 | ac_status=$? |
| 27668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27669 | (exit $ac_status); }; } && |
| 27670 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27671 | { (case "(($ac_try" in |
| 27672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27673 | *) ac_try_echo=$ac_try;; |
| 27674 | esac |
| 27675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27676 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27677 | ac_status=$? |
| 27678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27679 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27680 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27681 | else |
| 27682 | echo "$as_me: failed program was:" >&5 |
| 27683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27685 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27686 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27687 | |
| 27688 | rm -f core conftest.err conftest.$ac_objext \ |
| 27689 | conftest$ac_exeext |
| 27690 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27691 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27692 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27693 | done |
| 27694 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27695 | : |
| 27696 | else |
| 27697 | ac_cv_search_opendir=no |
| 27698 | fi |
| 27699 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27700 | LIBS=$ac_func_search_save_LIBS |
| 27701 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27702 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27703 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27704 | ac_res=$ac_cv_search_opendir |
| 27705 | if test "$ac_res" != no; then |
| 27706 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27707 | |
| 27708 | fi |
| 27709 | |
| 27710 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27711 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27712 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27713 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27715 | else |
| 27716 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27717 | cat >conftest.$ac_ext <<_ACEOF |
| 27718 | /* confdefs.h. */ |
| 27719 | _ACEOF |
| 27720 | cat confdefs.h >>conftest.$ac_ext |
| 27721 | cat >>conftest.$ac_ext <<_ACEOF |
| 27722 | /* end confdefs.h. */ |
| 27723 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27724 | /* Override any GCC internal prototype to avoid an error. |
| 27725 | Use char because int might match the return type of a GCC |
| 27726 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27727 | #ifdef __cplusplus |
| 27728 | extern "C" |
| 27729 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27730 | char opendir (); |
| 27731 | int |
| 27732 | main () |
| 27733 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27734 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27735 | ; |
| 27736 | return 0; |
| 27737 | } |
| 27738 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27739 | for ac_lib in '' x; do |
| 27740 | if test -z "$ac_lib"; then |
| 27741 | ac_res="none required" |
| 27742 | else |
| 27743 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27744 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27745 | fi |
| 27746 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27747 | if { (ac_try="$ac_link" |
| 27748 | case "(($ac_try" in |
| 27749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27750 | *) ac_try_echo=$ac_try;; |
| 27751 | esac |
| 27752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27753 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27754 | ac_status=$? |
| 27755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27756 | rm -f conftest.er1 |
| 27757 | cat conftest.err >&5 |
| 27758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27759 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27761 | { (case "(($ac_try" in |
| 27762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27763 | *) ac_try_echo=$ac_try;; |
| 27764 | esac |
| 27765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27766 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27767 | ac_status=$? |
| 27768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27769 | (exit $ac_status); }; } && |
| 27770 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27771 | { (case "(($ac_try" in |
| 27772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27773 | *) ac_try_echo=$ac_try;; |
| 27774 | esac |
| 27775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27776 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27777 | ac_status=$? |
| 27778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27779 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27780 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27781 | else |
| 27782 | echo "$as_me: failed program was:" >&5 |
| 27783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27785 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27786 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27787 | |
| 27788 | rm -f core conftest.err conftest.$ac_objext \ |
| 27789 | conftest$ac_exeext |
| 27790 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27791 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27792 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27793 | done |
| 27794 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27795 | : |
| 27796 | else |
| 27797 | ac_cv_search_opendir=no |
| 27798 | fi |
| 27799 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27800 | LIBS=$ac_func_search_save_LIBS |
| 27801 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27802 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27803 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27804 | ac_res=$ac_cv_search_opendir |
| 27805 | if test "$ac_res" != no; then |
| 27806 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27807 | |
| 27808 | fi |
| 27809 | |
| 27810 | fi |
| 27811 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27812 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 27813 | 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] | 27814 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 27815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27816 | else |
| 27817 | ac_ext=c |
| 27818 | ac_cpp='$CPP $CPPFLAGS' |
| 27819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27822 | |
| 27823 | cat >conftest.$ac_ext <<_ACEOF |
| 27824 | /* confdefs.h. */ |
| 27825 | _ACEOF |
| 27826 | cat confdefs.h >>conftest.$ac_ext |
| 27827 | cat >>conftest.$ac_ext <<_ACEOF |
| 27828 | /* end confdefs.h. */ |
| 27829 | #include <sys/mman.h> |
| 27830 | #include <unistd.h> |
| 27831 | #include <fcntl.h> |
| 27832 | int |
| 27833 | main () |
| 27834 | { |
| 27835 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 27836 | ; |
| 27837 | return 0; |
| 27838 | } |
| 27839 | _ACEOF |
| 27840 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27841 | if { (ac_try="$ac_compile" |
| 27842 | case "(($ac_try" in |
| 27843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27844 | *) ac_try_echo=$ac_try;; |
| 27845 | esac |
| 27846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27847 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27848 | ac_status=$? |
| 27849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27850 | rm -f conftest.er1 |
| 27851 | cat conftest.err >&5 |
| 27852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27853 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27855 | { (case "(($ac_try" in |
| 27856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27857 | *) ac_try_echo=$ac_try;; |
| 27858 | esac |
| 27859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27860 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27861 | ac_status=$? |
| 27862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27863 | (exit $ac_status); }; } && |
| 27864 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27865 | { (case "(($ac_try" in |
| 27866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27867 | *) ac_try_echo=$ac_try;; |
| 27868 | esac |
| 27869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27870 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27871 | ac_status=$? |
| 27872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27873 | (exit $ac_status); }; }; then |
| 27874 | ac_cv_header_mmap_anon=yes |
| 27875 | else |
| 27876 | echo "$as_me: failed program was:" >&5 |
| 27877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27879 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27880 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27881 | |
| 27882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27883 | ac_ext=c |
| 27884 | ac_cpp='$CPP $CPPFLAGS' |
| 27885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27888 | |
| 27889 | |
| 27890 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27891 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 27892 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27893 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 27894 | |
| 27895 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27896 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27897 | _ACEOF |
| 27898 | |
| 27899 | fi |
| 27900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27901 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 27902 | 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] | 27903 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 27904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27905 | else |
| 27906 | cat >conftest.$ac_ext <<_ACEOF |
| 27907 | /* confdefs.h. */ |
| 27908 | _ACEOF |
| 27909 | cat confdefs.h >>conftest.$ac_ext |
| 27910 | cat >>conftest.$ac_ext <<_ACEOF |
| 27911 | /* end confdefs.h. */ |
| 27912 | #include <sys/types.h> |
| 27913 | #include <sys/stat.h> |
| 27914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27915 | #if defined S_ISBLK && defined S_IFDIR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27916 | # if S_ISBLK (S_IFDIR) |
| 27917 | You lose. |
| 27918 | # endif |
| 27919 | #endif |
| 27920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27921 | #if defined S_ISBLK && defined S_IFCHR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27922 | # if S_ISBLK (S_IFCHR) |
| 27923 | You lose. |
| 27924 | # endif |
| 27925 | #endif |
| 27926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27927 | #if defined S_ISLNK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27928 | # if S_ISLNK (S_IFREG) |
| 27929 | You lose. |
| 27930 | # endif |
| 27931 | #endif |
| 27932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27933 | #if defined S_ISSOCK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27934 | # if S_ISSOCK (S_IFREG) |
| 27935 | You lose. |
| 27936 | # endif |
| 27937 | #endif |
| 27938 | |
| 27939 | _ACEOF |
| 27940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 27941 | $EGREP "You lose" >/dev/null 2>&1; then |
| 27942 | ac_cv_header_stat_broken=yes |
| 27943 | else |
| 27944 | ac_cv_header_stat_broken=no |
| 27945 | fi |
| 27946 | rm -f conftest* |
| 27947 | |
| 27948 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27949 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 27950 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27951 | if test $ac_cv_header_stat_broken = yes; then |
| 27952 | |
| 27953 | cat >>confdefs.h <<\_ACEOF |
| 27954 | #define STAT_MACROS_BROKEN 1 |
| 27955 | _ACEOF |
| 27956 | |
| 27957 | fi |
| 27958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27959 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 27960 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27961 | if test "${ac_cv_header_stdc+set}" = set; then |
| 27962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27963 | else |
| 27964 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27965 | /* confdefs.h. */ |
| 27966 | _ACEOF |
| 27967 | cat confdefs.h >>conftest.$ac_ext |
| 27968 | cat >>conftest.$ac_ext <<_ACEOF |
| 27969 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27970 | #include <stdlib.h> |
| 27971 | #include <stdarg.h> |
| 27972 | #include <string.h> |
| 27973 | #include <float.h> |
| 27974 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27975 | int |
| 27976 | main () |
| 27977 | { |
| 27978 | |
| 27979 | ; |
| 27980 | return 0; |
| 27981 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27982 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27983 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27984 | if { (ac_try="$ac_compile" |
| 27985 | case "(($ac_try" in |
| 27986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27987 | *) ac_try_echo=$ac_try;; |
| 27988 | esac |
| 27989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27990 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27991 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27993 | rm -f conftest.er1 |
| 27994 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27996 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27998 | { (case "(($ac_try" in |
| 27999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28000 | *) ac_try_echo=$ac_try;; |
| 28001 | esac |
| 28002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28003 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28004 | ac_status=$? |
| 28005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28006 | (exit $ac_status); }; } && |
| 28007 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28008 | { (case "(($ac_try" in |
| 28009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28010 | *) ac_try_echo=$ac_try;; |
| 28011 | esac |
| 28012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28013 | (eval "$ac_try") 2>&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28014 | ac_status=$? |
| 28015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28016 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28017 | ac_cv_header_stdc=yes |
| 28018 | else |
| 28019 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28021 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28022 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28023 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28024 | |
| 28025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28026 | |
| 28027 | if test $ac_cv_header_stdc = yes; then |
| 28028 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28029 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28030 | /* confdefs.h. */ |
| 28031 | _ACEOF |
| 28032 | cat confdefs.h >>conftest.$ac_ext |
| 28033 | cat >>conftest.$ac_ext <<_ACEOF |
| 28034 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28035 | #include <string.h> |
| 28036 | |
| 28037 | _ACEOF |
| 28038 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28039 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28040 | : |
| 28041 | else |
| 28042 | ac_cv_header_stdc=no |
| 28043 | fi |
| 28044 | rm -f conftest* |
| 28045 | |
| 28046 | fi |
| 28047 | |
| 28048 | if test $ac_cv_header_stdc = yes; then |
| 28049 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28050 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28051 | /* confdefs.h. */ |
| 28052 | _ACEOF |
| 28053 | cat confdefs.h >>conftest.$ac_ext |
| 28054 | cat >>conftest.$ac_ext <<_ACEOF |
| 28055 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28056 | #include <stdlib.h> |
| 28057 | |
| 28058 | _ACEOF |
| 28059 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28060 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28061 | : |
| 28062 | else |
| 28063 | ac_cv_header_stdc=no |
| 28064 | fi |
| 28065 | rm -f conftest* |
| 28066 | |
| 28067 | fi |
| 28068 | |
| 28069 | if test $ac_cv_header_stdc = yes; then |
| 28070 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28071 | if test "$cross_compiling" = yes; then |
| 28072 | : |
| 28073 | else |
| 28074 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28075 | /* confdefs.h. */ |
| 28076 | _ACEOF |
| 28077 | cat confdefs.h >>conftest.$ac_ext |
| 28078 | cat >>conftest.$ac_ext <<_ACEOF |
| 28079 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28080 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28081 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28082 | #if ((' ' & 0x0FF) == 0x020) |
| 28083 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28084 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28085 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28086 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28087 | (('a' <= (c) && (c) <= 'i') \ |
| 28088 | || ('j' <= (c) && (c) <= 'r') \ |
| 28089 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28090 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28091 | #endif |
| 28092 | |
| 28093 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28094 | int |
| 28095 | main () |
| 28096 | { |
| 28097 | int i; |
| 28098 | for (i = 0; i < 256; i++) |
| 28099 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28100 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28101 | return 2; |
| 28102 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28103 | } |
| 28104 | _ACEOF |
| 28105 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28106 | if { (ac_try="$ac_link" |
| 28107 | case "(($ac_try" in |
| 28108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28109 | *) ac_try_echo=$ac_try;; |
| 28110 | esac |
| 28111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28112 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28113 | ac_status=$? |
| 28114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28115 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28116 | { (case "(($ac_try" in |
| 28117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28118 | *) ac_try_echo=$ac_try;; |
| 28119 | esac |
| 28120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28121 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28122 | ac_status=$? |
| 28123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28124 | (exit $ac_status); }; }; then |
| 28125 | : |
| 28126 | else |
| 28127 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28128 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28130 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28131 | ( exit $ac_status ) |
| 28132 | ac_cv_header_stdc=no |
| 28133 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28134 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28135 | fi |
| 28136 | |
| 28137 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28138 | fi |
| 28139 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28140 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28141 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28142 | if test $ac_cv_header_stdc = yes; then |
| 28143 | |
| 28144 | cat >>confdefs.h <<\_ACEOF |
| 28145 | #define STDC_HEADERS 1 |
| 28146 | _ACEOF |
| 28147 | |
| 28148 | fi |
| 28149 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28150 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28151 | 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] | 28152 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28154 | else |
| 28155 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28156 | /* confdefs.h. */ |
| 28157 | _ACEOF |
| 28158 | cat confdefs.h >>conftest.$ac_ext |
| 28159 | cat >>conftest.$ac_ext <<_ACEOF |
| 28160 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28161 | #include <sys/types.h> |
| 28162 | #include <sys/wait.h> |
| 28163 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28164 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28165 | #endif |
| 28166 | #ifndef WIFEXITED |
| 28167 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28168 | #endif |
| 28169 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28170 | int |
| 28171 | main () |
| 28172 | { |
| 28173 | int s; |
| 28174 | wait (&s); |
| 28175 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28176 | ; |
| 28177 | return 0; |
| 28178 | } |
| 28179 | _ACEOF |
| 28180 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28181 | if { (ac_try="$ac_compile" |
| 28182 | case "(($ac_try" in |
| 28183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28184 | *) ac_try_echo=$ac_try;; |
| 28185 | esac |
| 28186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28187 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28188 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28190 | rm -f conftest.er1 |
| 28191 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28193 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28195 | { (case "(($ac_try" in |
| 28196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28197 | *) ac_try_echo=$ac_try;; |
| 28198 | esac |
| 28199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28200 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28201 | ac_status=$? |
| 28202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28203 | (exit $ac_status); }; } && |
| 28204 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28205 | { (case "(($ac_try" in |
| 28206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28207 | *) ac_try_echo=$ac_try;; |
| 28208 | esac |
| 28209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28210 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28211 | ac_status=$? |
| 28212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28213 | (exit $ac_status); }; }; then |
| 28214 | ac_cv_header_sys_wait_h=yes |
| 28215 | else |
| 28216 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28219 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28220 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28221 | |
| 28222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28223 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28224 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28225 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28226 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28227 | |
| 28228 | cat >>confdefs.h <<\_ACEOF |
| 28229 | #define HAVE_SYS_WAIT_H 1 |
| 28230 | _ACEOF |
| 28231 | |
| 28232 | fi |
| 28233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28234 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28235 | 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] | 28236 | if test "${ac_cv_header_time+set}" = set; then |
| 28237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28238 | else |
| 28239 | cat >conftest.$ac_ext <<_ACEOF |
| 28240 | /* confdefs.h. */ |
| 28241 | _ACEOF |
| 28242 | cat confdefs.h >>conftest.$ac_ext |
| 28243 | cat >>conftest.$ac_ext <<_ACEOF |
| 28244 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28245 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28246 | #include <sys/time.h> |
| 28247 | #include <time.h> |
| 28248 | |
| 28249 | int |
| 28250 | main () |
| 28251 | { |
| 28252 | if ((struct tm *) 0) |
| 28253 | return 0; |
| 28254 | ; |
| 28255 | return 0; |
| 28256 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28257 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28258 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28259 | if { (ac_try="$ac_compile" |
| 28260 | case "(($ac_try" in |
| 28261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28262 | *) ac_try_echo=$ac_try;; |
| 28263 | esac |
| 28264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28265 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28266 | ac_status=$? |
| 28267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28268 | rm -f conftest.er1 |
| 28269 | cat conftest.err >&5 |
| 28270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28271 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28273 | { (case "(($ac_try" in |
| 28274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28275 | *) ac_try_echo=$ac_try;; |
| 28276 | esac |
| 28277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28278 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28279 | ac_status=$? |
| 28280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28281 | (exit $ac_status); }; } && |
| 28282 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28283 | { (case "(($ac_try" in |
| 28284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28285 | *) ac_try_echo=$ac_try;; |
| 28286 | esac |
| 28287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28288 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28289 | ac_status=$? |
| 28290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28291 | (exit $ac_status); }; }; then |
| 28292 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28293 | else |
| 28294 | echo "$as_me: failed program was:" >&5 |
| 28295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28296 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28297 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28298 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28299 | |
| 28300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28301 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28302 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28303 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28304 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28305 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28306 | cat >>confdefs.h <<\_ACEOF |
| 28307 | #define TIME_WITH_SYS_TIME 1 |
| 28308 | _ACEOF |
| 28309 | |
| 28310 | fi |
| 28311 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28312 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28313 | |
| 28314 | |
| 28315 | |
| 28316 | |
| 28317 | |
| 28318 | |
| 28319 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28320 | do |
| 28321 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28322 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28323 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28324 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28325 | 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] | 28326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28327 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28328 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28329 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28330 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28331 | else |
| 28332 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28333 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28334 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28335 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28336 | /* confdefs.h. */ |
| 28337 | _ACEOF |
| 28338 | cat confdefs.h >>conftest.$ac_ext |
| 28339 | cat >>conftest.$ac_ext <<_ACEOF |
| 28340 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28341 | $ac_includes_default |
| 28342 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28343 | _ACEOF |
| 28344 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28345 | if { (ac_try="$ac_compile" |
| 28346 | case "(($ac_try" in |
| 28347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28348 | *) ac_try_echo=$ac_try;; |
| 28349 | esac |
| 28350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28351 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28352 | ac_status=$? |
| 28353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28354 | rm -f conftest.er1 |
| 28355 | cat conftest.err >&5 |
| 28356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28357 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28359 | { (case "(($ac_try" in |
| 28360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28361 | *) ac_try_echo=$ac_try;; |
| 28362 | esac |
| 28363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28364 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28365 | ac_status=$? |
| 28366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28367 | (exit $ac_status); }; } && |
| 28368 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28369 | { (case "(($ac_try" in |
| 28370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28371 | *) ac_try_echo=$ac_try;; |
| 28372 | esac |
| 28373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28374 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28375 | ac_status=$? |
| 28376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28377 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28378 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28379 | else |
| 28380 | echo "$as_me: failed program was:" >&5 |
| 28381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28383 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28384 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28385 | |
| 28386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28387 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28388 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28389 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28390 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28391 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28392 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28393 | cat >conftest.$ac_ext <<_ACEOF |
| 28394 | /* confdefs.h. */ |
| 28395 | _ACEOF |
| 28396 | cat confdefs.h >>conftest.$ac_ext |
| 28397 | cat >>conftest.$ac_ext <<_ACEOF |
| 28398 | /* end confdefs.h. */ |
| 28399 | #include <$ac_header> |
| 28400 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28401 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28402 | case "(($ac_try" in |
| 28403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28404 | *) ac_try_echo=$ac_try;; |
| 28405 | esac |
| 28406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28407 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28408 | ac_status=$? |
| 28409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28410 | rm -f conftest.er1 |
| 28411 | cat conftest.err >&5 |
| 28412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28413 | (exit $ac_status); } >/dev/null; then |
| 28414 | if test -s conftest.err; then |
| 28415 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28416 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28417 | else |
| 28418 | ac_cpp_err= |
| 28419 | fi |
| 28420 | else |
| 28421 | ac_cpp_err=yes |
| 28422 | fi |
| 28423 | if test -z "$ac_cpp_err"; then |
| 28424 | ac_header_preproc=yes |
| 28425 | else |
| 28426 | echo "$as_me: failed program was:" >&5 |
| 28427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28428 | |
| 28429 | ac_header_preproc=no |
| 28430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28431 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28432 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28433 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28434 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28435 | |
| 28436 | # So? What about this header? |
| 28437 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28438 | yes:no: ) |
| 28439 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28440 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28441 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28442 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28443 | ac_header_preproc=yes |
| 28444 | ;; |
| 28445 | no:yes:* ) |
| 28446 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28447 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28448 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28449 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28450 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28451 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28452 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28453 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28454 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28455 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28456 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28457 | 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] | 28458 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28459 | ## ----------------------------------- ## |
| 28460 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28461 | ## ----------------------------------- ## |
| 28462 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28463 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28464 | ;; |
| 28465 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28466 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28468 | 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] | 28469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28470 | else |
| 28471 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28472 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28473 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28474 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28475 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28476 | |
| 28477 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28479 | cat >>confdefs.h <<_ACEOF |
| 28480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28481 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28482 | |
| 28483 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28484 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28485 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28486 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28487 | |
| 28488 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28489 | |
| 28490 | |
| 28491 | |
| 28492 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28493 | 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] | 28494 | do |
| 28495 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28496 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28497 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28499 | 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] | 28500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28501 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28502 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28503 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28504 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28505 | else |
| 28506 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28507 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28508 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28509 | cat >conftest.$ac_ext <<_ACEOF |
| 28510 | /* confdefs.h. */ |
| 28511 | _ACEOF |
| 28512 | cat confdefs.h >>conftest.$ac_ext |
| 28513 | cat >>conftest.$ac_ext <<_ACEOF |
| 28514 | /* end confdefs.h. */ |
| 28515 | $ac_includes_default |
| 28516 | #include <$ac_header> |
| 28517 | _ACEOF |
| 28518 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28519 | if { (ac_try="$ac_compile" |
| 28520 | case "(($ac_try" in |
| 28521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28522 | *) ac_try_echo=$ac_try;; |
| 28523 | esac |
| 28524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28525 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28526 | ac_status=$? |
| 28527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28528 | rm -f conftest.er1 |
| 28529 | cat conftest.err >&5 |
| 28530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28531 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28533 | { (case "(($ac_try" in |
| 28534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28535 | *) ac_try_echo=$ac_try;; |
| 28536 | esac |
| 28537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28538 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28539 | ac_status=$? |
| 28540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28541 | (exit $ac_status); }; } && |
| 28542 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28543 | { (case "(($ac_try" in |
| 28544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28545 | *) ac_try_echo=$ac_try;; |
| 28546 | esac |
| 28547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28548 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28549 | ac_status=$? |
| 28550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28551 | (exit $ac_status); }; }; then |
| 28552 | ac_header_compiler=yes |
| 28553 | else |
| 28554 | echo "$as_me: failed program was:" >&5 |
| 28555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28557 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28558 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28559 | |
| 28560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28561 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28562 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28563 | |
| 28564 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28565 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28566 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28567 | cat >conftest.$ac_ext <<_ACEOF |
| 28568 | /* confdefs.h. */ |
| 28569 | _ACEOF |
| 28570 | cat confdefs.h >>conftest.$ac_ext |
| 28571 | cat >>conftest.$ac_ext <<_ACEOF |
| 28572 | /* end confdefs.h. */ |
| 28573 | #include <$ac_header> |
| 28574 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28575 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28576 | case "(($ac_try" in |
| 28577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28578 | *) ac_try_echo=$ac_try;; |
| 28579 | esac |
| 28580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28581 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28582 | ac_status=$? |
| 28583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28584 | rm -f conftest.er1 |
| 28585 | cat conftest.err >&5 |
| 28586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28587 | (exit $ac_status); } >/dev/null; then |
| 28588 | if test -s conftest.err; then |
| 28589 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28590 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28591 | else |
| 28592 | ac_cpp_err= |
| 28593 | fi |
| 28594 | else |
| 28595 | ac_cpp_err=yes |
| 28596 | fi |
| 28597 | if test -z "$ac_cpp_err"; then |
| 28598 | ac_header_preproc=yes |
| 28599 | else |
| 28600 | echo "$as_me: failed program was:" >&5 |
| 28601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28602 | |
| 28603 | ac_header_preproc=no |
| 28604 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28605 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28606 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28607 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28608 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28609 | |
| 28610 | # So? What about this header? |
| 28611 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28612 | yes:no: ) |
| 28613 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28614 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28615 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28616 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28617 | ac_header_preproc=yes |
| 28618 | ;; |
| 28619 | no:yes:* ) |
| 28620 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28621 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28622 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28623 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28624 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28625 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28626 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28627 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28628 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28629 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28630 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28631 | 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] | 28632 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28633 | ## ----------------------------------- ## |
| 28634 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28635 | ## ----------------------------------- ## |
| 28636 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28637 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28638 | ;; |
| 28639 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28640 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28642 | 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] | 28643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28644 | else |
| 28645 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28646 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28647 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28648 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28649 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28650 | |
| 28651 | fi |
| 28652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28653 | cat >>confdefs.h <<_ACEOF |
| 28654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28655 | _ACEOF |
| 28656 | |
| 28657 | fi |
| 28658 | |
| 28659 | done |
| 28660 | |
| 28661 | |
| 28662 | |
| 28663 | |
| 28664 | |
| 28665 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28666 | 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] | 28667 | do |
| 28668 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28669 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28670 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28671 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28672 | 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] | 28673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28674 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28675 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28676 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28677 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28678 | else |
| 28679 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28680 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28681 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28682 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28683 | /* confdefs.h. */ |
| 28684 | _ACEOF |
| 28685 | cat confdefs.h >>conftest.$ac_ext |
| 28686 | cat >>conftest.$ac_ext <<_ACEOF |
| 28687 | /* end confdefs.h. */ |
| 28688 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28689 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28690 | _ACEOF |
| 28691 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28692 | if { (ac_try="$ac_compile" |
| 28693 | case "(($ac_try" in |
| 28694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28695 | *) ac_try_echo=$ac_try;; |
| 28696 | esac |
| 28697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28698 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28699 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28701 | rm -f conftest.er1 |
| 28702 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28704 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28705 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28706 | { (case "(($ac_try" in |
| 28707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28708 | *) ac_try_echo=$ac_try;; |
| 28709 | esac |
| 28710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28711 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28712 | ac_status=$? |
| 28713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28714 | (exit $ac_status); }; } && |
| 28715 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28716 | { (case "(($ac_try" in |
| 28717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28718 | *) ac_try_echo=$ac_try;; |
| 28719 | esac |
| 28720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28721 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28722 | ac_status=$? |
| 28723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28724 | (exit $ac_status); }; }; then |
| 28725 | ac_header_compiler=yes |
| 28726 | else |
| 28727 | echo "$as_me: failed program was:" >&5 |
| 28728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28730 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28731 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28732 | |
| 28733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28734 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28735 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28736 | |
| 28737 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28738 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28739 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28740 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28741 | /* confdefs.h. */ |
| 28742 | _ACEOF |
| 28743 | cat confdefs.h >>conftest.$ac_ext |
| 28744 | cat >>conftest.$ac_ext <<_ACEOF |
| 28745 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28746 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28747 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28748 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28749 | case "(($ac_try" in |
| 28750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28751 | *) ac_try_echo=$ac_try;; |
| 28752 | esac |
| 28753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28754 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28755 | ac_status=$? |
| 28756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28757 | rm -f conftest.er1 |
| 28758 | cat conftest.err >&5 |
| 28759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28760 | (exit $ac_status); } >/dev/null; then |
| 28761 | if test -s conftest.err; then |
| 28762 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28763 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28764 | else |
| 28765 | ac_cpp_err= |
| 28766 | fi |
| 28767 | else |
| 28768 | ac_cpp_err=yes |
| 28769 | fi |
| 28770 | if test -z "$ac_cpp_err"; then |
| 28771 | ac_header_preproc=yes |
| 28772 | else |
| 28773 | echo "$as_me: failed program was:" >&5 |
| 28774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28775 | |
| 28776 | ac_header_preproc=no |
| 28777 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28778 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28779 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28780 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28781 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28782 | |
| 28783 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28785 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28786 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28787 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28788 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28789 | 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] | 28790 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 28791 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28792 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28793 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28794 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28795 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28796 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28797 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28798 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28799 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28800 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28801 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28802 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28803 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28804 | 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] | 28805 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28806 | ## ----------------------------------- ## |
| 28807 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28808 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28809 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28810 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28811 | ;; |
| 28812 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28813 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28815 | 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] | 28816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28817 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28818 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28820 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28821 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28822 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28823 | |
| 28824 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28825 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28826 | cat >>confdefs.h <<_ACEOF |
| 28827 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28828 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28829 | |
| 28830 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28831 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28832 | done |
| 28833 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28834 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28835 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame^] | 28836 | |
| 28837 | 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] | 28838 | do |
| 28839 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28840 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28841 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28842 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28843 | 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] | 28844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28845 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28846 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28847 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28848 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28849 | else |
| 28850 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28851 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28852 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28853 | cat >conftest.$ac_ext <<_ACEOF |
| 28854 | /* confdefs.h. */ |
| 28855 | _ACEOF |
| 28856 | cat confdefs.h >>conftest.$ac_ext |
| 28857 | cat >>conftest.$ac_ext <<_ACEOF |
| 28858 | /* end confdefs.h. */ |
| 28859 | $ac_includes_default |
| 28860 | #include <$ac_header> |
| 28861 | _ACEOF |
| 28862 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28863 | if { (ac_try="$ac_compile" |
| 28864 | case "(($ac_try" in |
| 28865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28866 | *) ac_try_echo=$ac_try;; |
| 28867 | esac |
| 28868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28869 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28870 | ac_status=$? |
| 28871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28872 | rm -f conftest.er1 |
| 28873 | cat conftest.err >&5 |
| 28874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28875 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28876 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28877 | { (case "(($ac_try" in |
| 28878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28879 | *) ac_try_echo=$ac_try;; |
| 28880 | esac |
| 28881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28882 | (eval "$ac_try") 2>&5 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28883 | ac_status=$? |
| 28884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28885 | (exit $ac_status); }; } && |
| 28886 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28887 | { (case "(($ac_try" in |
| 28888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28889 | *) ac_try_echo=$ac_try;; |
| 28890 | esac |
| 28891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28892 | (eval "$ac_try") 2>&5 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28893 | ac_status=$? |
| 28894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28895 | (exit $ac_status); }; }; then |
| 28896 | ac_header_compiler=yes |
| 28897 | else |
| 28898 | echo "$as_me: failed program was:" >&5 |
| 28899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28901 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28902 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28903 | |
| 28904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28905 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28906 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28907 | |
| 28908 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28909 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28910 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28911 | cat >conftest.$ac_ext <<_ACEOF |
| 28912 | /* confdefs.h. */ |
| 28913 | _ACEOF |
| 28914 | cat confdefs.h >>conftest.$ac_ext |
| 28915 | cat >>conftest.$ac_ext <<_ACEOF |
| 28916 | /* end confdefs.h. */ |
| 28917 | #include <$ac_header> |
| 28918 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28919 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28920 | case "(($ac_try" in |
| 28921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28922 | *) ac_try_echo=$ac_try;; |
| 28923 | esac |
| 28924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28925 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28926 | ac_status=$? |
| 28927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28928 | rm -f conftest.er1 |
| 28929 | cat conftest.err >&5 |
| 28930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28931 | (exit $ac_status); } >/dev/null; then |
| 28932 | if test -s conftest.err; then |
| 28933 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28934 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28935 | else |
| 28936 | ac_cpp_err= |
| 28937 | fi |
| 28938 | else |
| 28939 | ac_cpp_err=yes |
| 28940 | fi |
| 28941 | if test -z "$ac_cpp_err"; then |
| 28942 | ac_header_preproc=yes |
| 28943 | else |
| 28944 | echo "$as_me: failed program was:" >&5 |
| 28945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28946 | |
| 28947 | ac_header_preproc=no |
| 28948 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28949 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28950 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28951 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28952 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28953 | |
| 28954 | # So? What about this header? |
| 28955 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28956 | yes:no: ) |
| 28957 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28958 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28959 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28960 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28961 | ac_header_preproc=yes |
| 28962 | ;; |
| 28963 | no:yes:* ) |
| 28964 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28965 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28966 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28967 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28968 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28969 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28970 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28971 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28973 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28974 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28975 | 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] | 28976 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28977 | ## ----------------------------------- ## |
| 28978 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28979 | ## ----------------------------------- ## |
| 28980 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28981 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28982 | ;; |
| 28983 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28984 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28986 | 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] | 28987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28988 | else |
| 28989 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28990 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28991 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28992 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28993 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28994 | |
| 28995 | fi |
| 28996 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28997 | cat >>confdefs.h <<_ACEOF |
| 28998 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28999 | _ACEOF |
| 29000 | |
| 29001 | fi |
| 29002 | |
| 29003 | done |
| 29004 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29005 | if test "$ENABLE_THREADS" -eq 1 ; then |
| 29006 | |
| 29007 | for ac_header in pthread.h |
| 29008 | do |
| 29009 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29010 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29011 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29012 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29013 | 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] | 29014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29015 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29016 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29017 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29018 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29019 | else |
| 29020 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29021 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29022 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29023 | cat >conftest.$ac_ext <<_ACEOF |
| 29024 | /* confdefs.h. */ |
| 29025 | _ACEOF |
| 29026 | cat confdefs.h >>conftest.$ac_ext |
| 29027 | cat >>conftest.$ac_ext <<_ACEOF |
| 29028 | /* end confdefs.h. */ |
| 29029 | $ac_includes_default |
| 29030 | #include <$ac_header> |
| 29031 | _ACEOF |
| 29032 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29033 | if { (ac_try="$ac_compile" |
| 29034 | case "(($ac_try" in |
| 29035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29036 | *) ac_try_echo=$ac_try;; |
| 29037 | esac |
| 29038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29039 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29040 | ac_status=$? |
| 29041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29042 | rm -f conftest.er1 |
| 29043 | cat conftest.err >&5 |
| 29044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29045 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29047 | { (case "(($ac_try" in |
| 29048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29049 | *) ac_try_echo=$ac_try;; |
| 29050 | esac |
| 29051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29052 | (eval "$ac_try") 2>&5 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29053 | ac_status=$? |
| 29054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29055 | (exit $ac_status); }; } && |
| 29056 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29057 | { (case "(($ac_try" in |
| 29058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29059 | *) ac_try_echo=$ac_try;; |
| 29060 | esac |
| 29061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29062 | (eval "$ac_try") 2>&5 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29063 | ac_status=$? |
| 29064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29065 | (exit $ac_status); }; }; then |
| 29066 | ac_header_compiler=yes |
| 29067 | else |
| 29068 | echo "$as_me: failed program was:" >&5 |
| 29069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29071 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29072 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29073 | |
| 29074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29075 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29076 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29077 | |
| 29078 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29079 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29080 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29081 | cat >conftest.$ac_ext <<_ACEOF |
| 29082 | /* confdefs.h. */ |
| 29083 | _ACEOF |
| 29084 | cat confdefs.h >>conftest.$ac_ext |
| 29085 | cat >>conftest.$ac_ext <<_ACEOF |
| 29086 | /* end confdefs.h. */ |
| 29087 | #include <$ac_header> |
| 29088 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29089 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29090 | case "(($ac_try" in |
| 29091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29092 | *) ac_try_echo=$ac_try;; |
| 29093 | esac |
| 29094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29095 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29096 | ac_status=$? |
| 29097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29098 | rm -f conftest.er1 |
| 29099 | cat conftest.err >&5 |
| 29100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29101 | (exit $ac_status); } >/dev/null; then |
| 29102 | if test -s conftest.err; then |
| 29103 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29104 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29105 | else |
| 29106 | ac_cpp_err= |
| 29107 | fi |
| 29108 | else |
| 29109 | ac_cpp_err=yes |
| 29110 | fi |
| 29111 | if test -z "$ac_cpp_err"; then |
| 29112 | ac_header_preproc=yes |
| 29113 | else |
| 29114 | echo "$as_me: failed program was:" >&5 |
| 29115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29116 | |
| 29117 | ac_header_preproc=no |
| 29118 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29119 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29120 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29121 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29122 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29123 | |
| 29124 | # So? What about this header? |
| 29125 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29126 | yes:no: ) |
| 29127 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29128 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29129 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29130 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29131 | ac_header_preproc=yes |
| 29132 | ;; |
| 29133 | no:yes:* ) |
| 29134 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29135 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29136 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29137 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29138 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29139 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29140 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29141 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29142 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29143 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29144 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29145 | 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] | 29146 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29147 | ## ----------------------------------- ## |
| 29148 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29149 | ## ----------------------------------- ## |
| 29150 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29151 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29152 | ;; |
| 29153 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29154 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29156 | 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] | 29157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29158 | else |
| 29159 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29160 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29161 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29162 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29163 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29164 | |
| 29165 | fi |
| 29166 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29167 | cat >>confdefs.h <<_ACEOF |
| 29168 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29169 | _ACEOF |
| 29170 | |
| 29171 | fi |
| 29172 | |
| 29173 | done |
| 29174 | |
| 29175 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29176 | |
| 29177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29178 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 29179 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29180 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 29181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29182 | else |
| 29183 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29184 | /* confdefs.h. */ |
| 29185 | _ACEOF |
| 29186 | cat confdefs.h >>conftest.$ac_ext |
| 29187 | cat >>conftest.$ac_ext <<_ACEOF |
| 29188 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29189 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29190 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29191 | int |
| 29192 | main () |
| 29193 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29194 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29195 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29196 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29197 | return 0; |
| 29198 | ; |
| 29199 | return 0; |
| 29200 | } |
| 29201 | _ACEOF |
| 29202 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29203 | if { (ac_try="$ac_compile" |
| 29204 | case "(($ac_try" in |
| 29205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29206 | *) ac_try_echo=$ac_try;; |
| 29207 | esac |
| 29208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29209 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29210 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29212 | rm -f conftest.er1 |
| 29213 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29215 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29217 | { (case "(($ac_try" in |
| 29218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29219 | *) ac_try_echo=$ac_try;; |
| 29220 | esac |
| 29221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29222 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29223 | ac_status=$? |
| 29224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29225 | (exit $ac_status); }; } && |
| 29226 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29227 | { (case "(($ac_try" in |
| 29228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29229 | *) ac_try_echo=$ac_try;; |
| 29230 | esac |
| 29231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29232 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29233 | ac_status=$? |
| 29234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29235 | (exit $ac_status); }; }; then |
| 29236 | ac_cv_type_pid_t=yes |
| 29237 | else |
| 29238 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29241 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29242 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29243 | |
| 29244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29245 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29246 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 29247 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29248 | if test $ac_cv_type_pid_t = yes; then |
| 29249 | : |
| 29250 | else |
| 29251 | |
| 29252 | cat >>confdefs.h <<_ACEOF |
| 29253 | #define pid_t int |
| 29254 | _ACEOF |
| 29255 | |
| 29256 | fi |
| 29257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29258 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 29259 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29260 | if test "${ac_cv_type_size_t+set}" = set; then |
| 29261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29262 | else |
| 29263 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29264 | /* confdefs.h. */ |
| 29265 | _ACEOF |
| 29266 | cat confdefs.h >>conftest.$ac_ext |
| 29267 | cat >>conftest.$ac_ext <<_ACEOF |
| 29268 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29269 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29270 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29271 | int |
| 29272 | main () |
| 29273 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29274 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29275 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29276 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29277 | return 0; |
| 29278 | ; |
| 29279 | return 0; |
| 29280 | } |
| 29281 | _ACEOF |
| 29282 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29283 | if { (ac_try="$ac_compile" |
| 29284 | case "(($ac_try" in |
| 29285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29286 | *) ac_try_echo=$ac_try;; |
| 29287 | esac |
| 29288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29289 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29290 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29292 | rm -f conftest.er1 |
| 29293 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29295 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29297 | { (case "(($ac_try" in |
| 29298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29299 | *) ac_try_echo=$ac_try;; |
| 29300 | esac |
| 29301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29302 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29303 | ac_status=$? |
| 29304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29305 | (exit $ac_status); }; } && |
| 29306 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29307 | { (case "(($ac_try" in |
| 29308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29309 | *) ac_try_echo=$ac_try;; |
| 29310 | esac |
| 29311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29312 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29313 | ac_status=$? |
| 29314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29315 | (exit $ac_status); }; }; then |
| 29316 | ac_cv_type_size_t=yes |
| 29317 | else |
| 29318 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29321 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29322 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29323 | |
| 29324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29325 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29326 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 29327 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29328 | if test $ac_cv_type_size_t = yes; then |
| 29329 | : |
| 29330 | else |
| 29331 | |
| 29332 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29333 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29334 | _ACEOF |
| 29335 | |
| 29336 | fi |
| 29337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29338 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 29339 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29340 | if test "${ac_cv_type_signal+set}" = set; then |
| 29341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29342 | else |
| 29343 | cat >conftest.$ac_ext <<_ACEOF |
| 29344 | /* confdefs.h. */ |
| 29345 | _ACEOF |
| 29346 | cat confdefs.h >>conftest.$ac_ext |
| 29347 | cat >>conftest.$ac_ext <<_ACEOF |
| 29348 | /* end confdefs.h. */ |
| 29349 | #include <sys/types.h> |
| 29350 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29351 | |
| 29352 | int |
| 29353 | main () |
| 29354 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29355 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29356 | ; |
| 29357 | return 0; |
| 29358 | } |
| 29359 | _ACEOF |
| 29360 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29361 | if { (ac_try="$ac_compile" |
| 29362 | case "(($ac_try" in |
| 29363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29364 | *) ac_try_echo=$ac_try;; |
| 29365 | esac |
| 29366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29367 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29368 | ac_status=$? |
| 29369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29370 | rm -f conftest.er1 |
| 29371 | cat conftest.err >&5 |
| 29372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29373 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29375 | { (case "(($ac_try" in |
| 29376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29377 | *) ac_try_echo=$ac_try;; |
| 29378 | esac |
| 29379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29380 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29381 | ac_status=$? |
| 29382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29383 | (exit $ac_status); }; } && |
| 29384 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29385 | { (case "(($ac_try" in |
| 29386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29387 | *) ac_try_echo=$ac_try;; |
| 29388 | esac |
| 29389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29390 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29391 | ac_status=$? |
| 29392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29393 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29394 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29395 | else |
| 29396 | echo "$as_me: failed program was:" >&5 |
| 29397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29399 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29400 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29401 | |
| 29402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29403 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29404 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 29405 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29406 | |
| 29407 | cat >>confdefs.h <<_ACEOF |
| 29408 | #define RETSIGTYPE $ac_cv_type_signal |
| 29409 | _ACEOF |
| 29410 | |
| 29411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29412 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 29413 | 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] | 29414 | if test "${ac_cv_struct_tm+set}" = set; then |
| 29415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29416 | else |
| 29417 | cat >conftest.$ac_ext <<_ACEOF |
| 29418 | /* confdefs.h. */ |
| 29419 | _ACEOF |
| 29420 | cat confdefs.h >>conftest.$ac_ext |
| 29421 | cat >>conftest.$ac_ext <<_ACEOF |
| 29422 | /* end confdefs.h. */ |
| 29423 | #include <sys/types.h> |
| 29424 | #include <time.h> |
| 29425 | |
| 29426 | int |
| 29427 | main () |
| 29428 | { |
| 29429 | struct tm *tp; tp->tm_sec; |
| 29430 | ; |
| 29431 | return 0; |
| 29432 | } |
| 29433 | _ACEOF |
| 29434 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29435 | if { (ac_try="$ac_compile" |
| 29436 | case "(($ac_try" in |
| 29437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29438 | *) ac_try_echo=$ac_try;; |
| 29439 | esac |
| 29440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29441 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29442 | ac_status=$? |
| 29443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29444 | rm -f conftest.er1 |
| 29445 | cat conftest.err >&5 |
| 29446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29447 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29448 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29449 | { (case "(($ac_try" in |
| 29450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29451 | *) ac_try_echo=$ac_try;; |
| 29452 | esac |
| 29453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29454 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29455 | ac_status=$? |
| 29456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29457 | (exit $ac_status); }; } && |
| 29458 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29459 | { (case "(($ac_try" in |
| 29460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29461 | *) ac_try_echo=$ac_try;; |
| 29462 | esac |
| 29463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29464 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29465 | ac_status=$? |
| 29466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29467 | (exit $ac_status); }; }; then |
| 29468 | ac_cv_struct_tm=time.h |
| 29469 | else |
| 29470 | echo "$as_me: failed program was:" >&5 |
| 29471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29473 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29474 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29475 | |
| 29476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29477 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29478 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 29479 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29480 | if test $ac_cv_struct_tm = sys/time.h; then |
| 29481 | |
| 29482 | cat >>confdefs.h <<\_ACEOF |
| 29483 | #define TM_IN_SYS_TIME 1 |
| 29484 | _ACEOF |
| 29485 | |
| 29486 | fi |
| 29487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29488 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 29489 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29490 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 29491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29492 | else |
| 29493 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29494 | /* confdefs.h. */ |
| 29495 | _ACEOF |
| 29496 | cat confdefs.h >>conftest.$ac_ext |
| 29497 | cat >>conftest.$ac_ext <<_ACEOF |
| 29498 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29499 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29500 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29501 | int |
| 29502 | main () |
| 29503 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29504 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29505 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29506 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29507 | return 0; |
| 29508 | ; |
| 29509 | return 0; |
| 29510 | } |
| 29511 | _ACEOF |
| 29512 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29513 | if { (ac_try="$ac_compile" |
| 29514 | case "(($ac_try" in |
| 29515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29516 | *) ac_try_echo=$ac_try;; |
| 29517 | esac |
| 29518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29519 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29520 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29522 | rm -f conftest.er1 |
| 29523 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29525 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29527 | { (case "(($ac_try" in |
| 29528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29529 | *) ac_try_echo=$ac_try;; |
| 29530 | esac |
| 29531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29532 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29533 | ac_status=$? |
| 29534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29535 | (exit $ac_status); }; } && |
| 29536 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29537 | { (case "(($ac_try" in |
| 29538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29539 | *) ac_try_echo=$ac_try;; |
| 29540 | esac |
| 29541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29542 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29543 | ac_status=$? |
| 29544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29545 | (exit $ac_status); }; }; then |
| 29546 | ac_cv_type_int64_t=yes |
| 29547 | else |
| 29548 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29551 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29552 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29553 | |
| 29554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29556 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 29557 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29558 | if test $ac_cv_type_int64_t = yes; then |
| 29559 | |
| 29560 | cat >>confdefs.h <<_ACEOF |
| 29561 | #define HAVE_INT64_T 1 |
| 29562 | _ACEOF |
| 29563 | |
| 29564 | |
| 29565 | else |
| 29566 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 29567 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 29568 | { (exit 1); exit 1; }; } |
| 29569 | fi |
| 29570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29571 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 29572 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29573 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 29574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29575 | else |
| 29576 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29577 | /* confdefs.h. */ |
| 29578 | _ACEOF |
| 29579 | cat confdefs.h >>conftest.$ac_ext |
| 29580 | cat >>conftest.$ac_ext <<_ACEOF |
| 29581 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29582 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29583 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29584 | int |
| 29585 | main () |
| 29586 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29587 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29588 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29589 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29590 | return 0; |
| 29591 | ; |
| 29592 | return 0; |
| 29593 | } |
| 29594 | _ACEOF |
| 29595 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29596 | if { (ac_try="$ac_compile" |
| 29597 | case "(($ac_try" in |
| 29598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29599 | *) ac_try_echo=$ac_try;; |
| 29600 | esac |
| 29601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29602 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29603 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29605 | rm -f conftest.er1 |
| 29606 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29608 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29610 | { (case "(($ac_try" in |
| 29611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29612 | *) ac_try_echo=$ac_try;; |
| 29613 | esac |
| 29614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29615 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29616 | ac_status=$? |
| 29617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29618 | (exit $ac_status); }; } && |
| 29619 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29620 | { (case "(($ac_try" in |
| 29621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29622 | *) ac_try_echo=$ac_try;; |
| 29623 | esac |
| 29624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29625 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29626 | ac_status=$? |
| 29627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29628 | (exit $ac_status); }; }; then |
| 29629 | ac_cv_type_uint64_t=yes |
| 29630 | else |
| 29631 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29634 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29635 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29636 | |
| 29637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29638 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29639 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 29640 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29641 | if test $ac_cv_type_uint64_t = yes; then |
| 29642 | |
| 29643 | cat >>confdefs.h <<_ACEOF |
| 29644 | #define HAVE_UINT64_T 1 |
| 29645 | _ACEOF |
| 29646 | |
| 29647 | |
| 29648 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29649 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 29650 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29651 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 29652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29653 | else |
| 29654 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29655 | /* confdefs.h. */ |
| 29656 | _ACEOF |
| 29657 | cat confdefs.h >>conftest.$ac_ext |
| 29658 | cat >>conftest.$ac_ext <<_ACEOF |
| 29659 | /* end confdefs.h. */ |
| 29660 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29661 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29662 | int |
| 29663 | main () |
| 29664 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29665 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29666 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29667 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29668 | return 0; |
| 29669 | ; |
| 29670 | return 0; |
| 29671 | } |
| 29672 | _ACEOF |
| 29673 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29674 | if { (ac_try="$ac_compile" |
| 29675 | case "(($ac_try" in |
| 29676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29677 | *) ac_try_echo=$ac_try;; |
| 29678 | esac |
| 29679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29680 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29681 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29683 | rm -f conftest.er1 |
| 29684 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29686 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29688 | { (case "(($ac_try" in |
| 29689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29690 | *) ac_try_echo=$ac_try;; |
| 29691 | esac |
| 29692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29693 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29694 | ac_status=$? |
| 29695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29696 | (exit $ac_status); }; } && |
| 29697 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29698 | { (case "(($ac_try" in |
| 29699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29700 | *) ac_try_echo=$ac_try;; |
| 29701 | esac |
| 29702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29703 | (eval "$ac_try") 2>&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29704 | ac_status=$? |
| 29705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29706 | (exit $ac_status); }; }; then |
| 29707 | ac_cv_type_u_int64_t=yes |
| 29708 | else |
| 29709 | echo "$as_me: failed program was:" >&5 |
| 29710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29712 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29713 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29714 | |
| 29715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29716 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29717 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 29718 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29719 | if test $ac_cv_type_u_int64_t = yes; then |
| 29720 | |
| 29721 | cat >>confdefs.h <<_ACEOF |
| 29722 | #define HAVE_U_INT64_T 1 |
| 29723 | _ACEOF |
| 29724 | |
| 29725 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 29726 | else |
| 29727 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 29728 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 29729 | { (exit 1); exit 1; }; } |
| 29730 | fi |
| 29731 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29732 | fi |
| 29733 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29734 | |
| 29735 | |
| 29736 | |
| 29737 | |
| 29738 | |
| 29739 | |
| 29740 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 29741 | |
| 29742 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29743 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29744 | do |
| 29745 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29746 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29748 | 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] | 29749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29750 | else |
| 29751 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29752 | /* confdefs.h. */ |
| 29753 | _ACEOF |
| 29754 | cat confdefs.h >>conftest.$ac_ext |
| 29755 | cat >>conftest.$ac_ext <<_ACEOF |
| 29756 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29757 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29759 | #define $ac_func innocuous_$ac_func |
| 29760 | |
| 29761 | /* System header to define __stub macros and hopefully few prototypes, |
| 29762 | which can conflict with char $ac_func (); below. |
| 29763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29764 | <limits.h> exists even on freestanding compilers. */ |
| 29765 | |
| 29766 | #ifdef __STDC__ |
| 29767 | # include <limits.h> |
| 29768 | #else |
| 29769 | # include <assert.h> |
| 29770 | #endif |
| 29771 | |
| 29772 | #undef $ac_func |
| 29773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29774 | /* Override any GCC internal prototype to avoid an error. |
| 29775 | Use char because int might match the return type of a GCC |
| 29776 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29777 | #ifdef __cplusplus |
| 29778 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29779 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29780 | char $ac_func (); |
| 29781 | /* The GNU C library defines this for functions which it implements |
| 29782 | to always fail with ENOSYS. Some functions are actually named |
| 29783 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29784 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29785 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29786 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29787 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29788 | int |
| 29789 | main () |
| 29790 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29791 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29792 | ; |
| 29793 | return 0; |
| 29794 | } |
| 29795 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29796 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29797 | if { (ac_try="$ac_link" |
| 29798 | case "(($ac_try" in |
| 29799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29800 | *) ac_try_echo=$ac_try;; |
| 29801 | esac |
| 29802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29803 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29804 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29806 | rm -f conftest.er1 |
| 29807 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29809 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29811 | { (case "(($ac_try" in |
| 29812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29813 | *) ac_try_echo=$ac_try;; |
| 29814 | esac |
| 29815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29816 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29817 | ac_status=$? |
| 29818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29819 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29820 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29821 | { (case "(($ac_try" in |
| 29822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29823 | *) ac_try_echo=$ac_try;; |
| 29824 | esac |
| 29825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29826 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29827 | ac_status=$? |
| 29828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29829 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29830 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29831 | else |
| 29832 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29834 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29835 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29836 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29837 | |
| 29838 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29839 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29840 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29841 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29842 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29843 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29844 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29845 | cat >>confdefs.h <<_ACEOF |
| 29846 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29847 | _ACEOF |
| 29848 | |
| 29849 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29850 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29851 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29852 | |
| 29853 | |
| 29854 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 29855 | |
| 29856 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29857 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29858 | for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp |
| 29859 | do |
| 29860 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29861 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29862 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29863 | 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] | 29864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29865 | else |
| 29866 | cat >conftest.$ac_ext <<_ACEOF |
| 29867 | /* confdefs.h. */ |
| 29868 | _ACEOF |
| 29869 | cat confdefs.h >>conftest.$ac_ext |
| 29870 | cat >>conftest.$ac_ext <<_ACEOF |
| 29871 | /* end confdefs.h. */ |
| 29872 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29873 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29874 | #define $ac_func innocuous_$ac_func |
| 29875 | |
| 29876 | /* System header to define __stub macros and hopefully few prototypes, |
| 29877 | which can conflict with char $ac_func (); below. |
| 29878 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29879 | <limits.h> exists even on freestanding compilers. */ |
| 29880 | |
| 29881 | #ifdef __STDC__ |
| 29882 | # include <limits.h> |
| 29883 | #else |
| 29884 | # include <assert.h> |
| 29885 | #endif |
| 29886 | |
| 29887 | #undef $ac_func |
| 29888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29889 | /* Override any GCC internal prototype to avoid an error. |
| 29890 | Use char because int might match the return type of a GCC |
| 29891 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29892 | #ifdef __cplusplus |
| 29893 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29894 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29895 | char $ac_func (); |
| 29896 | /* The GNU C library defines this for functions which it implements |
| 29897 | to always fail with ENOSYS. Some functions are actually named |
| 29898 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29899 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29900 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29901 | #endif |
| 29902 | |
| 29903 | int |
| 29904 | main () |
| 29905 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29906 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29907 | ; |
| 29908 | return 0; |
| 29909 | } |
| 29910 | _ACEOF |
| 29911 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29912 | if { (ac_try="$ac_link" |
| 29913 | case "(($ac_try" in |
| 29914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29915 | *) ac_try_echo=$ac_try;; |
| 29916 | esac |
| 29917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29918 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29919 | ac_status=$? |
| 29920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29921 | rm -f conftest.er1 |
| 29922 | cat conftest.err >&5 |
| 29923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29924 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29926 | { (case "(($ac_try" in |
| 29927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29928 | *) ac_try_echo=$ac_try;; |
| 29929 | esac |
| 29930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29931 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29932 | ac_status=$? |
| 29933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29934 | (exit $ac_status); }; } && |
| 29935 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29936 | { (case "(($ac_try" in |
| 29937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29938 | *) ac_try_echo=$ac_try;; |
| 29939 | esac |
| 29940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29941 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29942 | ac_status=$? |
| 29943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29944 | (exit $ac_status); }; }; then |
| 29945 | eval "$as_ac_var=yes" |
| 29946 | else |
| 29947 | echo "$as_me: failed program was:" >&5 |
| 29948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29949 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29950 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29951 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29952 | |
| 29953 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29954 | conftest$ac_exeext conftest.$ac_ext |
| 29955 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29956 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29957 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29958 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29959 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29960 | cat >>confdefs.h <<_ACEOF |
| 29961 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 29962 | _ACEOF |
| 29963 | |
| 29964 | fi |
| 29965 | done |
| 29966 | |
| 29967 | |
| 29968 | |
| 29969 | |
| 29970 | |
| 29971 | |
| 29972 | |
| 29973 | |
| 29974 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29975 | do |
| 29976 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29977 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29978 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29979 | 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] | 29980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29981 | else |
| 29982 | cat >conftest.$ac_ext <<_ACEOF |
| 29983 | /* confdefs.h. */ |
| 29984 | _ACEOF |
| 29985 | cat confdefs.h >>conftest.$ac_ext |
| 29986 | cat >>conftest.$ac_ext <<_ACEOF |
| 29987 | /* end confdefs.h. */ |
| 29988 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29989 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29990 | #define $ac_func innocuous_$ac_func |
| 29991 | |
| 29992 | /* System header to define __stub macros and hopefully few prototypes, |
| 29993 | which can conflict with char $ac_func (); below. |
| 29994 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29995 | <limits.h> exists even on freestanding compilers. */ |
| 29996 | |
| 29997 | #ifdef __STDC__ |
| 29998 | # include <limits.h> |
| 29999 | #else |
| 30000 | # include <assert.h> |
| 30001 | #endif |
| 30002 | |
| 30003 | #undef $ac_func |
| 30004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30005 | /* Override any GCC internal prototype to avoid an error. |
| 30006 | Use char because int might match the return type of a GCC |
| 30007 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30008 | #ifdef __cplusplus |
| 30009 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30010 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30011 | char $ac_func (); |
| 30012 | /* The GNU C library defines this for functions which it implements |
| 30013 | to always fail with ENOSYS. Some functions are actually named |
| 30014 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30015 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30016 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30017 | #endif |
| 30018 | |
| 30019 | int |
| 30020 | main () |
| 30021 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30022 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30023 | ; |
| 30024 | return 0; |
| 30025 | } |
| 30026 | _ACEOF |
| 30027 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30028 | if { (ac_try="$ac_link" |
| 30029 | case "(($ac_try" in |
| 30030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30031 | *) ac_try_echo=$ac_try;; |
| 30032 | esac |
| 30033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30034 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30035 | ac_status=$? |
| 30036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30037 | rm -f conftest.er1 |
| 30038 | cat conftest.err >&5 |
| 30039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30040 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30042 | { (case "(($ac_try" in |
| 30043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30044 | *) ac_try_echo=$ac_try;; |
| 30045 | esac |
| 30046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30047 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30048 | ac_status=$? |
| 30049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30050 | (exit $ac_status); }; } && |
| 30051 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30052 | { (case "(($ac_try" in |
| 30053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30054 | *) ac_try_echo=$ac_try;; |
| 30055 | esac |
| 30056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30057 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30058 | ac_status=$? |
| 30059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30060 | (exit $ac_status); }; }; then |
| 30061 | eval "$as_ac_var=yes" |
| 30062 | else |
| 30063 | echo "$as_me: failed program was:" >&5 |
| 30064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30066 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30067 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30068 | |
| 30069 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30070 | conftest$ac_exeext conftest.$ac_ext |
| 30071 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30072 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30073 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30074 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30075 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30076 | cat >>confdefs.h <<_ACEOF |
| 30077 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30078 | _ACEOF |
| 30079 | |
| 30080 | fi |
| 30081 | done |
| 30082 | |
| 30083 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 30084 | |
| 30085 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30086 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 30087 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30088 | do |
| 30089 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30090 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30091 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30092 | 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] | 30093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30094 | else |
| 30095 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30096 | /* confdefs.h. */ |
| 30097 | _ACEOF |
| 30098 | cat confdefs.h >>conftest.$ac_ext |
| 30099 | cat >>conftest.$ac_ext <<_ACEOF |
| 30100 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30101 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30102 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30103 | #define $ac_func innocuous_$ac_func |
| 30104 | |
| 30105 | /* System header to define __stub macros and hopefully few prototypes, |
| 30106 | which can conflict with char $ac_func (); below. |
| 30107 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30108 | <limits.h> exists even on freestanding compilers. */ |
| 30109 | |
| 30110 | #ifdef __STDC__ |
| 30111 | # include <limits.h> |
| 30112 | #else |
| 30113 | # include <assert.h> |
| 30114 | #endif |
| 30115 | |
| 30116 | #undef $ac_func |
| 30117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30118 | /* Override any GCC internal prototype to avoid an error. |
| 30119 | Use char because int might match the return type of a GCC |
| 30120 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30121 | #ifdef __cplusplus |
| 30122 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30123 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30124 | char $ac_func (); |
| 30125 | /* The GNU C library defines this for functions which it implements |
| 30126 | to always fail with ENOSYS. Some functions are actually named |
| 30127 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30128 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30129 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30130 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30131 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30132 | int |
| 30133 | main () |
| 30134 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30135 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30136 | ; |
| 30137 | return 0; |
| 30138 | } |
| 30139 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30140 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30141 | if { (ac_try="$ac_link" |
| 30142 | case "(($ac_try" in |
| 30143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30144 | *) ac_try_echo=$ac_try;; |
| 30145 | esac |
| 30146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30147 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30148 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30150 | rm -f conftest.er1 |
| 30151 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30153 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30155 | { (case "(($ac_try" in |
| 30156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30157 | *) ac_try_echo=$ac_try;; |
| 30158 | esac |
| 30159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30160 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30161 | ac_status=$? |
| 30162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30163 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30164 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30165 | { (case "(($ac_try" in |
| 30166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30167 | *) ac_try_echo=$ac_try;; |
| 30168 | esac |
| 30169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30170 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30171 | ac_status=$? |
| 30172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30173 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30174 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30175 | else |
| 30176 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30179 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30180 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30181 | |
| 30182 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30183 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30184 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30185 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30186 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30187 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30188 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30189 | cat >>confdefs.h <<_ACEOF |
| 30190 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30191 | _ACEOF |
| 30192 | |
| 30193 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30194 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30195 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30196 | |
| 30197 | |
| 30198 | |
| 30199 | |
| 30200 | |
| 30201 | |
| 30202 | for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp |
| 30203 | do |
| 30204 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30205 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30206 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30207 | 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] | 30208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30209 | else |
| 30210 | cat >conftest.$ac_ext <<_ACEOF |
| 30211 | /* confdefs.h. */ |
| 30212 | _ACEOF |
| 30213 | cat confdefs.h >>conftest.$ac_ext |
| 30214 | cat >>conftest.$ac_ext <<_ACEOF |
| 30215 | /* end confdefs.h. */ |
| 30216 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30217 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30218 | #define $ac_func innocuous_$ac_func |
| 30219 | |
| 30220 | /* System header to define __stub macros and hopefully few prototypes, |
| 30221 | which can conflict with char $ac_func (); below. |
| 30222 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30223 | <limits.h> exists even on freestanding compilers. */ |
| 30224 | |
| 30225 | #ifdef __STDC__ |
| 30226 | # include <limits.h> |
| 30227 | #else |
| 30228 | # include <assert.h> |
| 30229 | #endif |
| 30230 | |
| 30231 | #undef $ac_func |
| 30232 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30233 | /* Override any GCC internal prototype to avoid an error. |
| 30234 | Use char because int might match the return type of a GCC |
| 30235 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30236 | #ifdef __cplusplus |
| 30237 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30238 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30239 | char $ac_func (); |
| 30240 | /* The GNU C library defines this for functions which it implements |
| 30241 | to always fail with ENOSYS. Some functions are actually named |
| 30242 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30243 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30244 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30245 | #endif |
| 30246 | |
| 30247 | int |
| 30248 | main () |
| 30249 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30250 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30251 | ; |
| 30252 | return 0; |
| 30253 | } |
| 30254 | _ACEOF |
| 30255 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30256 | if { (ac_try="$ac_link" |
| 30257 | case "(($ac_try" in |
| 30258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30259 | *) ac_try_echo=$ac_try;; |
| 30260 | esac |
| 30261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30262 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30263 | ac_status=$? |
| 30264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30265 | rm -f conftest.er1 |
| 30266 | cat conftest.err >&5 |
| 30267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30268 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30270 | { (case "(($ac_try" in |
| 30271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30272 | *) ac_try_echo=$ac_try;; |
| 30273 | esac |
| 30274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30275 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30276 | ac_status=$? |
| 30277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30278 | (exit $ac_status); }; } && |
| 30279 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30280 | { (case "(($ac_try" in |
| 30281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30282 | *) ac_try_echo=$ac_try;; |
| 30283 | esac |
| 30284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30285 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30286 | ac_status=$? |
| 30287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30288 | (exit $ac_status); }; }; then |
| 30289 | eval "$as_ac_var=yes" |
| 30290 | else |
| 30291 | echo "$as_me: failed program was:" >&5 |
| 30292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30294 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30295 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30296 | |
| 30297 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30298 | conftest$ac_exeext conftest.$ac_ext |
| 30299 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30300 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30301 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30302 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30303 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30304 | cat >>confdefs.h <<_ACEOF |
| 30305 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30306 | _ACEOF |
| 30307 | |
| 30308 | fi |
| 30309 | done |
| 30310 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30311 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 30312 | 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] | 30313 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30315 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30316 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30317 | ac_cpp='$CPP $CPPFLAGS' |
| 30318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30321 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30322 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30323 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30324 | else |
| 30325 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30326 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30327 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30328 | _ACEOF |
| 30329 | cat confdefs.h >>conftest.$ac_ext |
| 30330 | cat >>conftest.$ac_ext <<_ACEOF |
| 30331 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30332 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30333 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30334 | #include <stdlib.h> |
| 30335 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30336 | int |
| 30337 | main () |
| 30338 | { |
| 30339 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30340 | volatile double A, B; |
| 30341 | char Buffer[100]; |
| 30342 | A = 1; |
| 30343 | A /= 10.0; |
| 30344 | sprintf(Buffer, "%a", A); |
| 30345 | B = atof(Buffer); |
| 30346 | if (A != B) |
| 30347 | return (1); |
| 30348 | if (A != 0x1.999999999999ap-4) |
| 30349 | return (1); |
| 30350 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30351 | ; |
| 30352 | return 0; |
| 30353 | } |
| 30354 | _ACEOF |
| 30355 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30356 | if { (ac_try="$ac_link" |
| 30357 | case "(($ac_try" in |
| 30358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30359 | *) ac_try_echo=$ac_try;; |
| 30360 | esac |
| 30361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30362 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30363 | ac_status=$? |
| 30364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30365 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30366 | { (case "(($ac_try" in |
| 30367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30368 | *) ac_try_echo=$ac_try;; |
| 30369 | esac |
| 30370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30371 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30372 | ac_status=$? |
| 30373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30374 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30375 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30376 | else |
| 30377 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30378 | echo "$as_me: failed program was:" >&5 |
| 30379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30380 | |
| 30381 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30382 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30383 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30384 | 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] | 30385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30386 | |
| 30387 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30388 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30389 | ac_cpp='$CPP $CPPFLAGS' |
| 30390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30393 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30394 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30395 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 30396 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30397 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30398 | |
| 30399 | cat >>confdefs.h <<\_ACEOF |
| 30400 | #define HAVE_PRINTF_A 1 |
| 30401 | _ACEOF |
| 30402 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30403 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30404 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30405 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 30406 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30407 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 30408 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30409 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30411 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30412 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30413 | /* confdefs.h. */ |
| 30414 | _ACEOF |
| 30415 | cat confdefs.h >>conftest.$ac_ext |
| 30416 | cat >>conftest.$ac_ext <<_ACEOF |
| 30417 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30418 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30419 | int |
| 30420 | main () |
| 30421 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30422 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30423 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30424 | ; |
| 30425 | return 0; |
| 30426 | } |
| 30427 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30428 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30429 | if { (ac_try="$ac_link" |
| 30430 | case "(($ac_try" in |
| 30431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30432 | *) ac_try_echo=$ac_try;; |
| 30433 | esac |
| 30434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30435 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30436 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30438 | rm -f conftest.er1 |
| 30439 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30441 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30443 | { (case "(($ac_try" in |
| 30444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30445 | *) ac_try_echo=$ac_try;; |
| 30446 | esac |
| 30447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30448 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30449 | ac_status=$? |
| 30450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30451 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30452 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30453 | { (case "(($ac_try" in |
| 30454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30455 | *) ac_try_echo=$ac_try;; |
| 30456 | esac |
| 30457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30458 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30459 | ac_status=$? |
| 30460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30461 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30462 | ac_cv_working_alloca_h=yes |
| 30463 | else |
| 30464 | echo "$as_me: failed program was:" >&5 |
| 30465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30467 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30468 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30469 | |
| 30470 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30471 | conftest$ac_exeext conftest.$ac_ext |
| 30472 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30473 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 30474 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30475 | if test $ac_cv_working_alloca_h = yes; then |
| 30476 | |
| 30477 | cat >>confdefs.h <<\_ACEOF |
| 30478 | #define HAVE_ALLOCA_H 1 |
| 30479 | _ACEOF |
| 30480 | |
| 30481 | fi |
| 30482 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30483 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 30484 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30485 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 30486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30487 | else |
| 30488 | cat >conftest.$ac_ext <<_ACEOF |
| 30489 | /* confdefs.h. */ |
| 30490 | _ACEOF |
| 30491 | cat confdefs.h >>conftest.$ac_ext |
| 30492 | cat >>conftest.$ac_ext <<_ACEOF |
| 30493 | /* end confdefs.h. */ |
| 30494 | #ifdef __GNUC__ |
| 30495 | # define alloca __builtin_alloca |
| 30496 | #else |
| 30497 | # ifdef _MSC_VER |
| 30498 | # include <malloc.h> |
| 30499 | # define alloca _alloca |
| 30500 | # else |
| 30501 | # if HAVE_ALLOCA_H |
| 30502 | # include <alloca.h> |
| 30503 | # else |
| 30504 | # ifdef _AIX |
| 30505 | #pragma alloca |
| 30506 | # else |
| 30507 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 30508 | char *alloca (); |
| 30509 | # endif |
| 30510 | # endif |
| 30511 | # endif |
| 30512 | # endif |
| 30513 | #endif |
| 30514 | |
| 30515 | int |
| 30516 | main () |
| 30517 | { |
| 30518 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30519 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30520 | ; |
| 30521 | return 0; |
| 30522 | } |
| 30523 | _ACEOF |
| 30524 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30525 | if { (ac_try="$ac_link" |
| 30526 | case "(($ac_try" in |
| 30527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30528 | *) ac_try_echo=$ac_try;; |
| 30529 | esac |
| 30530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30531 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30532 | ac_status=$? |
| 30533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30534 | rm -f conftest.er1 |
| 30535 | cat conftest.err >&5 |
| 30536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30537 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30539 | { (case "(($ac_try" in |
| 30540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30541 | *) ac_try_echo=$ac_try;; |
| 30542 | esac |
| 30543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30544 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30545 | ac_status=$? |
| 30546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30547 | (exit $ac_status); }; } && |
| 30548 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30549 | { (case "(($ac_try" in |
| 30550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30551 | *) ac_try_echo=$ac_try;; |
| 30552 | esac |
| 30553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30554 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30555 | ac_status=$? |
| 30556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30557 | (exit $ac_status); }; }; then |
| 30558 | ac_cv_func_alloca_works=yes |
| 30559 | else |
| 30560 | echo "$as_me: failed program was:" >&5 |
| 30561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30563 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30564 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30565 | |
| 30566 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30567 | conftest$ac_exeext conftest.$ac_ext |
| 30568 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30569 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 30570 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30571 | |
| 30572 | if test $ac_cv_func_alloca_works = yes; then |
| 30573 | |
| 30574 | cat >>confdefs.h <<\_ACEOF |
| 30575 | #define HAVE_ALLOCA 1 |
| 30576 | _ACEOF |
| 30577 | |
| 30578 | else |
| 30579 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 30580 | # that cause trouble. Some versions do not even contain alloca or |
| 30581 | # contain a buggy version. If you still want to use their alloca, |
| 30582 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 30583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30584 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30585 | |
| 30586 | cat >>confdefs.h <<\_ACEOF |
| 30587 | #define C_ALLOCA 1 |
| 30588 | _ACEOF |
| 30589 | |
| 30590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30591 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 30592 | 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] | 30593 | if test "${ac_cv_os_cray+set}" = set; then |
| 30594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30595 | else |
| 30596 | cat >conftest.$ac_ext <<_ACEOF |
| 30597 | /* confdefs.h. */ |
| 30598 | _ACEOF |
| 30599 | cat confdefs.h >>conftest.$ac_ext |
| 30600 | cat >>conftest.$ac_ext <<_ACEOF |
| 30601 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30602 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30603 | webecray |
| 30604 | #else |
| 30605 | wenotbecray |
| 30606 | #endif |
| 30607 | |
| 30608 | _ACEOF |
| 30609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30610 | $EGREP "webecray" >/dev/null 2>&1; then |
| 30611 | ac_cv_os_cray=yes |
| 30612 | else |
| 30613 | ac_cv_os_cray=no |
| 30614 | fi |
| 30615 | rm -f conftest* |
| 30616 | |
| 30617 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30618 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 30619 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30620 | if test $ac_cv_os_cray = yes; then |
| 30621 | for ac_func in _getb67 GETB67 getb67; do |
| 30622 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30623 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30624 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30625 | 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] | 30626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30627 | else |
| 30628 | cat >conftest.$ac_ext <<_ACEOF |
| 30629 | /* confdefs.h. */ |
| 30630 | _ACEOF |
| 30631 | cat confdefs.h >>conftest.$ac_ext |
| 30632 | cat >>conftest.$ac_ext <<_ACEOF |
| 30633 | /* end confdefs.h. */ |
| 30634 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30635 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30636 | #define $ac_func innocuous_$ac_func |
| 30637 | |
| 30638 | /* System header to define __stub macros and hopefully few prototypes, |
| 30639 | which can conflict with char $ac_func (); below. |
| 30640 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30641 | <limits.h> exists even on freestanding compilers. */ |
| 30642 | |
| 30643 | #ifdef __STDC__ |
| 30644 | # include <limits.h> |
| 30645 | #else |
| 30646 | # include <assert.h> |
| 30647 | #endif |
| 30648 | |
| 30649 | #undef $ac_func |
| 30650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30651 | /* Override any GCC internal prototype to avoid an error. |
| 30652 | Use char because int might match the return type of a GCC |
| 30653 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30654 | #ifdef __cplusplus |
| 30655 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30656 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30657 | char $ac_func (); |
| 30658 | /* The GNU C library defines this for functions which it implements |
| 30659 | to always fail with ENOSYS. Some functions are actually named |
| 30660 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30661 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30662 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30663 | #endif |
| 30664 | |
| 30665 | int |
| 30666 | main () |
| 30667 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30668 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30669 | ; |
| 30670 | return 0; |
| 30671 | } |
| 30672 | _ACEOF |
| 30673 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30674 | if { (ac_try="$ac_link" |
| 30675 | case "(($ac_try" in |
| 30676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30677 | *) ac_try_echo=$ac_try;; |
| 30678 | esac |
| 30679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30680 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30681 | ac_status=$? |
| 30682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30683 | rm -f conftest.er1 |
| 30684 | cat conftest.err >&5 |
| 30685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30686 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30688 | { (case "(($ac_try" in |
| 30689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30690 | *) ac_try_echo=$ac_try;; |
| 30691 | esac |
| 30692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30693 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30694 | ac_status=$? |
| 30695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30696 | (exit $ac_status); }; } && |
| 30697 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30698 | { (case "(($ac_try" in |
| 30699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30700 | *) ac_try_echo=$ac_try;; |
| 30701 | esac |
| 30702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30703 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30704 | ac_status=$? |
| 30705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30706 | (exit $ac_status); }; }; then |
| 30707 | eval "$as_ac_var=yes" |
| 30708 | else |
| 30709 | echo "$as_me: failed program was:" >&5 |
| 30710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30712 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30713 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30714 | |
| 30715 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30716 | conftest$ac_exeext conftest.$ac_ext |
| 30717 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30718 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30719 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30720 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30721 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30722 | |
| 30723 | cat >>confdefs.h <<_ACEOF |
| 30724 | #define CRAY_STACKSEG_END $ac_func |
| 30725 | _ACEOF |
| 30726 | |
| 30727 | break |
| 30728 | fi |
| 30729 | |
| 30730 | done |
| 30731 | fi |
| 30732 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30733 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 30734 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30735 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 30736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30737 | else |
| 30738 | if test "$cross_compiling" = yes; then |
| 30739 | ac_cv_c_stack_direction=0 |
| 30740 | else |
| 30741 | cat >conftest.$ac_ext <<_ACEOF |
| 30742 | /* confdefs.h. */ |
| 30743 | _ACEOF |
| 30744 | cat confdefs.h >>conftest.$ac_ext |
| 30745 | cat >>conftest.$ac_ext <<_ACEOF |
| 30746 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30747 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30748 | int |
| 30749 | find_stack_direction () |
| 30750 | { |
| 30751 | static char *addr = 0; |
| 30752 | auto char dummy; |
| 30753 | if (addr == 0) |
| 30754 | { |
| 30755 | addr = &dummy; |
| 30756 | return find_stack_direction (); |
| 30757 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30758 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30759 | return (&dummy > addr) ? 1 : -1; |
| 30760 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30761 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30762 | int |
| 30763 | main () |
| 30764 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30765 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30766 | } |
| 30767 | _ACEOF |
| 30768 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30769 | if { (ac_try="$ac_link" |
| 30770 | case "(($ac_try" in |
| 30771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30772 | *) ac_try_echo=$ac_try;; |
| 30773 | esac |
| 30774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30775 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30776 | ac_status=$? |
| 30777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30778 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30779 | { (case "(($ac_try" in |
| 30780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30781 | *) ac_try_echo=$ac_try;; |
| 30782 | esac |
| 30783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30784 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30785 | ac_status=$? |
| 30786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30787 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30788 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30789 | else |
| 30790 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30791 | echo "$as_me: failed program was:" >&5 |
| 30792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30793 | |
| 30794 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30795 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30797 | 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] | 30798 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30799 | |
| 30800 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30801 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30802 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 30803 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30804 | |
| 30805 | cat >>confdefs.h <<_ACEOF |
| 30806 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 30807 | _ACEOF |
| 30808 | |
| 30809 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30810 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30811 | |
| 30812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30813 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 30814 | 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] | 30815 | if test "${ac_cv_func_rand48+set}" = set; then |
| 30816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30817 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30818 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30819 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30820 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30821 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30822 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30823 | |
| 30824 | cat >conftest.$ac_ext <<_ACEOF |
| 30825 | /* confdefs.h. */ |
| 30826 | _ACEOF |
| 30827 | cat confdefs.h >>conftest.$ac_ext |
| 30828 | cat >>conftest.$ac_ext <<_ACEOF |
| 30829 | /* end confdefs.h. */ |
| 30830 | #include <stdlib.h> |
| 30831 | int |
| 30832 | main () |
| 30833 | { |
| 30834 | srand48(0);lrand48();drand48(); |
| 30835 | ; |
| 30836 | return 0; |
| 30837 | } |
| 30838 | _ACEOF |
| 30839 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30840 | if { (ac_try="$ac_compile" |
| 30841 | case "(($ac_try" in |
| 30842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30843 | *) ac_try_echo=$ac_try;; |
| 30844 | esac |
| 30845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30846 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30847 | ac_status=$? |
| 30848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30849 | rm -f conftest.er1 |
| 30850 | cat conftest.err >&5 |
| 30851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30852 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30853 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 30854 | { (case "(($ac_try" in |
| 30855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30856 | *) ac_try_echo=$ac_try;; |
| 30857 | esac |
| 30858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30859 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30860 | ac_status=$? |
| 30861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30862 | (exit $ac_status); }; } && |
| 30863 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30864 | { (case "(($ac_try" in |
| 30865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30866 | *) ac_try_echo=$ac_try;; |
| 30867 | esac |
| 30868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30869 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30870 | ac_status=$? |
| 30871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30872 | (exit $ac_status); }; }; then |
| 30873 | ac_cv_func_rand48=yes |
| 30874 | else |
| 30875 | echo "$as_me: failed program was:" >&5 |
| 30876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30878 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30879 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30880 | |
| 30881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30882 | ac_ext=c |
| 30883 | ac_cpp='$CPP $CPPFLAGS' |
| 30884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30887 | |
| 30888 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30889 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 30890 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30891 | |
| 30892 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 30893 | |
| 30894 | cat >>confdefs.h <<\_ACEOF |
| 30895 | #define HAVE_RAND48 1 |
| 30896 | _ACEOF |
| 30897 | |
| 30898 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30899 | |
| 30900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30901 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 30902 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30903 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 30904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30905 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30906 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30907 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30908 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30909 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30910 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30911 | |
| 30912 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30913 | /* confdefs.h. */ |
| 30914 | _ACEOF |
| 30915 | cat confdefs.h >>conftest.$ac_ext |
| 30916 | cat >>conftest.$ac_ext <<_ACEOF |
| 30917 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30918 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30919 | int |
| 30920 | main () |
| 30921 | { |
| 30922 | using namespace Outer::Inner; return i; |
| 30923 | ; |
| 30924 | return 0; |
| 30925 | } |
| 30926 | _ACEOF |
| 30927 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30928 | if { (ac_try="$ac_compile" |
| 30929 | case "(($ac_try" in |
| 30930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30931 | *) ac_try_echo=$ac_try;; |
| 30932 | esac |
| 30933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30934 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30935 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30937 | rm -f conftest.er1 |
| 30938 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30940 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30941 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 30942 | { (case "(($ac_try" in |
| 30943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30944 | *) ac_try_echo=$ac_try;; |
| 30945 | esac |
| 30946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30947 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30948 | ac_status=$? |
| 30949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30950 | (exit $ac_status); }; } && |
| 30951 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30952 | { (case "(($ac_try" in |
| 30953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30954 | *) ac_try_echo=$ac_try;; |
| 30955 | esac |
| 30956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30957 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30958 | ac_status=$? |
| 30959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30960 | (exit $ac_status); }; }; then |
| 30961 | ac_cv_cxx_namespaces=yes |
| 30962 | else |
| 30963 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30966 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30967 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30968 | |
| 30969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30970 | ac_ext=c |
| 30971 | ac_cpp='$CPP $CPPFLAGS' |
| 30972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30975 | |
| 30976 | |
| 30977 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30978 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 30979 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30980 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 30981 | |
| 30982 | cat >>confdefs.h <<\_ACEOF |
| 30983 | #define HAVE_NAMESPACES |
| 30984 | _ACEOF |
| 30985 | |
| 30986 | fi |
| 30987 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30988 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 30989 | 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] | 30990 | 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] | 30991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30992 | else |
| 30993 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30994 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30995 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30996 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30997 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30998 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30999 | |
| 31000 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31001 | /* confdefs.h. */ |
| 31002 | _ACEOF |
| 31003 | cat confdefs.h >>conftest.$ac_ext |
| 31004 | cat >>conftest.$ac_ext <<_ACEOF |
| 31005 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31006 | #include <ext/hash_map> |
| 31007 | #ifdef HAVE_NAMESPACES |
| 31008 | using namespace std; |
| 31009 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31010 | int |
| 31011 | main () |
| 31012 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31013 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31014 | ; |
| 31015 | return 0; |
| 31016 | } |
| 31017 | _ACEOF |
| 31018 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31019 | if { (ac_try="$ac_compile" |
| 31020 | case "(($ac_try" in |
| 31021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31022 | *) ac_try_echo=$ac_try;; |
| 31023 | esac |
| 31024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31025 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31026 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31028 | rm -f conftest.er1 |
| 31029 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31031 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31032 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31033 | { (case "(($ac_try" in |
| 31034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31035 | *) ac_try_echo=$ac_try;; |
| 31036 | esac |
| 31037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31038 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31039 | ac_status=$? |
| 31040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31041 | (exit $ac_status); }; } && |
| 31042 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31043 | { (case "(($ac_try" in |
| 31044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31045 | *) ac_try_echo=$ac_try;; |
| 31046 | esac |
| 31047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31048 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31049 | ac_status=$? |
| 31050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31051 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31052 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31053 | else |
| 31054 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31057 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31058 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31059 | |
| 31060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31061 | ac_ext=c |
| 31062 | ac_cpp='$CPP $CPPFLAGS' |
| 31063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31066 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31067 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31068 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 31069 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31070 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 31071 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31072 | |
| 31073 | cat >>confdefs.h <<\_ACEOF |
| 31074 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 31075 | _ACEOF |
| 31076 | |
| 31077 | else |
| 31078 | |
| 31079 | cat >>confdefs.h <<\_ACEOF |
| 31080 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 31081 | _ACEOF |
| 31082 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31083 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31084 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31085 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 31086 | 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] | 31087 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 31088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31089 | else |
| 31090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31091 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31092 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31093 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31094 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31095 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31096 | |
| 31097 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31098 | /* confdefs.h. */ |
| 31099 | _ACEOF |
| 31100 | cat confdefs.h >>conftest.$ac_ext |
| 31101 | cat >>conftest.$ac_ext <<_ACEOF |
| 31102 | /* end confdefs.h. */ |
| 31103 | #include <ext/hash_map> |
| 31104 | #ifdef HAVE_NAMESPACES |
| 31105 | using namespace __gnu_cxx; |
| 31106 | #endif |
| 31107 | int |
| 31108 | main () |
| 31109 | { |
| 31110 | hash_map<int,int> t; |
| 31111 | ; |
| 31112 | return 0; |
| 31113 | } |
| 31114 | _ACEOF |
| 31115 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31116 | if { (ac_try="$ac_compile" |
| 31117 | case "(($ac_try" in |
| 31118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31119 | *) ac_try_echo=$ac_try;; |
| 31120 | esac |
| 31121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31122 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31123 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31125 | rm -f conftest.er1 |
| 31126 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31128 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31129 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31130 | { (case "(($ac_try" in |
| 31131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31132 | *) ac_try_echo=$ac_try;; |
| 31133 | esac |
| 31134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31135 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31136 | ac_status=$? |
| 31137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31138 | (exit $ac_status); }; } && |
| 31139 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31140 | { (case "(($ac_try" in |
| 31141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31142 | *) ac_try_echo=$ac_try;; |
| 31143 | esac |
| 31144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31145 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31146 | ac_status=$? |
| 31147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31148 | (exit $ac_status); }; }; then |
| 31149 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 31150 | else |
| 31151 | echo "$as_me: failed program was:" >&5 |
| 31152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31154 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31155 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31156 | |
| 31157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31158 | ac_ext=c |
| 31159 | ac_cpp='$CPP $CPPFLAGS' |
| 31160 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31161 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31162 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31163 | |
| 31164 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31165 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 31166 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31167 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 31168 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31169 | |
| 31170 | cat >>confdefs.h <<\_ACEOF |
| 31171 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 31172 | _ACEOF |
| 31173 | |
| 31174 | else |
| 31175 | |
| 31176 | cat >>confdefs.h <<\_ACEOF |
| 31177 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 31178 | _ACEOF |
| 31179 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31180 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31182 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 31183 | 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] | 31184 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 31185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31186 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31188 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31189 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31190 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31191 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31192 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31193 | |
| 31194 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31195 | /* confdefs.h. */ |
| 31196 | _ACEOF |
| 31197 | cat confdefs.h >>conftest.$ac_ext |
| 31198 | cat >>conftest.$ac_ext <<_ACEOF |
| 31199 | /* end confdefs.h. */ |
| 31200 | #include <hash_map> |
| 31201 | int |
| 31202 | main () |
| 31203 | { |
| 31204 | hash_map<int,int> t; |
| 31205 | ; |
| 31206 | return 0; |
| 31207 | } |
| 31208 | _ACEOF |
| 31209 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31210 | if { (ac_try="$ac_compile" |
| 31211 | case "(($ac_try" in |
| 31212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31213 | *) ac_try_echo=$ac_try;; |
| 31214 | esac |
| 31215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31216 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31217 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31219 | rm -f conftest.er1 |
| 31220 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31222 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31224 | { (case "(($ac_try" in |
| 31225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31226 | *) ac_try_echo=$ac_try;; |
| 31227 | esac |
| 31228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31229 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31230 | ac_status=$? |
| 31231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31232 | (exit $ac_status); }; } && |
| 31233 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31234 | { (case "(($ac_try" in |
| 31235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31236 | *) ac_try_echo=$ac_try;; |
| 31237 | esac |
| 31238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31239 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31240 | ac_status=$? |
| 31241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31242 | (exit $ac_status); }; }; then |
| 31243 | ac_cv_cxx_have_global_hash_map=yes |
| 31244 | else |
| 31245 | echo "$as_me: failed program was:" >&5 |
| 31246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31248 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31249 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31250 | |
| 31251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31252 | ac_ext=c |
| 31253 | ac_cpp='$CPP $CPPFLAGS' |
| 31254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31257 | |
| 31258 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31259 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 31260 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31261 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 31262 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31263 | |
| 31264 | cat >>confdefs.h <<\_ACEOF |
| 31265 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 31266 | _ACEOF |
| 31267 | |
| 31268 | else |
| 31269 | |
| 31270 | cat >>confdefs.h <<\_ACEOF |
| 31271 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 31272 | _ACEOF |
| 31273 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31274 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31275 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31276 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 31277 | 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] | 31278 | 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] | 31279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31280 | else |
| 31281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31282 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31283 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31284 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31285 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31286 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31287 | |
| 31288 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31289 | /* confdefs.h. */ |
| 31290 | _ACEOF |
| 31291 | cat confdefs.h >>conftest.$ac_ext |
| 31292 | cat >>conftest.$ac_ext <<_ACEOF |
| 31293 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31294 | #include <ext/hash_set> |
| 31295 | #ifdef HAVE_NAMESPACES |
| 31296 | using namespace std; |
| 31297 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31298 | int |
| 31299 | main () |
| 31300 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31301 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31302 | ; |
| 31303 | return 0; |
| 31304 | } |
| 31305 | _ACEOF |
| 31306 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31307 | if { (ac_try="$ac_compile" |
| 31308 | case "(($ac_try" in |
| 31309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31310 | *) ac_try_echo=$ac_try;; |
| 31311 | esac |
| 31312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31313 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31314 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31316 | rm -f conftest.er1 |
| 31317 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31319 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31320 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31321 | { (case "(($ac_try" in |
| 31322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31323 | *) ac_try_echo=$ac_try;; |
| 31324 | esac |
| 31325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31326 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31327 | ac_status=$? |
| 31328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31329 | (exit $ac_status); }; } && |
| 31330 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31331 | { (case "(($ac_try" in |
| 31332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31333 | *) ac_try_echo=$ac_try;; |
| 31334 | esac |
| 31335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31336 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31337 | ac_status=$? |
| 31338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31339 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31340 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31341 | else |
| 31342 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31345 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31346 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31347 | |
| 31348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31349 | ac_ext=c |
| 31350 | ac_cpp='$CPP $CPPFLAGS' |
| 31351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31354 | |
| 31355 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31356 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 31357 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31358 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 31359 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31360 | |
| 31361 | cat >>confdefs.h <<\_ACEOF |
| 31362 | #define HAVE_STD_EXT_HASH_SET 1 |
| 31363 | _ACEOF |
| 31364 | |
| 31365 | else |
| 31366 | |
| 31367 | cat >>confdefs.h <<\_ACEOF |
| 31368 | #define HAVE_STD_EXT_HASH_SET 0 |
| 31369 | _ACEOF |
| 31370 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31371 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31373 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 31374 | 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] | 31375 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 31376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31377 | else |
| 31378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31379 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31380 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31381 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31382 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31383 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31384 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31385 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31386 | /* confdefs.h. */ |
| 31387 | _ACEOF |
| 31388 | cat confdefs.h >>conftest.$ac_ext |
| 31389 | cat >>conftest.$ac_ext <<_ACEOF |
| 31390 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31391 | #include <ext/hash_set> |
| 31392 | #ifdef HAVE_NAMESPACES |
| 31393 | using namespace __gnu_cxx; |
| 31394 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31395 | int |
| 31396 | main () |
| 31397 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31398 | hash_set<int> t; |
| 31399 | ; |
| 31400 | return 0; |
| 31401 | } |
| 31402 | _ACEOF |
| 31403 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31404 | if { (ac_try="$ac_compile" |
| 31405 | case "(($ac_try" in |
| 31406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31407 | *) ac_try_echo=$ac_try;; |
| 31408 | esac |
| 31409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31410 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31411 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31413 | rm -f conftest.er1 |
| 31414 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31416 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31417 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31418 | { (case "(($ac_try" in |
| 31419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31420 | *) ac_try_echo=$ac_try;; |
| 31421 | esac |
| 31422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31423 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31424 | ac_status=$? |
| 31425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31426 | (exit $ac_status); }; } && |
| 31427 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31428 | { (case "(($ac_try" in |
| 31429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31430 | *) ac_try_echo=$ac_try;; |
| 31431 | esac |
| 31432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31433 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31434 | ac_status=$? |
| 31435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31436 | (exit $ac_status); }; }; then |
| 31437 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 31438 | else |
| 31439 | echo "$as_me: failed program was:" >&5 |
| 31440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31442 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31443 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31444 | |
| 31445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31446 | ac_ext=c |
| 31447 | ac_cpp='$CPP $CPPFLAGS' |
| 31448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31451 | |
| 31452 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31453 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 31454 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31455 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 31456 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31457 | |
| 31458 | cat >>confdefs.h <<\_ACEOF |
| 31459 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 31460 | _ACEOF |
| 31461 | |
| 31462 | else |
| 31463 | |
| 31464 | cat >>confdefs.h <<\_ACEOF |
| 31465 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 31466 | _ACEOF |
| 31467 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31468 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31470 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 31471 | 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] | 31472 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 31473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31474 | else |
| 31475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31476 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31477 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31478 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31479 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31480 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31481 | |
| 31482 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31483 | /* confdefs.h. */ |
| 31484 | _ACEOF |
| 31485 | cat confdefs.h >>conftest.$ac_ext |
| 31486 | cat >>conftest.$ac_ext <<_ACEOF |
| 31487 | /* end confdefs.h. */ |
| 31488 | #include <hash_set> |
| 31489 | int |
| 31490 | main () |
| 31491 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31492 | hash_set<int> t; return 0; |
| 31493 | ; |
| 31494 | return 0; |
| 31495 | } |
| 31496 | _ACEOF |
| 31497 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31498 | if { (ac_try="$ac_compile" |
| 31499 | case "(($ac_try" in |
| 31500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31501 | *) ac_try_echo=$ac_try;; |
| 31502 | esac |
| 31503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31504 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31505 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31507 | rm -f conftest.er1 |
| 31508 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31510 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31511 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31512 | { (case "(($ac_try" in |
| 31513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31514 | *) ac_try_echo=$ac_try;; |
| 31515 | esac |
| 31516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31517 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31518 | ac_status=$? |
| 31519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31520 | (exit $ac_status); }; } && |
| 31521 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31522 | { (case "(($ac_try" in |
| 31523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31524 | *) ac_try_echo=$ac_try;; |
| 31525 | esac |
| 31526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31527 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31528 | ac_status=$? |
| 31529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31530 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31531 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31532 | else |
| 31533 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31536 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31537 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31538 | |
| 31539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31540 | ac_ext=c |
| 31541 | ac_cpp='$CPP $CPPFLAGS' |
| 31542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31545 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31546 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31547 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 31548 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31549 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 31550 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31551 | |
| 31552 | cat >>confdefs.h <<\_ACEOF |
| 31553 | #define HAVE_GLOBAL_HASH_SET 1 |
| 31554 | _ACEOF |
| 31555 | |
| 31556 | else |
| 31557 | |
| 31558 | cat >>confdefs.h <<\_ACEOF |
| 31559 | #define HAVE_GLOBAL_HASH_SET 0 |
| 31560 | _ACEOF |
| 31561 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31562 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31564 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 31565 | 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] | 31566 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 31567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31568 | else |
| 31569 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31570 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31571 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31572 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31573 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31574 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31575 | |
| 31576 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31577 | /* confdefs.h. */ |
| 31578 | _ACEOF |
| 31579 | cat confdefs.h >>conftest.$ac_ext |
| 31580 | cat >>conftest.$ac_ext <<_ACEOF |
| 31581 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31582 | #include <iterator> |
| 31583 | #ifdef HAVE_NAMESPACES |
| 31584 | using namespace std; |
| 31585 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31586 | int |
| 31587 | main () |
| 31588 | { |
| 31589 | iterator<int,int,int> t; return 0; |
| 31590 | ; |
| 31591 | return 0; |
| 31592 | } |
| 31593 | _ACEOF |
| 31594 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31595 | if { (ac_try="$ac_compile" |
| 31596 | case "(($ac_try" in |
| 31597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31598 | *) ac_try_echo=$ac_try;; |
| 31599 | esac |
| 31600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31601 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31602 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31604 | rm -f conftest.er1 |
| 31605 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31607 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31608 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31609 | { (case "(($ac_try" in |
| 31610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31611 | *) ac_try_echo=$ac_try;; |
| 31612 | esac |
| 31613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31614 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31615 | ac_status=$? |
| 31616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31617 | (exit $ac_status); }; } && |
| 31618 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31619 | { (case "(($ac_try" in |
| 31620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31621 | *) ac_try_echo=$ac_try;; |
| 31622 | esac |
| 31623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31624 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31625 | ac_status=$? |
| 31626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31627 | (exit $ac_status); }; }; then |
| 31628 | ac_cv_cxx_have_std_iterator=yes |
| 31629 | else |
| 31630 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31633 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31634 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31635 | |
| 31636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31637 | ac_ext=c |
| 31638 | ac_cpp='$CPP $CPPFLAGS' |
| 31639 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31640 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31641 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31642 | |
| 31643 | |
| 31644 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31645 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 31646 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31647 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 31648 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31649 | |
| 31650 | cat >>confdefs.h <<\_ACEOF |
| 31651 | #define HAVE_STD_ITERATOR 1 |
| 31652 | _ACEOF |
| 31653 | |
| 31654 | else |
| 31655 | |
| 31656 | cat >>confdefs.h <<\_ACEOF |
| 31657 | #define HAVE_STD_ITERATOR 0 |
| 31658 | _ACEOF |
| 31659 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31660 | fi |
| 31661 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31662 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 31663 | 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] | 31664 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 31665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31666 | else |
| 31667 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31668 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31669 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31670 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31671 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31672 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31673 | |
| 31674 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31675 | /* confdefs.h. */ |
| 31676 | _ACEOF |
| 31677 | cat confdefs.h >>conftest.$ac_ext |
| 31678 | cat >>conftest.$ac_ext <<_ACEOF |
| 31679 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31680 | #include <iterator> |
| 31681 | #ifdef HAVE_NAMESPACES |
| 31682 | using namespace std; |
| 31683 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31684 | int |
| 31685 | main () |
| 31686 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 31687 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31688 | ; |
| 31689 | return 0; |
| 31690 | } |
| 31691 | _ACEOF |
| 31692 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31693 | if { (ac_try="$ac_compile" |
| 31694 | case "(($ac_try" in |
| 31695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31696 | *) ac_try_echo=$ac_try;; |
| 31697 | esac |
| 31698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31699 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31700 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31702 | rm -f conftest.er1 |
| 31703 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31705 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31706 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31707 | { (case "(($ac_try" in |
| 31708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31709 | *) ac_try_echo=$ac_try;; |
| 31710 | esac |
| 31711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31712 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31713 | ac_status=$? |
| 31714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31715 | (exit $ac_status); }; } && |
| 31716 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31717 | { (case "(($ac_try" in |
| 31718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31719 | *) ac_try_echo=$ac_try;; |
| 31720 | esac |
| 31721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31722 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31723 | ac_status=$? |
| 31724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31725 | (exit $ac_status); }; }; then |
| 31726 | ac_cv_cxx_have_bi_iterator=yes |
| 31727 | else |
| 31728 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31731 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31732 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31733 | |
| 31734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31735 | ac_ext=c |
| 31736 | ac_cpp='$CPP $CPPFLAGS' |
| 31737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31740 | |
| 31741 | |
| 31742 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31743 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 31744 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31745 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 31746 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31747 | |
| 31748 | cat >>confdefs.h <<\_ACEOF |
| 31749 | #define HAVE_BI_ITERATOR 1 |
| 31750 | _ACEOF |
| 31751 | |
| 31752 | else |
| 31753 | |
| 31754 | cat >>confdefs.h <<\_ACEOF |
| 31755 | #define HAVE_BI_ITERATOR 0 |
| 31756 | _ACEOF |
| 31757 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31758 | fi |
| 31759 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31760 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 31761 | 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] | 31762 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 31763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31764 | else |
| 31765 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31766 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31767 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31768 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31769 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31770 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31771 | |
| 31772 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31773 | /* confdefs.h. */ |
| 31774 | _ACEOF |
| 31775 | cat confdefs.h >>conftest.$ac_ext |
| 31776 | cat >>conftest.$ac_ext <<_ACEOF |
| 31777 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31778 | #include <iterator> |
| 31779 | #ifdef HAVE_NAMESPACES |
| 31780 | using namespace std; |
| 31781 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31782 | int |
| 31783 | main () |
| 31784 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 31785 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31786 | ; |
| 31787 | return 0; |
| 31788 | } |
| 31789 | _ACEOF |
| 31790 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31791 | if { (ac_try="$ac_compile" |
| 31792 | case "(($ac_try" in |
| 31793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31794 | *) ac_try_echo=$ac_try;; |
| 31795 | esac |
| 31796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31797 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31798 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31800 | rm -f conftest.er1 |
| 31801 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31803 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31804 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31805 | { (case "(($ac_try" in |
| 31806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31807 | *) ac_try_echo=$ac_try;; |
| 31808 | esac |
| 31809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31810 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31811 | ac_status=$? |
| 31812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31813 | (exit $ac_status); }; } && |
| 31814 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31815 | { (case "(($ac_try" in |
| 31816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31817 | *) ac_try_echo=$ac_try;; |
| 31818 | esac |
| 31819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31820 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31821 | ac_status=$? |
| 31822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31823 | (exit $ac_status); }; }; then |
| 31824 | ac_cv_cxx_have_fwd_iterator=yes |
| 31825 | else |
| 31826 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31829 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31830 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31831 | |
| 31832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31833 | ac_ext=c |
| 31834 | ac_cpp='$CPP $CPPFLAGS' |
| 31835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31838 | |
| 31839 | |
| 31840 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31841 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 31842 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31843 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 31844 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31845 | |
| 31846 | cat >>confdefs.h <<\_ACEOF |
| 31847 | #define HAVE_FWD_ITERATOR 1 |
| 31848 | _ACEOF |
| 31849 | |
| 31850 | else |
| 31851 | |
| 31852 | cat >>confdefs.h <<\_ACEOF |
| 31853 | #define HAVE_FWD_ITERATOR 0 |
| 31854 | _ACEOF |
| 31855 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31856 | fi |
| 31857 | |
| 31858 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31859 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 31860 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31861 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 31862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31863 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31864 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31865 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31866 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31867 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31868 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31869 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31870 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31871 | /* confdefs.h. */ |
| 31872 | _ACEOF |
| 31873 | cat confdefs.h >>conftest.$ac_ext |
| 31874 | cat >>conftest.$ac_ext <<_ACEOF |
| 31875 | /* end confdefs.h. */ |
| 31876 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31877 | int |
| 31878 | main () |
| 31879 | { |
| 31880 | float f; isnan(f); |
| 31881 | ; |
| 31882 | return 0; |
| 31883 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31884 | _ACEOF |
| 31885 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31886 | if { (ac_try="$ac_compile" |
| 31887 | case "(($ac_try" in |
| 31888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31889 | *) ac_try_echo=$ac_try;; |
| 31890 | esac |
| 31891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31892 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31893 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31895 | rm -f conftest.er1 |
| 31896 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31898 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31899 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31900 | { (case "(($ac_try" in |
| 31901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31902 | *) ac_try_echo=$ac_try;; |
| 31903 | esac |
| 31904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31905 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31906 | ac_status=$? |
| 31907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31908 | (exit $ac_status); }; } && |
| 31909 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31910 | { (case "(($ac_try" in |
| 31911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31912 | *) ac_try_echo=$ac_try;; |
| 31913 | esac |
| 31914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31915 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31916 | ac_status=$? |
| 31917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31918 | (exit $ac_status); }; }; then |
| 31919 | ac_cv_func_isnan_in_math_h=yes |
| 31920 | else |
| 31921 | echo "$as_me: failed program was:" >&5 |
| 31922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31923 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31924 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31925 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31926 | |
| 31927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31928 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31929 | ac_cpp='$CPP $CPPFLAGS' |
| 31930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31933 | |
| 31934 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31935 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 31936 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31937 | |
| 31938 | |
| 31939 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31940 | |
| 31941 | cat >>confdefs.h <<\_ACEOF |
| 31942 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 31943 | _ACEOF |
| 31944 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31945 | fi |
| 31946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31947 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 31948 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31949 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 31950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31951 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31952 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31953 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31954 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31955 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31956 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31957 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31958 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31959 | /* confdefs.h. */ |
| 31960 | _ACEOF |
| 31961 | cat confdefs.h >>conftest.$ac_ext |
| 31962 | cat >>conftest.$ac_ext <<_ACEOF |
| 31963 | /* end confdefs.h. */ |
| 31964 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31965 | int |
| 31966 | main () |
| 31967 | { |
| 31968 | float f; isnan(f); |
| 31969 | ; |
| 31970 | return 0; |
| 31971 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31972 | _ACEOF |
| 31973 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31974 | if { (ac_try="$ac_compile" |
| 31975 | case "(($ac_try" in |
| 31976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31977 | *) ac_try_echo=$ac_try;; |
| 31978 | esac |
| 31979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31980 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31981 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31983 | rm -f conftest.er1 |
| 31984 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31986 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31987 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31988 | { (case "(($ac_try" in |
| 31989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31990 | *) ac_try_echo=$ac_try;; |
| 31991 | esac |
| 31992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31993 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31994 | ac_status=$? |
| 31995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31996 | (exit $ac_status); }; } && |
| 31997 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31998 | { (case "(($ac_try" in |
| 31999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32000 | *) ac_try_echo=$ac_try;; |
| 32001 | esac |
| 32002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32003 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32004 | ac_status=$? |
| 32005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32006 | (exit $ac_status); }; }; then |
| 32007 | ac_cv_func_isnan_in_cmath=yes |
| 32008 | else |
| 32009 | echo "$as_me: failed program was:" >&5 |
| 32010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32012 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32014 | |
| 32015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32016 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32017 | ac_cpp='$CPP $CPPFLAGS' |
| 32018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32021 | |
| 32022 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32023 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 32024 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32025 | |
| 32026 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32027 | |
| 32028 | cat >>confdefs.h <<\_ACEOF |
| 32029 | #define HAVE_ISNAN_IN_CMATH 1 |
| 32030 | _ACEOF |
| 32031 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32032 | fi |
| 32033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32034 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 32035 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32036 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 32037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32038 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32039 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32040 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32041 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32042 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32043 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32044 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32045 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32046 | /* confdefs.h. */ |
| 32047 | _ACEOF |
| 32048 | cat confdefs.h >>conftest.$ac_ext |
| 32049 | cat >>conftest.$ac_ext <<_ACEOF |
| 32050 | /* end confdefs.h. */ |
| 32051 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32052 | int |
| 32053 | main () |
| 32054 | { |
| 32055 | float f; std::isnan(f); |
| 32056 | ; |
| 32057 | return 0; |
| 32058 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32059 | _ACEOF |
| 32060 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32061 | if { (ac_try="$ac_compile" |
| 32062 | case "(($ac_try" in |
| 32063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32064 | *) ac_try_echo=$ac_try;; |
| 32065 | esac |
| 32066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32067 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32068 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32070 | rm -f conftest.er1 |
| 32071 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32073 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32074 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32075 | { (case "(($ac_try" in |
| 32076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32077 | *) ac_try_echo=$ac_try;; |
| 32078 | esac |
| 32079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32080 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32081 | ac_status=$? |
| 32082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32083 | (exit $ac_status); }; } && |
| 32084 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32085 | { (case "(($ac_try" in |
| 32086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32087 | *) ac_try_echo=$ac_try;; |
| 32088 | esac |
| 32089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32090 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32091 | ac_status=$? |
| 32092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32093 | (exit $ac_status); }; }; then |
| 32094 | ac_cv_func_std_isnan_in_cmath=yes |
| 32095 | else |
| 32096 | echo "$as_me: failed program was:" >&5 |
| 32097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32098 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32099 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32100 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32101 | |
| 32102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32103 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32104 | ac_cpp='$CPP $CPPFLAGS' |
| 32105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32108 | |
| 32109 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32110 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 32111 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32112 | |
| 32113 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32114 | |
| 32115 | cat >>confdefs.h <<\_ACEOF |
| 32116 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 32117 | _ACEOF |
| 32118 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32119 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32120 | |
| 32121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32122 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 32123 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32124 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 32125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32126 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32127 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32128 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32129 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32130 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32131 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32132 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32133 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32134 | /* confdefs.h. */ |
| 32135 | _ACEOF |
| 32136 | cat confdefs.h >>conftest.$ac_ext |
| 32137 | cat >>conftest.$ac_ext <<_ACEOF |
| 32138 | /* end confdefs.h. */ |
| 32139 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32140 | int |
| 32141 | main () |
| 32142 | { |
| 32143 | float f; isinf(f); |
| 32144 | ; |
| 32145 | return 0; |
| 32146 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32147 | _ACEOF |
| 32148 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32149 | if { (ac_try="$ac_compile" |
| 32150 | case "(($ac_try" in |
| 32151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32152 | *) ac_try_echo=$ac_try;; |
| 32153 | esac |
| 32154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32155 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32156 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32158 | rm -f conftest.er1 |
| 32159 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32161 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32162 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32163 | { (case "(($ac_try" in |
| 32164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32165 | *) ac_try_echo=$ac_try;; |
| 32166 | esac |
| 32167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32168 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32169 | ac_status=$? |
| 32170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32171 | (exit $ac_status); }; } && |
| 32172 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32173 | { (case "(($ac_try" in |
| 32174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32175 | *) ac_try_echo=$ac_try;; |
| 32176 | esac |
| 32177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32178 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32179 | ac_status=$? |
| 32180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32181 | (exit $ac_status); }; }; then |
| 32182 | ac_cv_func_isinf_in_math_h=yes |
| 32183 | else |
| 32184 | echo "$as_me: failed program was:" >&5 |
| 32185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32187 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32188 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32189 | |
| 32190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32191 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32192 | ac_cpp='$CPP $CPPFLAGS' |
| 32193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32196 | |
| 32197 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32198 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 32199 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32200 | |
| 32201 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32202 | |
| 32203 | cat >>confdefs.h <<\_ACEOF |
| 32204 | #define HAVE_ISINF_IN_MATH_H 1 |
| 32205 | _ACEOF |
| 32206 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32207 | fi |
| 32208 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32209 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 32210 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32211 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 32212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32213 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32214 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32215 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32216 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32217 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32218 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32219 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32220 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32221 | /* confdefs.h. */ |
| 32222 | _ACEOF |
| 32223 | cat confdefs.h >>conftest.$ac_ext |
| 32224 | cat >>conftest.$ac_ext <<_ACEOF |
| 32225 | /* end confdefs.h. */ |
| 32226 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32227 | int |
| 32228 | main () |
| 32229 | { |
| 32230 | float f; isinf(f); |
| 32231 | ; |
| 32232 | return 0; |
| 32233 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32234 | _ACEOF |
| 32235 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32236 | if { (ac_try="$ac_compile" |
| 32237 | case "(($ac_try" in |
| 32238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32239 | *) ac_try_echo=$ac_try;; |
| 32240 | esac |
| 32241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32242 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32243 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32245 | rm -f conftest.er1 |
| 32246 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32248 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32249 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32250 | { (case "(($ac_try" in |
| 32251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32252 | *) ac_try_echo=$ac_try;; |
| 32253 | esac |
| 32254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32255 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32256 | ac_status=$? |
| 32257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32258 | (exit $ac_status); }; } && |
| 32259 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32260 | { (case "(($ac_try" in |
| 32261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32262 | *) ac_try_echo=$ac_try;; |
| 32263 | esac |
| 32264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32265 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32266 | ac_status=$? |
| 32267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32268 | (exit $ac_status); }; }; then |
| 32269 | ac_cv_func_isinf_in_cmath=yes |
| 32270 | else |
| 32271 | echo "$as_me: failed program was:" >&5 |
| 32272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32274 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32275 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32276 | |
| 32277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32278 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32279 | ac_cpp='$CPP $CPPFLAGS' |
| 32280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32283 | |
| 32284 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32285 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 32286 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32287 | |
| 32288 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32289 | |
| 32290 | cat >>confdefs.h <<\_ACEOF |
| 32291 | #define HAVE_ISINF_IN_CMATH 1 |
| 32292 | _ACEOF |
| 32293 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32294 | fi |
| 32295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32296 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 32297 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32298 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 32299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32300 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32301 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32302 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32303 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32304 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32305 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32306 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32307 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32308 | /* confdefs.h. */ |
| 32309 | _ACEOF |
| 32310 | cat confdefs.h >>conftest.$ac_ext |
| 32311 | cat >>conftest.$ac_ext <<_ACEOF |
| 32312 | /* end confdefs.h. */ |
| 32313 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32314 | int |
| 32315 | main () |
| 32316 | { |
| 32317 | float f; std::isinf(f)} |
| 32318 | ; |
| 32319 | return 0; |
| 32320 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32321 | _ACEOF |
| 32322 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32323 | if { (ac_try="$ac_compile" |
| 32324 | case "(($ac_try" in |
| 32325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32326 | *) ac_try_echo=$ac_try;; |
| 32327 | esac |
| 32328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32329 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32330 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32332 | rm -f conftest.er1 |
| 32333 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32335 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32336 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32337 | { (case "(($ac_try" in |
| 32338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32339 | *) ac_try_echo=$ac_try;; |
| 32340 | esac |
| 32341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32342 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32343 | ac_status=$? |
| 32344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32345 | (exit $ac_status); }; } && |
| 32346 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32347 | { (case "(($ac_try" in |
| 32348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32349 | *) ac_try_echo=$ac_try;; |
| 32350 | esac |
| 32351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32352 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32353 | ac_status=$? |
| 32354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32355 | (exit $ac_status); }; }; then |
| 32356 | ac_cv_func_std_isinf_in_cmath=yes |
| 32357 | else |
| 32358 | echo "$as_me: failed program was:" >&5 |
| 32359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32360 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32361 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32362 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32363 | |
| 32364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32365 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32366 | ac_cpp='$CPP $CPPFLAGS' |
| 32367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32370 | |
| 32371 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32372 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 32373 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32374 | |
| 32375 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32376 | |
| 32377 | cat >>confdefs.h <<\_ACEOF |
| 32378 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 32379 | _ACEOF |
| 32380 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32381 | fi |
| 32382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32383 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 32384 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32385 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 32386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32387 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32388 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32389 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32393 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32394 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32395 | /* confdefs.h. */ |
| 32396 | _ACEOF |
| 32397 | cat confdefs.h >>conftest.$ac_ext |
| 32398 | cat >>conftest.$ac_ext <<_ACEOF |
| 32399 | /* end confdefs.h. */ |
| 32400 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32401 | int |
| 32402 | main () |
| 32403 | { |
| 32404 | float f; finite(f); |
| 32405 | ; |
| 32406 | return 0; |
| 32407 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32408 | _ACEOF |
| 32409 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32410 | if { (ac_try="$ac_compile" |
| 32411 | case "(($ac_try" in |
| 32412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32413 | *) ac_try_echo=$ac_try;; |
| 32414 | esac |
| 32415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32416 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32417 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32419 | rm -f conftest.er1 |
| 32420 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32422 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32423 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32424 | { (case "(($ac_try" in |
| 32425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32426 | *) ac_try_echo=$ac_try;; |
| 32427 | esac |
| 32428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32429 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32430 | ac_status=$? |
| 32431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32432 | (exit $ac_status); }; } && |
| 32433 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32434 | { (case "(($ac_try" in |
| 32435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32436 | *) ac_try_echo=$ac_try;; |
| 32437 | esac |
| 32438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32439 | (eval "$ac_try") 2>&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32440 | ac_status=$? |
| 32441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32442 | (exit $ac_status); }; }; then |
| 32443 | ac_cv_func_finite_in_ieeefp_h=yes |
| 32444 | else |
| 32445 | echo "$as_me: failed program was:" >&5 |
| 32446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32448 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32449 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32450 | |
| 32451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32452 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32453 | ac_cpp='$CPP $CPPFLAGS' |
| 32454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32457 | |
| 32458 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32459 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 32460 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32461 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32462 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32463 | |
| 32464 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32465 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32466 | _ACEOF |
| 32467 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32468 | fi |
| 32469 | |
| 32470 | |
| 32471 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32472 | |
| 32473 | |
| 32474 | for ac_header in stdlib.h unistd.h |
| 32475 | do |
| 32476 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32477 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32478 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32480 | 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] | 32481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32482 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32483 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32484 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32485 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32486 | else |
| 32487 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32488 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 32489 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32490 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32491 | /* confdefs.h. */ |
| 32492 | _ACEOF |
| 32493 | cat confdefs.h >>conftest.$ac_ext |
| 32494 | cat >>conftest.$ac_ext <<_ACEOF |
| 32495 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32496 | $ac_includes_default |
| 32497 | #include <$ac_header> |
| 32498 | _ACEOF |
| 32499 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32500 | if { (ac_try="$ac_compile" |
| 32501 | case "(($ac_try" in |
| 32502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32503 | *) ac_try_echo=$ac_try;; |
| 32504 | esac |
| 32505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32506 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32507 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32509 | rm -f conftest.er1 |
| 32510 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32512 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32514 | { (case "(($ac_try" in |
| 32515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32516 | *) ac_try_echo=$ac_try;; |
| 32517 | esac |
| 32518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32519 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32520 | ac_status=$? |
| 32521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32522 | (exit $ac_status); }; } && |
| 32523 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32524 | { (case "(($ac_try" in |
| 32525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32526 | *) ac_try_echo=$ac_try;; |
| 32527 | esac |
| 32528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32529 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32530 | ac_status=$? |
| 32531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32532 | (exit $ac_status); }; }; then |
| 32533 | ac_header_compiler=yes |
| 32534 | else |
| 32535 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32538 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32539 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32540 | |
| 32541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32542 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 32543 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32544 | |
| 32545 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32546 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 32547 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32548 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32549 | /* confdefs.h. */ |
| 32550 | _ACEOF |
| 32551 | cat confdefs.h >>conftest.$ac_ext |
| 32552 | cat >>conftest.$ac_ext <<_ACEOF |
| 32553 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32554 | #include <$ac_header> |
| 32555 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32556 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 32557 | case "(($ac_try" in |
| 32558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32559 | *) ac_try_echo=$ac_try;; |
| 32560 | esac |
| 32561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32562 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32563 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32564 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32565 | rm -f conftest.er1 |
| 32566 | cat conftest.err >&5 |
| 32567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32568 | (exit $ac_status); } >/dev/null; then |
| 32569 | if test -s conftest.err; then |
| 32570 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32572 | else |
| 32573 | ac_cpp_err= |
| 32574 | fi |
| 32575 | else |
| 32576 | ac_cpp_err=yes |
| 32577 | fi |
| 32578 | if test -z "$ac_cpp_err"; then |
| 32579 | ac_header_preproc=yes |
| 32580 | else |
| 32581 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32583 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32584 | ac_header_preproc=no |
| 32585 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32586 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32587 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32588 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 32589 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32590 | |
| 32591 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32592 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 32593 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32594 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 32595 | 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] | 32596 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 32597 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 32598 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32599 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32600 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32601 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 32602 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32603 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 32604 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 32605 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 32606 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 32607 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 32608 | 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] | 32609 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 32610 | 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] | 32611 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 32612 | 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] | 32613 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32614 | ## ----------------------------------- ## |
| 32615 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 32616 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32617 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32618 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32619 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32620 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32621 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32623 | 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] | 32624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32625 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32626 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32627 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32628 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32629 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32630 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32631 | |
| 32632 | fi |
| 32633 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 32634 | cat >>confdefs.h <<_ACEOF |
| 32635 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 32636 | _ACEOF |
| 32637 | |
| 32638 | fi |
| 32639 | |
| 32640 | done |
| 32641 | |
| 32642 | |
| 32643 | for ac_func in getpagesize |
| 32644 | do |
| 32645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32646 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32648 | 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] | 32649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32650 | else |
| 32651 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32652 | /* confdefs.h. */ |
| 32653 | _ACEOF |
| 32654 | cat confdefs.h >>conftest.$ac_ext |
| 32655 | cat >>conftest.$ac_ext <<_ACEOF |
| 32656 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32659 | #define $ac_func innocuous_$ac_func |
| 32660 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32661 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32662 | which can conflict with char $ac_func (); below. |
| 32663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32664 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32665 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32666 | #ifdef __STDC__ |
| 32667 | # include <limits.h> |
| 32668 | #else |
| 32669 | # include <assert.h> |
| 32670 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32671 | |
| 32672 | #undef $ac_func |
| 32673 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32674 | /* Override any GCC internal prototype to avoid an error. |
| 32675 | Use char because int might match the return type of a GCC |
| 32676 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32677 | #ifdef __cplusplus |
| 32678 | extern "C" |
| 32679 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32680 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32681 | /* The GNU C library defines this for functions which it implements |
| 32682 | to always fail with ENOSYS. Some functions are actually named |
| 32683 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32684 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32685 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32686 | #endif |
| 32687 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32688 | int |
| 32689 | main () |
| 32690 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32691 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32692 | ; |
| 32693 | return 0; |
| 32694 | } |
| 32695 | _ACEOF |
| 32696 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32697 | if { (ac_try="$ac_link" |
| 32698 | case "(($ac_try" in |
| 32699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32700 | *) ac_try_echo=$ac_try;; |
| 32701 | esac |
| 32702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32703 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32704 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32706 | rm -f conftest.er1 |
| 32707 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32709 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32711 | { (case "(($ac_try" in |
| 32712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32713 | *) ac_try_echo=$ac_try;; |
| 32714 | esac |
| 32715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32716 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32717 | ac_status=$? |
| 32718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32719 | (exit $ac_status); }; } && |
| 32720 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32721 | { (case "(($ac_try" in |
| 32722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32723 | *) ac_try_echo=$ac_try;; |
| 32724 | esac |
| 32725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32726 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32727 | ac_status=$? |
| 32728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32729 | (exit $ac_status); }; }; then |
| 32730 | eval "$as_ac_var=yes" |
| 32731 | else |
| 32732 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32734 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32735 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32736 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32737 | |
| 32738 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32739 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32740 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32741 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32743 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32744 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32745 | cat >>confdefs.h <<_ACEOF |
| 32746 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32747 | _ACEOF |
| 32748 | |
| 32749 | fi |
| 32750 | done |
| 32751 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32752 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 32753 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32754 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 32755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32756 | else |
| 32757 | if test "$cross_compiling" = yes; then |
| 32758 | ac_cv_func_mmap_fixed_mapped=no |
| 32759 | else |
| 32760 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32761 | /* confdefs.h. */ |
| 32762 | _ACEOF |
| 32763 | cat confdefs.h >>conftest.$ac_ext |
| 32764 | cat >>conftest.$ac_ext <<_ACEOF |
| 32765 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32766 | $ac_includes_default |
| 32767 | /* malloc might have been renamed as rpl_malloc. */ |
| 32768 | #undef malloc |
| 32769 | |
| 32770 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 32771 | Here is a matrix of mmap possibilities: |
| 32772 | mmap private not fixed |
| 32773 | mmap private fixed at somewhere currently unmapped |
| 32774 | mmap private fixed at somewhere already mapped |
| 32775 | mmap shared not fixed |
| 32776 | mmap shared fixed at somewhere currently unmapped |
| 32777 | mmap shared fixed at somewhere already mapped |
| 32778 | For private mappings, we should verify that changes cannot be read() |
| 32779 | back from the file, nor mmap's back from the file at a different |
| 32780 | address. (There have been systems where private was not correctly |
| 32781 | implemented like the infamous i386 svr4.0, and systems where the |
| 32782 | VM page cache was not coherent with the file system buffer cache |
| 32783 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 32784 | For shared mappings, we should conversely verify that changes get |
| 32785 | propagated back to all the places they're supposed to be. |
| 32786 | |
| 32787 | Grep wants private fixed already mapped. |
| 32788 | The main things grep needs to know about mmap are: |
| 32789 | * does it exist and is it safe to write into the mmap'd area |
| 32790 | * how to use it (BSD variants) */ |
| 32791 | |
| 32792 | #include <fcntl.h> |
| 32793 | #include <sys/mman.h> |
| 32794 | |
| 32795 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 32796 | char *malloc (); |
| 32797 | #endif |
| 32798 | |
| 32799 | /* This mess was copied from the GNU getpagesize.h. */ |
| 32800 | #if !HAVE_GETPAGESIZE |
| 32801 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 32802 | # if !HAVE_SYS_PARAM_H |
| 32803 | # define HAVE_SYS_PARAM_H 1 |
| 32804 | # endif |
| 32805 | |
| 32806 | # ifdef _SC_PAGESIZE |
| 32807 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 32808 | # else /* no _SC_PAGESIZE */ |
| 32809 | # if HAVE_SYS_PARAM_H |
| 32810 | # include <sys/param.h> |
| 32811 | # ifdef EXEC_PAGESIZE |
| 32812 | # define getpagesize() EXEC_PAGESIZE |
| 32813 | # else /* no EXEC_PAGESIZE */ |
| 32814 | # ifdef NBPG |
| 32815 | # define getpagesize() NBPG * CLSIZE |
| 32816 | # ifndef CLSIZE |
| 32817 | # define CLSIZE 1 |
| 32818 | # endif /* no CLSIZE */ |
| 32819 | # else /* no NBPG */ |
| 32820 | # ifdef NBPC |
| 32821 | # define getpagesize() NBPC |
| 32822 | # else /* no NBPC */ |
| 32823 | # ifdef PAGESIZE |
| 32824 | # define getpagesize() PAGESIZE |
| 32825 | # endif /* PAGESIZE */ |
| 32826 | # endif /* no NBPC */ |
| 32827 | # endif /* no NBPG */ |
| 32828 | # endif /* no EXEC_PAGESIZE */ |
| 32829 | # else /* no HAVE_SYS_PARAM_H */ |
| 32830 | # define getpagesize() 8192 /* punt totally */ |
| 32831 | # endif /* no HAVE_SYS_PARAM_H */ |
| 32832 | # endif /* no _SC_PAGESIZE */ |
| 32833 | |
| 32834 | #endif /* no HAVE_GETPAGESIZE */ |
| 32835 | |
| 32836 | int |
| 32837 | main () |
| 32838 | { |
| 32839 | char *data, *data2, *data3; |
| 32840 | int i, pagesize; |
| 32841 | int fd; |
| 32842 | |
| 32843 | pagesize = getpagesize (); |
| 32844 | |
| 32845 | /* First, make a file with some known garbage in it. */ |
| 32846 | data = (char *) malloc (pagesize); |
| 32847 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32848 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32849 | for (i = 0; i < pagesize; ++i) |
| 32850 | *(data + i) = rand (); |
| 32851 | umask (0); |
| 32852 | fd = creat ("conftest.mmap", 0600); |
| 32853 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32854 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32855 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32856 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32857 | close (fd); |
| 32858 | |
| 32859 | /* Next, try to mmap the file at a fixed address which already has |
| 32860 | something else allocated at it. If we can, also make sure that |
| 32861 | we see the same garbage. */ |
| 32862 | fd = open ("conftest.mmap", O_RDWR); |
| 32863 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32864 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32865 | data2 = (char *) malloc (2 * pagesize); |
| 32866 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32867 | return 1; |
| 32868 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32869 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32870 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32871 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32872 | for (i = 0; i < pagesize; ++i) |
| 32873 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32874 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32875 | |
| 32876 | /* Finally, make sure that changes to the mapped area do not |
| 32877 | percolate back to the file as seen by read(). (This is a bug on |
| 32878 | some variants of i386 svr4.0.) */ |
| 32879 | for (i = 0; i < pagesize; ++i) |
| 32880 | *(data2 + i) = *(data2 + i) + 1; |
| 32881 | data3 = (char *) malloc (pagesize); |
| 32882 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32883 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32884 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32885 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32886 | for (i = 0; i < pagesize; ++i) |
| 32887 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32888 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32889 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32890 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32891 | } |
| 32892 | _ACEOF |
| 32893 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32894 | if { (ac_try="$ac_link" |
| 32895 | case "(($ac_try" in |
| 32896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32897 | *) ac_try_echo=$ac_try;; |
| 32898 | esac |
| 32899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32900 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32901 | ac_status=$? |
| 32902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32904 | { (case "(($ac_try" in |
| 32905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32906 | *) ac_try_echo=$ac_try;; |
| 32907 | esac |
| 32908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32909 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32910 | ac_status=$? |
| 32911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32912 | (exit $ac_status); }; }; then |
| 32913 | ac_cv_func_mmap_fixed_mapped=yes |
| 32914 | else |
| 32915 | echo "$as_me: program exited with status $ac_status" >&5 |
| 32916 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32918 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32919 | ( exit $ac_status ) |
| 32920 | ac_cv_func_mmap_fixed_mapped=no |
| 32921 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32922 | 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] | 32923 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32924 | |
| 32925 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32926 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32927 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 32928 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32929 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 32930 | |
| 32931 | cat >>confdefs.h <<\_ACEOF |
| 32932 | #define HAVE_MMAP 1 |
| 32933 | _ACEOF |
| 32934 | |
| 32935 | fi |
| 32936 | rm -f conftest.mmap |
| 32937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32938 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 32939 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32940 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 32941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32942 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32943 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32944 | ac_cpp='$CPP $CPPFLAGS' |
| 32945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32948 | |
| 32949 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 32950 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32951 | else |
| 32952 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32953 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 32954 | /* confdefs.h. */ |
| 32955 | _ACEOF |
| 32956 | cat confdefs.h >>conftest.$ac_ext |
| 32957 | cat >>conftest.$ac_ext <<_ACEOF |
| 32958 | /* end confdefs.h. */ |
| 32959 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32960 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 32961 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32962 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 32963 | |
| 32964 | int |
| 32965 | main () |
| 32966 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32967 | |
| 32968 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 32969 | fd = creat ("foo",0777); |
| 32970 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 32971 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 32972 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 32973 | ; |
| 32974 | return 0; |
| 32975 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32976 | _ACEOF |
| 32977 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32978 | if { (ac_try="$ac_link" |
| 32979 | case "(($ac_try" in |
| 32980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32981 | *) ac_try_echo=$ac_try;; |
| 32982 | esac |
| 32983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32984 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32985 | ac_status=$? |
| 32986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32987 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32988 | { (case "(($ac_try" in |
| 32989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32990 | *) ac_try_echo=$ac_try;; |
| 32991 | esac |
| 32992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32993 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32994 | ac_status=$? |
| 32995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32996 | (exit $ac_status); }; }; then |
| 32997 | ac_cv_func_mmap_file=yes |
| 32998 | else |
| 32999 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33000 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33002 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33003 | ( exit $ac_status ) |
| 33004 | ac_cv_func_mmap_file=no |
| 33005 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33006 | 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] | 33007 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33008 | |
| 33009 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33010 | ac_ext=c |
| 33011 | ac_cpp='$CPP $CPPFLAGS' |
| 33012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33015 | |
| 33016 | |
| 33017 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33018 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 33019 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33020 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33021 | |
| 33022 | cat >>confdefs.h <<\_ACEOF |
| 33023 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33024 | _ACEOF |
| 33025 | |
| 33026 | MMAP_FILE=yes |
| 33027 | |
| 33028 | fi |
| 33029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33030 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 33031 | 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] | 33032 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 33033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33034 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33035 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33036 | ac_cv_need_dev_zero_for_mmap=yes |
| 33037 | else |
| 33038 | ac_cv_need_dev_zero_for_mmap=no |
| 33039 | fi |
| 33040 | |
| 33041 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33042 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 33043 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33044 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 33045 | |
| 33046 | cat >>confdefs.h <<\_ACEOF |
| 33047 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 33048 | _ACEOF |
| 33049 | |
| 33050 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33051 | { echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 33052 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33053 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 33054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33055 | else |
| 33056 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33057 | /* confdefs.h. */ |
| 33058 | _ACEOF |
| 33059 | cat confdefs.h >>conftest.$ac_ext |
| 33060 | cat >>conftest.$ac_ext <<_ACEOF |
| 33061 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33062 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 33063 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33064 | #define mprotect innocuous_mprotect |
| 33065 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33066 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33067 | which can conflict with char mprotect (); below. |
| 33068 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33069 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33070 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33071 | #ifdef __STDC__ |
| 33072 | # include <limits.h> |
| 33073 | #else |
| 33074 | # include <assert.h> |
| 33075 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33076 | |
| 33077 | #undef mprotect |
| 33078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33079 | /* Override any GCC internal prototype to avoid an error. |
| 33080 | Use char because int might match the return type of a GCC |
| 33081 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33082 | #ifdef __cplusplus |
| 33083 | extern "C" |
| 33084 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33085 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33086 | /* The GNU C library defines this for functions which it implements |
| 33087 | to always fail with ENOSYS. Some functions are actually named |
| 33088 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33089 | #if defined __stub_mprotect || defined __stub___mprotect |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33090 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33091 | #endif |
| 33092 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33093 | int |
| 33094 | main () |
| 33095 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33096 | return mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33097 | ; |
| 33098 | return 0; |
| 33099 | } |
| 33100 | _ACEOF |
| 33101 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33102 | if { (ac_try="$ac_link" |
| 33103 | case "(($ac_try" in |
| 33104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33105 | *) ac_try_echo=$ac_try;; |
| 33106 | esac |
| 33107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33108 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33109 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33111 | rm -f conftest.er1 |
| 33112 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33114 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33116 | { (case "(($ac_try" in |
| 33117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33118 | *) ac_try_echo=$ac_try;; |
| 33119 | esac |
| 33120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33121 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33122 | ac_status=$? |
| 33123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33124 | (exit $ac_status); }; } && |
| 33125 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33126 | { (case "(($ac_try" in |
| 33127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33128 | *) ac_try_echo=$ac_try;; |
| 33129 | esac |
| 33130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33131 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33132 | ac_status=$? |
| 33133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33134 | (exit $ac_status); }; }; then |
| 33135 | ac_cv_func_mprotect=yes |
| 33136 | else |
| 33137 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33140 | ac_cv_func_mprotect=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33141 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33142 | |
| 33143 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33144 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33145 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33146 | { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 33147 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33148 | if test $ac_cv_func_mprotect = yes; then |
| 33149 | : |
| 33150 | else |
| 33151 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 33152 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 33153 | { (exit 1); exit 1; }; } |
| 33154 | fi |
| 33155 | |
| 33156 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33157 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33158 | then |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33159 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 33160 | 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] | 33161 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33162 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33163 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33164 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 33165 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33166 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33167 | |
| 33168 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33169 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 33170 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33171 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 33172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33173 | else |
| 33174 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33175 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33176 | cp /dev/null conftest.c |
Chris Lattner | 74878f4 | 2006-02-27 05:39:00 +0000 | [diff] [blame] | 33177 | "$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] | 33178 | if test $? -eq 0 ; then |
| 33179 | llvm_cv_llvmgcc_sanity="yes" |
| 33180 | fi |
| 33181 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33182 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33184 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 33185 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33186 | |
| 33187 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33188 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33189 | LLVMCC1=$llvmcc1path |
| 33190 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33191 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33192 | LLVMCC1PLUS=$llvmcc1pluspath |
| 33193 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33194 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 33195 | LLVMGCCDIR=$llvmgccdir |
| 33196 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 33197 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 33198 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 33199 | LLVMGCC_VERSION=$llvmgccversion |
| 33200 | |
| 33201 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 33202 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33203 | fi |
| 33204 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33205 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 33206 | |
| 33207 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33208 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33209 | # information into substitutions that will end up in Makefile.config.in |
| 33210 | # that these configured values can be used by the makefiles |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 33211 | if test "${prefix}" == "NONE" ; then |
| 33212 | prefix="/usr/local" |
| 33213 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33214 | eval LLVM_PREFIX="${prefix}"; |
| 33215 | eval LLVM_BINDIR="${prefix}/bin"; |
| 33216 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33217 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 33218 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 33219 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33220 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 33221 | eval LLVM_INFODIR="${prefix}/info"; |
| 33222 | eval LLVM_MANDIR="${prefix}/man"; |
| 33223 | LLVM_CONFIGTIME=`date` |
| 33224 | |
| 33225 | |
| 33226 | |
| 33227 | |
| 33228 | |
| 33229 | |
| 33230 | |
| 33231 | |
| 33232 | |
| 33233 | |
| 33234 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33235 | # Place the various directores into the config.h file as #defines so that we |
| 33236 | # can know about the installation paths within LLVM. |
| 33237 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33238 | cat >>confdefs.h <<_ACEOF |
| 33239 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 33240 | _ACEOF |
| 33241 | |
| 33242 | |
| 33243 | cat >>confdefs.h <<_ACEOF |
| 33244 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 33245 | _ACEOF |
| 33246 | |
| 33247 | |
| 33248 | cat >>confdefs.h <<_ACEOF |
| 33249 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 33250 | _ACEOF |
| 33251 | |
| 33252 | |
| 33253 | cat >>confdefs.h <<_ACEOF |
| 33254 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 33255 | _ACEOF |
| 33256 | |
| 33257 | |
| 33258 | cat >>confdefs.h <<_ACEOF |
| 33259 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 33260 | _ACEOF |
| 33261 | |
| 33262 | |
| 33263 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 33264 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33265 | _ACEOF |
| 33266 | |
| 33267 | |
| 33268 | cat >>confdefs.h <<_ACEOF |
| 33269 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 33270 | _ACEOF |
| 33271 | |
| 33272 | |
| 33273 | cat >>confdefs.h <<_ACEOF |
| 33274 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 33275 | _ACEOF |
| 33276 | |
| 33277 | |
| 33278 | cat >>confdefs.h <<_ACEOF |
| 33279 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 33280 | _ACEOF |
| 33281 | |
| 33282 | |
| 33283 | cat >>confdefs.h <<_ACEOF |
| 33284 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 33285 | _ACEOF |
| 33286 | |
| 33287 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33289 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33291 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33293 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33295 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33296 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33297 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33298 | |
| 33299 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33300 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33301 | |
| 33302 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 33303 | ac_config_files="$ac_config_files llvm.spec" |
| 33304 | |
| 33305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33306 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33307 | |
| 33308 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33309 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 33310 | |
| 33311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33312 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 33313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33314 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33315 | |
| 33316 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33317 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33318 | |
| 33319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33320 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33321 | |
| 33322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33323 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33324 | |
| 33325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33326 | ac_config_commands="$ac_config_commands runtime/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33327 | |
| 33328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33329 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33330 | |
| 33331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33332 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33333 | |
| 33334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33335 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33336 | |
| 33337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33338 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33339 | |
| 33340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33341 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33342 | |
| 33343 | |
| 33344 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33345 | cat >confcache <<\_ACEOF |
| 33346 | # This file is a shell script that caches the results of configure |
| 33347 | # tests run on this system so they can be shared between configure |
| 33348 | # scripts and configure runs, see configure's option --config-cache. |
| 33349 | # It is not useful on other systems. If it contains results you don't |
| 33350 | # want to keep, you may remove or edit it. |
| 33351 | # |
| 33352 | # config.status only pays attention to the cache file if you give it |
| 33353 | # the --recheck option to rerun configure. |
| 33354 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33355 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33356 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 33357 | # following values. |
| 33358 | |
| 33359 | _ACEOF |
| 33360 | |
| 33361 | # The following way of writing the cache mishandles newlines in values, |
| 33362 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33363 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33364 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 33365 | # 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] | 33366 | ( |
| 33367 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 33368 | eval ac_val=\$$ac_var |
| 33369 | case $ac_val in #( |
| 33370 | *${as_nl}*) |
| 33371 | case $ac_var in #( |
| 33372 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 33373 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 33374 | esac |
| 33375 | case $ac_var in #( |
| 33376 | _ | IFS | as_nl) ;; #( |
| 33377 | *) $as_unset $ac_var ;; |
| 33378 | esac ;; |
| 33379 | esac |
| 33380 | done |
| 33381 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33382 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33383 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 33384 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33385 | # `set' does not quote correctly, so add quotes (double-quote |
| 33386 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 33387 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33388 | "s/'/'\\\\''/g; |
| 33389 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33390 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33391 | *) |
| 33392 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33393 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33394 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33395 | esac | |
| 33396 | sort |
| 33397 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33398 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33399 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33400 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33401 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33402 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 33403 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33404 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 33405 | :end' >>confcache |
| 33406 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 33407 | if test -w "$cache_file"; then |
| 33408 | test "x$cache_file" != "x/dev/null" && |
| 33409 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 33410 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33411 | cat confcache >$cache_file |
| 33412 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33413 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 33414 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33415 | fi |
| 33416 | fi |
| 33417 | rm -f confcache |
| 33418 | |
| 33419 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 33420 | # Let make expand exec_prefix. |
| 33421 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 33422 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33423 | DEFS=-DHAVE_CONFIG_H |
| 33424 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33425 | ac_libobjs= |
| 33426 | ac_ltlibobjs= |
| 33427 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 33428 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33429 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 33430 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 33431 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 33432 | # will be set to the directory where LIBOBJS objects are built. |
| 33433 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 33434 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33435 | done |
| 33436 | LIBOBJS=$ac_libobjs |
| 33437 | |
| 33438 | LTLIBOBJS=$ac_ltlibobjs |
| 33439 | |
| 33440 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33441 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 33442 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33443 | Usually this means the macro was only invoked conditionally." >&5 |
| 33444 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33445 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33446 | { (exit 1); exit 1; }; } |
| 33447 | fi |
| 33448 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 33449 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33450 | Usually this means the macro was only invoked conditionally." >&5 |
| 33451 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33452 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33453 | { (exit 1); exit 1; }; } |
| 33454 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33455 | |
| 33456 | : ${CONFIG_STATUS=./config.status} |
| 33457 | ac_clean_files_save=$ac_clean_files |
| 33458 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 33459 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 33460 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 33461 | cat >$CONFIG_STATUS <<_ACEOF |
| 33462 | #! $SHELL |
| 33463 | # Generated by $as_me. |
| 33464 | # Run this file to recreate the current configuration. |
| 33465 | # Compiler output produced by configure, useful for debugging |
| 33466 | # configure, is in config.log if it exists. |
| 33467 | |
| 33468 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33469 | ac_cs_recheck=false |
| 33470 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33471 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 33472 | _ACEOF |
| 33473 | |
| 33474 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33475 | ## --------------------- ## |
| 33476 | ## M4sh Initialization. ## |
| 33477 | ## --------------------- ## |
| 33478 | |
| 33479 | # Be Bourne compatible |
| 33480 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 33481 | emulate sh |
| 33482 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33483 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 33484 | # is contrary to our usage. Disable this feature. |
| 33485 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33486 | setopt NO_GLOB_SUBST |
| 33487 | else |
| 33488 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33489 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33490 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33491 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33492 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33493 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33494 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33495 | # Avoid depending upon Character Ranges. |
| 33496 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33497 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 33498 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 33499 | as_cr_digits='0123456789' |
| 33500 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 33501 | |
| 33502 | # The user is always right. |
| 33503 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33504 | echo "#! /bin/sh" >conf$$.sh |
| 33505 | echo "exit 0" >>conf$$.sh |
| 33506 | chmod +x conf$$.sh |
| 33507 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33508 | PATH_SEPARATOR=';' |
| 33509 | else |
| 33510 | PATH_SEPARATOR=: |
| 33511 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33512 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33513 | fi |
| 33514 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33515 | # Support unset when possible. |
| 33516 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 33517 | as_unset=unset |
| 33518 | else |
| 33519 | as_unset=false |
| 33520 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33521 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33522 | |
| 33523 | # IFS |
| 33524 | # We need space, tab and new line, in precisely that order. Quoting is |
| 33525 | # there to prevent editors from complaining about space-tab. |
| 33526 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 33527 | # splitting by setting IFS to empty value.) |
| 33528 | as_nl=' |
| 33529 | ' |
| 33530 | IFS=" "" $as_nl" |
| 33531 | |
| 33532 | # Find who we are. Look in the path if we contain no directory separator. |
| 33533 | case $0 in |
| 33534 | *[\\/]* ) as_myself=$0 ;; |
| 33535 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33536 | for as_dir in $PATH |
| 33537 | do |
| 33538 | IFS=$as_save_IFS |
| 33539 | test -z "$as_dir" && as_dir=. |
| 33540 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 33541 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33542 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33544 | ;; |
| 33545 | esac |
| 33546 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 33547 | # in which case we are not to be found in the path. |
| 33548 | if test "x$as_myself" = x; then |
| 33549 | as_myself=$0 |
| 33550 | fi |
| 33551 | if test ! -f "$as_myself"; then |
| 33552 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 33553 | { (exit 1); exit 1; } |
| 33554 | fi |
| 33555 | |
| 33556 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33557 | for as_var in ENV MAIL MAILPATH |
| 33558 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33559 | done |
| 33560 | PS1='$ ' |
| 33561 | PS2='> ' |
| 33562 | PS4='+ ' |
| 33563 | |
| 33564 | # NLS nuisances. |
| 33565 | for as_var in \ |
| 33566 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 33567 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 33568 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33569 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33570 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 33571 | eval $as_var=C; export $as_var |
| 33572 | else |
| 33573 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33574 | fi |
| 33575 | done |
| 33576 | |
| 33577 | # Required to use basename. |
| 33578 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33579 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 33580 | as_expr=expr |
| 33581 | else |
| 33582 | as_expr=false |
| 33583 | fi |
| 33584 | |
| 33585 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 33586 | as_basename=basename |
| 33587 | else |
| 33588 | as_basename=false |
| 33589 | fi |
| 33590 | |
| 33591 | |
| 33592 | # Name of the executable. |
| 33593 | as_me=`$as_basename -- "$0" || |
| 33594 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 33595 | X"$0" : 'X\(//\)$' \| \ |
| 33596 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 33597 | echo X/"$0" | |
| 33598 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 33599 | s//\1/ |
| 33600 | q |
| 33601 | } |
| 33602 | /^X\/\(\/\/\)$/{ |
| 33603 | s//\1/ |
| 33604 | q |
| 33605 | } |
| 33606 | /^X\/\(\/\).*/{ |
| 33607 | s//\1/ |
| 33608 | q |
| 33609 | } |
| 33610 | s/.*/./; q'` |
| 33611 | |
| 33612 | # CDPATH. |
| 33613 | $as_unset CDPATH |
| 33614 | |
| 33615 | |
| 33616 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33617 | as_lineno_1=$LINENO |
| 33618 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33619 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33620 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33621 | |
| 33622 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 33623 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33624 | # line-number line after each line using $LINENO; the second 'sed' |
| 33625 | # does the real work. The second script uses 'N' to pair each |
| 33626 | # line-number line with the line containing $LINENO, and appends |
| 33627 | # trailing '-' during substitution so that $LINENO is not a special |
| 33628 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33629 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33630 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 33631 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 33632 | sed -n ' |
| 33633 | p |
| 33634 | /[$]LINENO/= |
| 33635 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33636 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33637 | s/[$]LINENO.*/&-/ |
| 33638 | t lineno |
| 33639 | b |
| 33640 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33641 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33642 | :loop |
| 33643 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33644 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33645 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33646 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33647 | chmod +x "$as_me.lineno" || |
| 33648 | { 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] | 33649 | { (exit 1); exit 1; }; } |
| 33650 | |
| 33651 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 33652 | # (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] | 33653 | # original and so on. Autoconf is especially sensitive to this). |
| 33654 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33655 | # Exit status is that of the last command. |
| 33656 | exit |
| 33657 | } |
| 33658 | |
| 33659 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33660 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 33661 | as_dirname=dirname |
| 33662 | else |
| 33663 | as_dirname=false |
| 33664 | fi |
| 33665 | |
| 33666 | ECHO_C= ECHO_N= ECHO_T= |
| 33667 | case `echo -n x` in |
| 33668 | -n*) |
| 33669 | case `echo 'x\c'` in |
| 33670 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 33671 | *) ECHO_C='\c';; |
| 33672 | esac;; |
| 33673 | *) |
| 33674 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33675 | esac |
| 33676 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33677 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33678 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33679 | as_expr=expr |
| 33680 | else |
| 33681 | as_expr=false |
| 33682 | fi |
| 33683 | |
| 33684 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33685 | if test -d conf$$.dir; then |
| 33686 | rm -f conf$$.dir/conf$$.file |
| 33687 | else |
| 33688 | rm -f conf$$.dir |
| 33689 | mkdir conf$$.dir |
| 33690 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33691 | echo >conf$$.file |
| 33692 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33693 | as_ln_s='ln -s' |
| 33694 | # ... but there are two gotchas: |
| 33695 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 33696 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 33697 | # In both cases, we have to default to `cp -p'. |
| 33698 | 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] | 33699 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33700 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 33701 | as_ln_s=ln |
| 33702 | else |
| 33703 | as_ln_s='cp -p' |
| 33704 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33705 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 33706 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33707 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33708 | if mkdir -p . 2>/dev/null; then |
| 33709 | as_mkdir_p=: |
| 33710 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33711 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33712 | as_mkdir_p=false |
| 33713 | fi |
| 33714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33715 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 33716 | # systems may use methods other than mode bits to determine executability. |
| 33717 | cat >conf$$.file <<_ASEOF |
| 33718 | #! /bin/sh |
| 33719 | exit 0 |
| 33720 | _ASEOF |
| 33721 | chmod +x conf$$.file |
| 33722 | if test -x conf$$.file >/dev/null 2>&1; then |
| 33723 | as_executable_p="test -x" |
| 33724 | else |
| 33725 | as_executable_p=: |
| 33726 | fi |
| 33727 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33728 | |
| 33729 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33730 | 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] | 33731 | |
| 33732 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33733 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33734 | |
| 33735 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33736 | exec 6>&1 |
| 33737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33738 | # 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] | 33739 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33740 | # values after options handling. |
| 33741 | ac_log=" |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 33742 | This file was extended by llvm $as_me 1.9cvs, which was |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33743 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33744 | |
| 33745 | CONFIG_FILES = $CONFIG_FILES |
| 33746 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 33747 | CONFIG_LINKS = $CONFIG_LINKS |
| 33748 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 33749 | $ $0 $@ |
| 33750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33751 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 33752 | " |
| 33753 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33754 | _ACEOF |
| 33755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33756 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33757 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33758 | config_files="$ac_config_files" |
| 33759 | config_headers="$ac_config_headers" |
| 33760 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33762 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33763 | |
| 33764 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33765 | ac_cs_usage="\ |
| 33766 | \`$as_me' instantiates files from templates according to the |
| 33767 | current configuration. |
| 33768 | |
| 33769 | Usage: $0 [OPTIONS] [FILE]... |
| 33770 | |
| 33771 | -h, --help print this help, then exit |
| 33772 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33773 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33774 | -d, --debug don't remove temporary files |
| 33775 | --recheck update $as_me by reconfiguring in the same conditions |
| 33776 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33777 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33778 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33779 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33780 | |
| 33781 | Configuration files: |
| 33782 | $config_files |
| 33783 | |
| 33784 | Configuration headers: |
| 33785 | $config_headers |
| 33786 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33787 | Configuration commands: |
| 33788 | $config_commands |
| 33789 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33790 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33792 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33793 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33794 | ac_cs_version="\\ |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 33795 | llvm config.status 1.9cvs |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33796 | configured by $0, generated by GNU Autoconf 2.60, |
| 33797 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33799 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33800 | This config.status script is free software; the Free Software Foundation |
| 33801 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33802 | |
| 33803 | ac_pwd='$ac_pwd' |
| 33804 | srcdir='$srcdir' |
| 33805 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33806 | _ACEOF |
| 33807 | |
| 33808 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 33809 | # If no file are specified by the user, then we need to provide default |
| 33810 | # value. By we need to know if files were specified by the user. |
| 33811 | ac_need_defaults=: |
| 33812 | while test $# != 0 |
| 33813 | do |
| 33814 | case $1 in |
| 33815 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33816 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 33817 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33818 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33819 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33820 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33821 | ac_option=$1 |
| 33822 | ac_optarg=$2 |
| 33823 | ac_shift=shift |
| 33824 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33825 | esac |
| 33826 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33827 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33828 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33829 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 33830 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33831 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 33832 | echo "$ac_cs_version"; exit ;; |
| 33833 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33834 | debug=: ;; |
| 33835 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33836 | $ac_shift |
| 33837 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33838 | ac_need_defaults=false;; |
| 33839 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33840 | $ac_shift |
| 33841 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33842 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33843 | --he | --h) |
| 33844 | # Conflict between --help and --header |
| 33845 | { echo "$as_me: error: ambiguous option: $1 |
| 33846 | Try \`$0 --help' for more information." >&2 |
| 33847 | { (exit 1); exit 1; }; };; |
| 33848 | --help | --hel | -h ) |
| 33849 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33850 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 33851 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 33852 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33853 | |
| 33854 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33855 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 33856 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33857 | { (exit 1); exit 1; }; } ;; |
| 33858 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33859 | *) ac_config_targets="$ac_config_targets $1" |
| 33860 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33861 | |
| 33862 | esac |
| 33863 | shift |
| 33864 | done |
| 33865 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33866 | ac_configure_extra_args= |
| 33867 | |
| 33868 | if $ac_cs_silent; then |
| 33869 | exec 6>/dev/null |
| 33870 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 33871 | fi |
| 33872 | |
| 33873 | _ACEOF |
| 33874 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33875 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33876 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 33877 | CONFIG_SHELL=$SHELL |
| 33878 | export CONFIG_SHELL |
| 33879 | 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] | 33880 | fi |
| 33881 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33882 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33883 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 33884 | exec 5>>config.log |
| 33885 | { |
| 33886 | echo |
| 33887 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 33888 | ## Running $as_me. ## |
| 33889 | _ASBOX |
| 33890 | echo "$ac_log" |
| 33891 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33893 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33894 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33895 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33896 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33897 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 33898 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33899 | |
| 33900 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33901 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33902 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33903 | |
| 33904 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33905 | for ac_config_target in $ac_config_targets |
| 33906 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33907 | case $ac_config_target in |
| 33908 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 33909 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
| 33910 | "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 33911 | "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
| 33912 | "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
| 33913 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 33914 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33915 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 33916 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 33917 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 33918 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 33919 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 33920 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 33921 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
| 33922 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
| 33923 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 33924 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 33925 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 33926 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 33927 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
| 33928 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33929 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 33930 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 33931 | { (exit 1); exit 1; }; };; |
| 33932 | esac |
| 33933 | done |
| 33934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33935 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33936 | # If the user did not use the arguments to specify the items to instantiate, |
| 33937 | # then the envvar interface is used. Set only those that are not. |
| 33938 | # We use the long form for the default assignment because of an extremely |
| 33939 | # bizarre bug on SunOS 4.1.3. |
| 33940 | if $ac_need_defaults; then |
| 33941 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 33942 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33943 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33944 | fi |
| 33945 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33946 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33947 | # 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] | 33948 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33949 | # Hook for its removal unless debugging. |
| 33950 | # Note that there is a small window in which the directory will not be cleaned: |
| 33951 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33952 | $debug || |
| 33953 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33954 | tmp= |
| 33955 | trap 'exit_status=$? |
| 33956 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 33957 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33958 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 33959 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33960 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33961 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33962 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33963 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33964 | test -n "$tmp" && test -d "$tmp" |
| 33965 | } || |
| 33966 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33967 | tmp=./conf$$-$RANDOM |
| 33968 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33969 | } || |
| 33970 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33971 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33972 | { (exit 1); exit 1; } |
| 33973 | } |
| 33974 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33975 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33976 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33977 | # |
| 33978 | |
| 33979 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 33980 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33981 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33982 | |
| 33983 | _ACEOF |
| 33984 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33985 | |
| 33986 | |
| 33987 | ac_delim='%!_!# ' |
| 33988 | for ac_last_try in false false false false false :; do |
| 33989 | cat >conf$$subs.sed <<_ACEOF |
| 33990 | SHELL!$SHELL$ac_delim |
| 33991 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 33992 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 33993 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 33994 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 33995 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 33996 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 33997 | exec_prefix!$exec_prefix$ac_delim |
| 33998 | prefix!$prefix$ac_delim |
| 33999 | program_transform_name!$program_transform_name$ac_delim |
| 34000 | bindir!$bindir$ac_delim |
| 34001 | sbindir!$sbindir$ac_delim |
| 34002 | libexecdir!$libexecdir$ac_delim |
| 34003 | datarootdir!$datarootdir$ac_delim |
| 34004 | datadir!$datadir$ac_delim |
| 34005 | sysconfdir!$sysconfdir$ac_delim |
| 34006 | sharedstatedir!$sharedstatedir$ac_delim |
| 34007 | localstatedir!$localstatedir$ac_delim |
| 34008 | includedir!$includedir$ac_delim |
| 34009 | oldincludedir!$oldincludedir$ac_delim |
| 34010 | docdir!$docdir$ac_delim |
| 34011 | infodir!$infodir$ac_delim |
| 34012 | htmldir!$htmldir$ac_delim |
| 34013 | dvidir!$dvidir$ac_delim |
| 34014 | pdfdir!$pdfdir$ac_delim |
| 34015 | psdir!$psdir$ac_delim |
| 34016 | libdir!$libdir$ac_delim |
| 34017 | localedir!$localedir$ac_delim |
| 34018 | mandir!$mandir$ac_delim |
| 34019 | DEFS!$DEFS$ac_delim |
| 34020 | ECHO_C!$ECHO_C$ac_delim |
| 34021 | ECHO_N!$ECHO_N$ac_delim |
| 34022 | ECHO_T!$ECHO_T$ac_delim |
| 34023 | LIBS!$LIBS$ac_delim |
| 34024 | build_alias!$build_alias$ac_delim |
| 34025 | host_alias!$host_alias$ac_delim |
| 34026 | target_alias!$target_alias$ac_delim |
| 34027 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 34028 | subdirs!$subdirs$ac_delim |
| 34029 | build!$build$ac_delim |
| 34030 | build_cpu!$build_cpu$ac_delim |
| 34031 | build_vendor!$build_vendor$ac_delim |
| 34032 | build_os!$build_os$ac_delim |
| 34033 | host!$host$ac_delim |
| 34034 | host_cpu!$host_cpu$ac_delim |
| 34035 | host_vendor!$host_vendor$ac_delim |
| 34036 | host_os!$host_os$ac_delim |
| 34037 | target!$target$ac_delim |
| 34038 | target_cpu!$target_cpu$ac_delim |
| 34039 | target_vendor!$target_vendor$ac_delim |
| 34040 | target_os!$target_os$ac_delim |
| 34041 | OS!$OS$ac_delim |
| 34042 | LINKALL!$LINKALL$ac_delim |
| 34043 | NOLINKALL!$NOLINKALL$ac_delim |
| 34044 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 34045 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 34046 | ARCH!$ARCH$ac_delim |
| 34047 | ENDIAN!$ENDIAN$ac_delim |
| 34048 | CC!$CC$ac_delim |
| 34049 | CFLAGS!$CFLAGS$ac_delim |
| 34050 | LDFLAGS!$LDFLAGS$ac_delim |
| 34051 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 34052 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 34053 | EXEEXT!$EXEEXT$ac_delim |
| 34054 | OBJEXT!$OBJEXT$ac_delim |
| 34055 | CPP!$CPP$ac_delim |
| 34056 | GREP!$GREP$ac_delim |
| 34057 | EGREP!$EGREP$ac_delim |
| 34058 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 34059 | BUILD_CC!$BUILD_CC$ac_delim |
| 34060 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 34061 | CVSBUILD!$CVSBUILD$ac_delim |
| 34062 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 34063 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 34064 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 34065 | JIT!$JIT$ac_delim |
| 34066 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 34067 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 34068 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 34069 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 34070 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 34071 | CXX!$CXX$ac_delim |
| 34072 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 34073 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 34074 | LEX!$LEX$ac_delim |
| 34075 | LEXLIB!$LEXLIB$ac_delim |
| 34076 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 34077 | FLEX!$FLEX$ac_delim |
| 34078 | YACC!$YACC$ac_delim |
| 34079 | YFLAGS!$YFLAGS$ac_delim |
| 34080 | BISON!$BISON$ac_delim |
| 34081 | NM!$NM$ac_delim |
| 34082 | ifGNUmake!$ifGNUmake$ac_delim |
| 34083 | LN_S!$LN_S$ac_delim |
| 34084 | CMP!$CMP$ac_delim |
| 34085 | CP!$CP$ac_delim |
| 34086 | DATE!$DATE$ac_delim |
| 34087 | _ACEOF |
| 34088 | |
| 34089 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 34090 | break |
| 34091 | elif $ac_last_try; then |
| 34092 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34093 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34094 | { (exit 1); exit 1; }; } |
| 34095 | else |
| 34096 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34097 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34098 | done |
| 34099 | |
| 34100 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34101 | if test -n "$ac_eof"; then |
| 34102 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34103 | ac_eof=`expr $ac_eof + 1` |
| 34104 | fi |
| 34105 | |
| 34106 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34107 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 34108 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 34109 | _ACEOF |
| 34110 | sed ' |
| 34111 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34112 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34113 | :n |
| 34114 | t n |
| 34115 | s/'"$ac_delim"'$/,g/; t |
| 34116 | s/$/\\/; p |
| 34117 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34118 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34119 | rm -f conf$$subs.sed |
| 34120 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34121 | CEOF$ac_eof |
| 34122 | _ACEOF |
| 34123 | |
| 34124 | |
| 34125 | ac_delim='%!_!# ' |
| 34126 | for ac_last_try in false false false false false :; do |
| 34127 | cat >conf$$subs.sed <<_ACEOF |
| 34128 | FIND!$FIND$ac_delim |
| 34129 | MKDIR!$MKDIR$ac_delim |
| 34130 | MV!$MV$ac_delim |
| 34131 | RANLIB!$RANLIB$ac_delim |
| 34132 | RM!$RM$ac_delim |
| 34133 | SED!$SED$ac_delim |
| 34134 | TAR!$TAR$ac_delim |
| 34135 | BINPWD!$BINPWD$ac_delim |
| 34136 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 34137 | DOT!$DOT$ac_delim |
| 34138 | GV!$GV$ac_delim |
| 34139 | DOTTY!$DOTTY$ac_delim |
| 34140 | PERL!$PERL$ac_delim |
| 34141 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 34142 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 34143 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 34144 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 34145 | BZIP2!$BZIP2$ac_delim |
| 34146 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34147 | GROFF!$GROFF$ac_delim |
| 34148 | GZIP!$GZIP$ac_delim |
| 34149 | POD2HTML!$POD2HTML$ac_delim |
| 34150 | POD2MAN!$POD2MAN$ac_delim |
| 34151 | RUNTEST!$RUNTEST$ac_delim |
| 34152 | TCLSH!$TCLSH$ac_delim |
| 34153 | ZIP!$ZIP$ac_delim |
| 34154 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 34155 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 34156 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 34157 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 34158 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 34159 | ECHO!$ECHO$ac_delim |
| 34160 | AR!$AR$ac_delim |
| 34161 | STRIP!$STRIP$ac_delim |
| 34162 | CXXCPP!$CXXCPP$ac_delim |
| 34163 | F77!$F77$ac_delim |
| 34164 | FFLAGS!$FFLAGS$ac_delim |
| 34165 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 34166 | LIBTOOL!$LIBTOOL$ac_delim |
| 34167 | ETAGSFLAGS!$ETAGSFLAGS$ac_delim |
| 34168 | LLVMGCC!$LLVMGCC$ac_delim |
| 34169 | LLVMGXX!$LLVMGXX$ac_delim |
| 34170 | ALLOCA!$ALLOCA$ac_delim |
| 34171 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 34172 | LLVMCC1!$LLVMCC1$ac_delim |
| 34173 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 34174 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
| 34175 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 34176 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
| 34177 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 34178 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 34179 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 34180 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 34181 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 34182 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 34183 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 34184 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 34185 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 34186 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 34187 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 34188 | LIBOBJS!$LIBOBJS$ac_delim |
| 34189 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 34190 | _ACEOF |
| 34191 | |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 34192 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34193 | break |
| 34194 | elif $ac_last_try; then |
| 34195 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34196 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34197 | { (exit 1); exit 1; }; } |
| 34198 | else |
| 34199 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 34200 | fi |
| 34201 | done |
| 34202 | |
| 34203 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34204 | if test -n "$ac_eof"; then |
| 34205 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34206 | ac_eof=`expr $ac_eof + 1` |
| 34207 | fi |
| 34208 | |
| 34209 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34210 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 34211 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 34212 | _ACEOF |
| 34213 | sed ' |
| 34214 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34215 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34216 | :n |
| 34217 | t n |
| 34218 | s/'"$ac_delim"'$/,g/; t |
| 34219 | s/$/\\/; p |
| 34220 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34221 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34222 | rm -f conf$$subs.sed |
| 34223 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34224 | :end |
| 34225 | s/|#_!!_#|//g |
| 34226 | CEOF$ac_eof |
| 34227 | _ACEOF |
| 34228 | |
| 34229 | |
| 34230 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 34231 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 34232 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 34233 | # (actually we leave an empty line to preserve line numbers). |
| 34234 | if test "x$srcdir" = x.; then |
| 34235 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 34236 | s/:*\$(srcdir):*/:/ |
| 34237 | s/:*\${srcdir}:*/:/ |
| 34238 | s/:*@srcdir@:*/:/ |
| 34239 | s/^\([^=]*=[ ]*\):*/\1/ |
| 34240 | s/:*$// |
| 34241 | s/^[^=]*=[ ]*$// |
| 34242 | }' |
| 34243 | fi |
| 34244 | |
| 34245 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34246 | fi # test -n "$CONFIG_FILES" |
| 34247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34248 | |
| 34249 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 34250 | do |
| 34251 | case $ac_tag in |
| 34252 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 34253 | esac |
| 34254 | case $ac_mode$ac_tag in |
| 34255 | :[FHL]*:*);; |
| 34256 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 34257 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 34258 | { (exit 1); exit 1; }; };; |
| 34259 | :[FH]-) ac_tag=-:-;; |
| 34260 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 34261 | esac |
| 34262 | ac_save_IFS=$IFS |
| 34263 | IFS=: |
| 34264 | set x $ac_tag |
| 34265 | IFS=$ac_save_IFS |
| 34266 | shift |
| 34267 | ac_file=$1 |
| 34268 | shift |
| 34269 | |
| 34270 | case $ac_mode in |
| 34271 | :L) ac_source=$1;; |
| 34272 | :[FH]) |
| 34273 | ac_file_inputs= |
| 34274 | for ac_f |
| 34275 | do |
| 34276 | case $ac_f in |
| 34277 | -) ac_f="$tmp/stdin";; |
| 34278 | *) # Look for the file first in the build tree, then in the source tree |
| 34279 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 34280 | # because $ac_f cannot contain `:'. |
| 34281 | test -f "$ac_f" || |
| 34282 | case $ac_f in |
| 34283 | [\\/$]*) false;; |
| 34284 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 34285 | esac || |
| 34286 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 34287 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 34288 | { (exit 1); exit 1; }; };; |
| 34289 | esac |
| 34290 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 34291 | done |
| 34292 | |
| 34293 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 34294 | # use $as_me), people would be surprised to read: |
| 34295 | # /* config.h. Generated by config.status. */ |
| 34296 | configure_input="Generated from "`IFS=: |
| 34297 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 34298 | if test x"$ac_file" != x-; then |
| 34299 | configure_input="$ac_file. $configure_input" |
| 34300 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 34301 | echo "$as_me: creating $ac_file" >&6;} |
| 34302 | fi |
| 34303 | |
| 34304 | case $ac_tag in |
| 34305 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 34306 | esac |
| 34307 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34308 | esac |
| 34309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34310 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34311 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34312 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 34313 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34314 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34315 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34316 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34317 | s//\1/ |
| 34318 | q |
| 34319 | } |
| 34320 | /^X\(\/\/\)[^/].*/{ |
| 34321 | s//\1/ |
| 34322 | q |
| 34323 | } |
| 34324 | /^X\(\/\/\)$/{ |
| 34325 | s//\1/ |
| 34326 | q |
| 34327 | } |
| 34328 | /^X\(\/\).*/{ |
| 34329 | s//\1/ |
| 34330 | q |
| 34331 | } |
| 34332 | s/.*/./; q'` |
| 34333 | { as_dir="$ac_dir" |
| 34334 | case $as_dir in #( |
| 34335 | -*) as_dir=./$as_dir;; |
| 34336 | esac |
| 34337 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34338 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34339 | while :; do |
| 34340 | case $as_dir in #( |
| 34341 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34342 | *) as_qdir=$as_dir;; |
| 34343 | esac |
| 34344 | as_dirs="'$as_qdir' $as_dirs" |
| 34345 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34346 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34347 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34348 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34349 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34350 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34351 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34352 | s//\1/ |
| 34353 | q |
| 34354 | } |
| 34355 | /^X\(\/\/\)[^/].*/{ |
| 34356 | s//\1/ |
| 34357 | q |
| 34358 | } |
| 34359 | /^X\(\/\/\)$/{ |
| 34360 | s//\1/ |
| 34361 | q |
| 34362 | } |
| 34363 | /^X\(\/\).*/{ |
| 34364 | s//\1/ |
| 34365 | q |
| 34366 | } |
| 34367 | s/.*/./; q'` |
| 34368 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34369 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34370 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 34371 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 34372 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34373 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34374 | ac_builddir=. |
| 34375 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34376 | case "$ac_dir" in |
| 34377 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34378 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34379 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34380 | # A ".." for each directory in $ac_dir_suffix. |
| 34381 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 34382 | case $ac_top_builddir_sub in |
| 34383 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34384 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 34385 | esac ;; |
| 34386 | esac |
| 34387 | ac_abs_top_builddir=$ac_pwd |
| 34388 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 34389 | # for backward compatibility: |
| 34390 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34391 | |
| 34392 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34393 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34394 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34395 | ac_top_srcdir=$ac_top_builddir_sub |
| 34396 | ac_abs_top_srcdir=$ac_pwd ;; |
| 34397 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34398 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34399 | ac_top_srcdir=$srcdir |
| 34400 | ac_abs_top_srcdir=$srcdir ;; |
| 34401 | *) # Relative name. |
| 34402 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 34403 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 34404 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34405 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34406 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34407 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34409 | case $ac_mode in |
| 34410 | :F) |
| 34411 | # |
| 34412 | # CONFIG_FILE |
| 34413 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34414 | |
| 34415 | case $INSTALL in |
| 34416 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34417 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34418 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34419 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34420 | |
| 34421 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34422 | # If the template does not know about datarootdir, expand it. |
| 34423 | # FIXME: This hack should be removed a few years after 2.60. |
| 34424 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 34425 | |
| 34426 | case `sed -n '/datarootdir/ { |
| 34427 | p |
| 34428 | q |
| 34429 | } |
| 34430 | /@datadir@/p |
| 34431 | /@docdir@/p |
| 34432 | /@infodir@/p |
| 34433 | /@localedir@/p |
| 34434 | /@mandir@/p |
| 34435 | ' $ac_file_inputs` in |
| 34436 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 34437 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 34438 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 34439 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 34440 | _ACEOF |
| 34441 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34442 | ac_datarootdir_hack=' |
| 34443 | s&@datadir@&$datadir&g |
| 34444 | s&@docdir@&$docdir&g |
| 34445 | s&@infodir@&$infodir&g |
| 34446 | s&@localedir@&$localedir&g |
| 34447 | s&@mandir@&$mandir&g |
| 34448 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 34449 | esac |
| 34450 | _ACEOF |
| 34451 | |
| 34452 | # Neutralize VPATH when `$srcdir' = `.'. |
| 34453 | # Shell code in configure.ac might set extrasub. |
| 34454 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34455 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34456 | sed "$ac_vpsub |
| 34457 | $extrasub |
| 34458 | _ACEOF |
| 34459 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34460 | :t |
| 34461 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34462 | s&@configure_input@&$configure_input&;t t |
| 34463 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 34464 | s&@srcdir@&$ac_srcdir&;t t |
| 34465 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 34466 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 34467 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 34468 | s&@builddir@&$ac_builddir&;t t |
| 34469 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 34470 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 34471 | s&@INSTALL@&$ac_INSTALL&;t t |
| 34472 | $ac_datarootdir_hack |
| 34473 | " $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] | 34474 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34475 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 34476 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 34477 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 34478 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34479 | which seems to be undefined. Please make sure it is defined." >&5 |
| 34480 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34481 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34482 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34483 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34484 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34485 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 34486 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34487 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34488 | ;; |
| 34489 | :H) |
| 34490 | # |
| 34491 | # CONFIG_HEADER |
| 34492 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34493 | _ACEOF |
| 34494 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34495 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 34496 | # substitutes the proper values into config.h.in to produce config.h. |
| 34497 | rm -f conftest.defines conftest.tail |
| 34498 | # First, append a space to every undef/define line, to ease matching. |
| 34499 | echo 's/$/ /' >conftest.defines |
| 34500 | # Then, protect against being on the right side of a sed subst, or in |
| 34501 | # an unquoted here document, in config.status. If some macros were |
| 34502 | # called several times there might be several #defines for the same |
| 34503 | # symbol, which is useless. But do not sort them, since the last |
| 34504 | # AC_DEFINE must be honored. |
| 34505 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 34506 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 34507 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 34508 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 34509 | # just an empty string. |
| 34510 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 34511 | ac_dB='\\)[ (].*,\\1define\\2' |
| 34512 | ac_dC=' ' |
| 34513 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34514 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34515 | uniq confdefs.h | |
| 34516 | sed -n ' |
| 34517 | t rset |
| 34518 | :rset |
| 34519 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 34520 | t ok |
| 34521 | d |
| 34522 | :ok |
| 34523 | s/[\\&,]/\\&/g |
| 34524 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 34525 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 34526 | ' >>conftest.defines |
| 34527 | |
| 34528 | # Remove the space that was appended to ease matching. |
| 34529 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34530 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 34531 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34532 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 34533 | echo 's/ $// |
| 34534 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34536 | # Break up conftest.defines: |
| 34537 | ac_max_sed_lines=50 |
| 34538 | |
| 34539 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 34540 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 34541 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 34542 | # et cetera. |
| 34543 | ac_in='$ac_file_inputs' |
| 34544 | ac_out='"$tmp/out1"' |
| 34545 | ac_nxt='"$tmp/out2"' |
| 34546 | |
| 34547 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34548 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34549 | # Write a here document: |
| 34550 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34551 | # First, check the format of the line: |
| 34552 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 34553 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 34554 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 34555 | b |
| 34556 | :def |
| 34557 | _ACEOF |
| 34558 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34559 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34560 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 34561 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 34562 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 34563 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34564 | rm -f conftest.defines |
| 34565 | mv conftest.tail conftest.defines |
| 34566 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34567 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34569 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34570 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34571 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34572 | echo "/* $configure_input */" >"$tmp/config.h" |
| 34573 | cat "$ac_result" >>"$tmp/config.h" |
| 34574 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34575 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 34576 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 34577 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34578 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34579 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34580 | fi |
| 34581 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34582 | echo "/* $configure_input */" |
| 34583 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34584 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34585 | rm -f "$tmp/out12" |
| 34586 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34587 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34588 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 34589 | echo "$as_me: executing $ac_file commands" >&6;} |
| 34590 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34591 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34592 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34593 | |
| 34594 | case $ac_file$ac_mode in |
| 34595 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 34596 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 34597 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 34598 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 34599 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 34600 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 34601 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 34602 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 34603 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 34604 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
| 34605 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 34606 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 34607 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 34608 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 34609 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 34610 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 34611 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 34612 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 34613 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 34614 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
| 34615 | |
| 34616 | esac |
| 34617 | done # for ac_tag |
| 34618 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34619 | |
| 34620 | { (exit 0); exit 0; } |
| 34621 | _ACEOF |
| 34622 | chmod +x $CONFIG_STATUS |
| 34623 | ac_clean_files=$ac_clean_files_save |
| 34624 | |
| 34625 | |
| 34626 | # configure is writing to config.log, and then calls config.status. |
| 34627 | # config.status does its own redirection, appending to config.log. |
| 34628 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 34629 | # by configure, so config.status won't be able to write to it; its |
| 34630 | # output is simply discarded. So we exec the FD to /dev/null, |
| 34631 | # effectively closing config.log, so it can be properly (re)opened and |
| 34632 | # appended to by config.status. When coming back to configure, we |
| 34633 | # need to make the FD available again. |
| 34634 | if test "$no_create" != yes; then |
| 34635 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34636 | ac_config_status_args= |
| 34637 | test "$silent" = yes && |
| 34638 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34639 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34640 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34641 | exec 5>>config.log |
| 34642 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 34643 | # would make configure fail if this is the last instruction. |
| 34644 | $ac_cs_success || { (exit 1); exit 1; } |
| 34645 | fi |
| 34646 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34647 | # |
| 34648 | # CONFIG_SUBDIRS section. |
| 34649 | # |
| 34650 | if test "$no_recursion" != yes; then |
| 34651 | |
| 34652 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 34653 | ac_sub_configure_args= |
| 34654 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34655 | eval "set x $ac_configure_args" |
| 34656 | shift |
| 34657 | for ac_arg |
| 34658 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34659 | if test -n "$ac_prev"; then |
| 34660 | ac_prev= |
| 34661 | continue |
| 34662 | fi |
| 34663 | case $ac_arg in |
| 34664 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 34665 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 34666 | ac_prev=cache_file ;; |
| 34667 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 34668 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 34669 | | --c=*) |
| 34670 | ;; |
| 34671 | --config-cache | -C) |
| 34672 | ;; |
| 34673 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 34674 | ac_prev=srcdir ;; |
| 34675 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 34676 | ;; |
| 34677 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 34678 | ac_prev=prefix ;; |
| 34679 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 34680 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34681 | *) |
| 34682 | case $ac_arg in |
| 34683 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34684 | esac |
| 34685 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34686 | esac |
| 34687 | done |
| 34688 | |
| 34689 | # Always prepend --prefix to ensure using the same prefix |
| 34690 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34691 | ac_arg="--prefix=$prefix" |
| 34692 | case $ac_arg in |
| 34693 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34694 | esac |
| 34695 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34696 | |
| 34697 | ac_popdir=`pwd` |
| 34698 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 34699 | |
| 34700 | # Do not complain, so a configure script can configure whichever |
| 34701 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34702 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34703 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34704 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 34705 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 34706 | echo "$ac_msg" >&6 |
| 34707 | { as_dir="$ac_dir" |
| 34708 | case $as_dir in #( |
| 34709 | -*) as_dir=./$as_dir;; |
| 34710 | esac |
| 34711 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34712 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34713 | while :; do |
| 34714 | case $as_dir in #( |
| 34715 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34716 | *) as_qdir=$as_dir;; |
| 34717 | esac |
| 34718 | as_dirs="'$as_qdir' $as_dirs" |
| 34719 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34720 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34721 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34722 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34723 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34724 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34725 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34726 | s//\1/ |
| 34727 | q |
| 34728 | } |
| 34729 | /^X\(\/\/\)[^/].*/{ |
| 34730 | s//\1/ |
| 34731 | q |
| 34732 | } |
| 34733 | /^X\(\/\/\)$/{ |
| 34734 | s//\1/ |
| 34735 | q |
| 34736 | } |
| 34737 | /^X\(\/\).*/{ |
| 34738 | s//\1/ |
| 34739 | q |
| 34740 | } |
| 34741 | s/.*/./; q'` |
| 34742 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34743 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34744 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 34745 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 34746 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34747 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34748 | ac_builddir=. |
| 34749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34750 | case "$ac_dir" in |
| 34751 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34752 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34753 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34754 | # A ".." for each directory in $ac_dir_suffix. |
| 34755 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 34756 | case $ac_top_builddir_sub in |
| 34757 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34758 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 34759 | esac ;; |
| 34760 | esac |
| 34761 | ac_abs_top_builddir=$ac_pwd |
| 34762 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 34763 | # for backward compatibility: |
| 34764 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34765 | |
| 34766 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34767 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34768 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34769 | ac_top_srcdir=$ac_top_builddir_sub |
| 34770 | ac_abs_top_srcdir=$ac_pwd ;; |
| 34771 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34772 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34773 | ac_top_srcdir=$srcdir |
| 34774 | ac_abs_top_srcdir=$srcdir ;; |
| 34775 | *) # Relative name. |
| 34776 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 34777 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 34778 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34779 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34780 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34781 | |
| 34782 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34783 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34784 | |
| 34785 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34786 | if test -f "$ac_srcdir/configure.gnu"; then |
| 34787 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 34788 | elif test -f "$ac_srcdir/configure"; then |
| 34789 | ac_sub_configure=$ac_srcdir/configure |
| 34790 | elif test -f "$ac_srcdir/configure.in"; then |
| 34791 | # This should be Cygnus configure. |
| 34792 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34793 | else |
| 34794 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 34795 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 34796 | ac_sub_configure= |
| 34797 | fi |
| 34798 | |
| 34799 | # The recursion is here. |
| 34800 | if test -n "$ac_sub_configure"; then |
| 34801 | # Make the cache file name correct relative to the subdirectory. |
| 34802 | case $cache_file in |
| 34803 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34804 | *) # Relative name. |
| 34805 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34806 | esac |
| 34807 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34808 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 34809 | 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] | 34810 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34811 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 34812 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34813 | { { 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] | 34814 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 34815 | { (exit 1); exit 1; }; } |
| 34816 | fi |
| 34817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34818 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34819 | done |
| 34820 | fi |
| 34821 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34822 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34823 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 34824 | { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 |
| 34825 | echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;} |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34826 | { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5 |
| 34827 | echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;} |
| 34828 | { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 |
| 34829 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} |
| 34830 | { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 |
| 34831 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} |
| 34832 | { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 |
| 34833 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34834 | fi |