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. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.3svn. |
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 | # |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
| 16 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 240 | # Be Bourne compatible |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 250 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 260 | # Be Bourne compatible |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 270 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +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" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 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-' |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.3svn' |
| 719 | PACKAGE_STRING='llvm 2.3svn' |
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> |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 726 | #if HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 727 | # include <sys/types.h> |
| 728 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 729 | #if HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 730 | # include <sys/stat.h> |
| 731 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 732 | #if STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 733 | # include <stdlib.h> |
| 734 | # include <stddef.h> |
| 735 | #else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 736 | # if HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 737 | # include <stdlib.h> |
| 738 | # endif |
| 739 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 740 | #if HAVE_STRING_H |
| 741 | # if !STDC_HEADERS && HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 742 | # include <memory.h> |
| 743 | # endif |
| 744 | # include <string.h> |
| 745 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 746 | #if HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 747 | # include <strings.h> |
| 748 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 749 | #if HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 750 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 751 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 752 | #if HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 753 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 754 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 755 | #if HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 816 | ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 833 | ENABLE_EXPENSIVE_CHECKS |
| 834 | EXPENSIVE_CHECKS |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 835 | DEBUG_RUNTIME |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 836 | JIT |
| 837 | TARGET_HAS_JIT |
| 838 | ENABLE_DOXYGEN |
| 839 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 840 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 841 | TARGETS_TO_BUILD |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 842 | ENABLE_CBE_PRINTF_A |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 843 | EXTRA_OPTIONS |
| 844 | CXX |
| 845 | CXXFLAGS |
| 846 | ac_ct_CXX |
| 847 | LEX |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 848 | LEXLIB |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 849 | LEX_OUTPUT_ROOT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | FLEX |
| 851 | YACC |
| 852 | YFLAGS |
| 853 | BISON |
| 854 | NM |
| 855 | ifGNUmake |
| 856 | LN_S |
| 857 | CMP |
| 858 | CP |
| 859 | DATE |
| 860 | FIND |
| 861 | MKDIR |
| 862 | MV |
| 863 | RANLIB |
| 864 | RM |
| 865 | SED |
| 866 | TAR |
| 867 | BINPWD |
| 868 | GRAPHVIZ |
| 869 | DOT |
| 870 | GV |
| 871 | DOTTY |
| 872 | PERL |
| 873 | HAVE_PERL |
| 874 | INSTALL_PROGRAM |
| 875 | INSTALL_SCRIPT |
| 876 | INSTALL_DATA |
| 877 | BZIP2 |
| 878 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 879 | GROFF |
| 880 | GZIP |
| 881 | POD2HTML |
| 882 | POD2MAN |
| 883 | RUNTEST |
| 884 | TCLSH |
| 885 | ZIP |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 886 | OCAMLC |
| 887 | OCAMLOPT |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 888 | OCAMLDEP |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 889 | INSTALL_LTDL_TRUE |
| 890 | INSTALL_LTDL_FALSE |
| 891 | CONVENIENCE_LTDL_TRUE |
| 892 | CONVENIENCE_LTDL_FALSE |
| 893 | LIBADD_DL |
| 894 | ECHO |
| 895 | AR |
| 896 | STRIP |
| 897 | CXXCPP |
| 898 | F77 |
| 899 | FFLAGS |
| 900 | ac_ct_F77 |
| 901 | LIBTOOL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 902 | LLVMGCC |
| 903 | LLVMGXX |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 904 | USE_UDIS86 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 905 | HAVE_PTHREAD |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 906 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 907 | ALLOCA |
| 908 | MMAP_FILE |
| 909 | LLVMCC1 |
| 910 | LLVMCC1PLUS |
| 911 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 912 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 913 | LLVMGCC_VERSION |
| 914 | LLVMGCC_MAJVERS |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 915 | LLVMGCC_LANGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 916 | SHLIBEXT |
| 917 | LLVM_PREFIX |
| 918 | LLVM_BINDIR |
| 919 | LLVM_LIBDIR |
| 920 | LLVM_DATADIR |
| 921 | LLVM_DOCSDIR |
| 922 | LLVM_ETCDIR |
| 923 | LLVM_INCLUDEDIR |
| 924 | LLVM_INFODIR |
| 925 | LLVM_MANDIR |
| 926 | LLVM_CONFIGTIME |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 927 | BINDINGS_TO_BUILD |
| 928 | ALL_BINDINGS |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 929 | OCAML_LIBDIR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 930 | LIBOBJS |
| 931 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 932 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 933 | ac_precious_vars='build_alias |
| 934 | host_alias |
| 935 | target_alias |
| 936 | CC |
| 937 | CFLAGS |
| 938 | LDFLAGS |
| 939 | CPPFLAGS |
| 940 | CPP |
| 941 | CXX |
| 942 | CXXFLAGS |
| 943 | CCC |
| 944 | YACC |
| 945 | YFLAGS |
| 946 | CXXCPP |
| 947 | F77 |
| 948 | FFLAGS' |
| 949 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 950 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 951 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 952 | projects/llvm-test |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 953 | projects/llvm-reopt |
| 954 | projects/llvm-gcc |
| 955 | projects/llvm-java |
| 956 | projects/llvm-tv |
| 957 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 958 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 959 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 960 | |
| 961 | # Initialize some variables set by options. |
| 962 | ac_init_help= |
| 963 | ac_init_version=false |
| 964 | # The variables have the same names as the options, with |
| 965 | # dashes changed to underlines. |
| 966 | cache_file=/dev/null |
| 967 | exec_prefix=NONE |
| 968 | no_create= |
| 969 | no_recursion= |
| 970 | prefix=NONE |
| 971 | program_prefix=NONE |
| 972 | program_suffix=NONE |
| 973 | program_transform_name=s,x,x, |
| 974 | silent= |
| 975 | site= |
| 976 | srcdir= |
| 977 | verbose= |
| 978 | x_includes=NONE |
| 979 | x_libraries=NONE |
| 980 | |
| 981 | # Installation directory options. |
| 982 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 983 | # and all the variables that are supposed to be based on exec_prefix |
| 984 | # by default will actually change. |
| 985 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 986 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 987 | bindir='${exec_prefix}/bin' |
| 988 | sbindir='${exec_prefix}/sbin' |
| 989 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 990 | datarootdir='${prefix}/share' |
| 991 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 992 | sysconfdir='${prefix}/etc' |
| 993 | sharedstatedir='${prefix}/com' |
| 994 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 995 | includedir='${prefix}/include' |
| 996 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 997 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 998 | infodir='${datarootdir}/info' |
| 999 | htmldir='${docdir}' |
| 1000 | dvidir='${docdir}' |
| 1001 | pdfdir='${docdir}' |
| 1002 | psdir='${docdir}' |
| 1003 | libdir='${exec_prefix}/lib' |
| 1004 | localedir='${datarootdir}/locale' |
| 1005 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1006 | |
| 1007 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1008 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1009 | for ac_option |
| 1010 | do |
| 1011 | # If the previous option needs an argument, assign it. |
| 1012 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1013 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1014 | ac_prev= |
| 1015 | continue |
| 1016 | fi |
| 1017 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1018 | case $ac_option in |
| 1019 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1020 | *) ac_optarg=yes ;; |
| 1021 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1022 | |
| 1023 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1025 | case $ac_dashdash$ac_option in |
| 1026 | --) |
| 1027 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1028 | |
| 1029 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1030 | ac_prev=bindir ;; |
| 1031 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1032 | bindir=$ac_optarg ;; |
| 1033 | |
| 1034 | -build | --build | --buil | --bui | --bu) |
| 1035 | ac_prev=build_alias ;; |
| 1036 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1037 | build_alias=$ac_optarg ;; |
| 1038 | |
| 1039 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1040 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1041 | ac_prev=cache_file ;; |
| 1042 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1043 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1044 | cache_file=$ac_optarg ;; |
| 1045 | |
| 1046 | --config-cache | -C) |
| 1047 | cache_file=config.cache ;; |
| 1048 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1049 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1050 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1051 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1052 | datadir=$ac_optarg ;; |
| 1053 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1054 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1055 | | --dataroo | --dataro | --datar) |
| 1056 | ac_prev=datarootdir ;; |
| 1057 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1058 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1059 | datarootdir=$ac_optarg ;; |
| 1060 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1061 | -disable-* | --disable-*) |
| 1062 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1063 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1064 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1065 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1066 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1067 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1068 | eval enable_$ac_feature=no ;; |
| 1069 | |
| 1070 | -docdir | --docdir | --docdi | --doc | --do) |
| 1071 | ac_prev=docdir ;; |
| 1072 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1073 | docdir=$ac_optarg ;; |
| 1074 | |
| 1075 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1076 | ac_prev=dvidir ;; |
| 1077 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1078 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1079 | |
| 1080 | -enable-* | --enable-*) |
| 1081 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1082 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1083 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1084 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1085 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1086 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1087 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1088 | |
| 1089 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1090 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1091 | | --exec | --exe | --ex) |
| 1092 | ac_prev=exec_prefix ;; |
| 1093 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1094 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1095 | | --exec=* | --exe=* | --ex=*) |
| 1096 | exec_prefix=$ac_optarg ;; |
| 1097 | |
| 1098 | -gas | --gas | --ga | --g) |
| 1099 | # Obsolete; use --with-gas. |
| 1100 | with_gas=yes ;; |
| 1101 | |
| 1102 | -help | --help | --hel | --he | -h) |
| 1103 | ac_init_help=long ;; |
| 1104 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1105 | ac_init_help=recursive ;; |
| 1106 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1107 | ac_init_help=short ;; |
| 1108 | |
| 1109 | -host | --host | --hos | --ho) |
| 1110 | ac_prev=host_alias ;; |
| 1111 | -host=* | --host=* | --hos=* | --ho=*) |
| 1112 | host_alias=$ac_optarg ;; |
| 1113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1114 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1115 | ac_prev=htmldir ;; |
| 1116 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1117 | | --ht=*) |
| 1118 | htmldir=$ac_optarg ;; |
| 1119 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1120 | -includedir | --includedir | --includedi | --included | --include \ |
| 1121 | | --includ | --inclu | --incl | --inc) |
| 1122 | ac_prev=includedir ;; |
| 1123 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1124 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1125 | includedir=$ac_optarg ;; |
| 1126 | |
| 1127 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1128 | ac_prev=infodir ;; |
| 1129 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1130 | infodir=$ac_optarg ;; |
| 1131 | |
| 1132 | -libdir | --libdir | --libdi | --libd) |
| 1133 | ac_prev=libdir ;; |
| 1134 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1135 | libdir=$ac_optarg ;; |
| 1136 | |
| 1137 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1138 | | --libexe | --libex | --libe) |
| 1139 | ac_prev=libexecdir ;; |
| 1140 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1141 | | --libexe=* | --libex=* | --libe=*) |
| 1142 | libexecdir=$ac_optarg ;; |
| 1143 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1144 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1145 | ac_prev=localedir ;; |
| 1146 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1147 | localedir=$ac_optarg ;; |
| 1148 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1149 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1150 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1151 | ac_prev=localstatedir ;; |
| 1152 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1153 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1154 | localstatedir=$ac_optarg ;; |
| 1155 | |
| 1156 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1157 | ac_prev=mandir ;; |
| 1158 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1159 | mandir=$ac_optarg ;; |
| 1160 | |
| 1161 | -nfp | --nfp | --nf) |
| 1162 | # Obsolete; use --without-fp. |
| 1163 | with_fp=no ;; |
| 1164 | |
| 1165 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1166 | | --no-cr | --no-c | -n) |
| 1167 | no_create=yes ;; |
| 1168 | |
| 1169 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1170 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1171 | no_recursion=yes ;; |
| 1172 | |
| 1173 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1174 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1175 | | --oldin | --oldi | --old | --ol | --o) |
| 1176 | ac_prev=oldincludedir ;; |
| 1177 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1178 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1179 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1180 | oldincludedir=$ac_optarg ;; |
| 1181 | |
| 1182 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1183 | ac_prev=prefix ;; |
| 1184 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1185 | prefix=$ac_optarg ;; |
| 1186 | |
| 1187 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1188 | | --program-pre | --program-pr | --program-p) |
| 1189 | ac_prev=program_prefix ;; |
| 1190 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1191 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1192 | program_prefix=$ac_optarg ;; |
| 1193 | |
| 1194 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1195 | | --program-suf | --program-su | --program-s) |
| 1196 | ac_prev=program_suffix ;; |
| 1197 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1198 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1199 | program_suffix=$ac_optarg ;; |
| 1200 | |
| 1201 | -program-transform-name | --program-transform-name \ |
| 1202 | | --program-transform-nam | --program-transform-na \ |
| 1203 | | --program-transform-n | --program-transform- \ |
| 1204 | | --program-transform | --program-transfor \ |
| 1205 | | --program-transfo | --program-transf \ |
| 1206 | | --program-trans | --program-tran \ |
| 1207 | | --progr-tra | --program-tr | --program-t) |
| 1208 | ac_prev=program_transform_name ;; |
| 1209 | -program-transform-name=* | --program-transform-name=* \ |
| 1210 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1211 | | --program-transform-n=* | --program-transform-=* \ |
| 1212 | | --program-transform=* | --program-transfor=* \ |
| 1213 | | --program-transfo=* | --program-transf=* \ |
| 1214 | | --program-trans=* | --program-tran=* \ |
| 1215 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1216 | program_transform_name=$ac_optarg ;; |
| 1217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1218 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1219 | ac_prev=pdfdir ;; |
| 1220 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1221 | pdfdir=$ac_optarg ;; |
| 1222 | |
| 1223 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1224 | ac_prev=psdir ;; |
| 1225 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1226 | psdir=$ac_optarg ;; |
| 1227 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1228 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1229 | | -silent | --silent | --silen | --sile | --sil) |
| 1230 | silent=yes ;; |
| 1231 | |
| 1232 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1233 | ac_prev=sbindir ;; |
| 1234 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1235 | | --sbi=* | --sb=*) |
| 1236 | sbindir=$ac_optarg ;; |
| 1237 | |
| 1238 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1239 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1240 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1241 | | --sha | --sh) |
| 1242 | ac_prev=sharedstatedir ;; |
| 1243 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1244 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1245 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1246 | | --sha=* | --sh=*) |
| 1247 | sharedstatedir=$ac_optarg ;; |
| 1248 | |
| 1249 | -site | --site | --sit) |
| 1250 | ac_prev=site ;; |
| 1251 | -site=* | --site=* | --sit=*) |
| 1252 | site=$ac_optarg ;; |
| 1253 | |
| 1254 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1255 | ac_prev=srcdir ;; |
| 1256 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1257 | srcdir=$ac_optarg ;; |
| 1258 | |
| 1259 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1260 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1261 | ac_prev=sysconfdir ;; |
| 1262 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1263 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1264 | sysconfdir=$ac_optarg ;; |
| 1265 | |
| 1266 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1267 | ac_prev=target_alias ;; |
| 1268 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1269 | target_alias=$ac_optarg ;; |
| 1270 | |
| 1271 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1272 | verbose=yes ;; |
| 1273 | |
| 1274 | -version | --version | --versio | --versi | --vers | -V) |
| 1275 | ac_init_version=: ;; |
| 1276 | |
| 1277 | -with-* | --with-*) |
| 1278 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1279 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1280 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1281 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1282 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1283 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1284 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1285 | |
| 1286 | -without-* | --without-*) |
| 1287 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1288 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1289 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1290 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1291 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1292 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1293 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1294 | |
| 1295 | --x) |
| 1296 | # Obsolete; use --with-x. |
| 1297 | with_x=yes ;; |
| 1298 | |
| 1299 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1300 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1301 | ac_prev=x_includes ;; |
| 1302 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1303 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1304 | x_includes=$ac_optarg ;; |
| 1305 | |
| 1306 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1307 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1308 | ac_prev=x_libraries ;; |
| 1309 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1310 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1311 | x_libraries=$ac_optarg ;; |
| 1312 | |
| 1313 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1314 | Try \`$0 --help' for more information." >&2 |
| 1315 | { (exit 1); exit 1; }; } |
| 1316 | ;; |
| 1317 | |
| 1318 | *=*) |
| 1319 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1320 | # Reject names that are not valid shell variable names. |
| 1321 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1322 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1323 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1324 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1325 | export $ac_envvar ;; |
| 1326 | |
| 1327 | *) |
| 1328 | # FIXME: should be removed in autoconf 3.0. |
| 1329 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1330 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1331 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1332 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1333 | ;; |
| 1334 | |
| 1335 | esac |
| 1336 | done |
| 1337 | |
| 1338 | if test -n "$ac_prev"; then |
| 1339 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1340 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1341 | { (exit 1); exit 1; }; } |
| 1342 | fi |
| 1343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1344 | # Be sure to have absolute directory names. |
| 1345 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1346 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1347 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1348 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1349 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1350 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1351 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1352 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1353 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1354 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1355 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1356 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1357 | done |
| 1358 | |
| 1359 | # There might be people who depend on the old broken behavior: `$host' |
| 1360 | # used to hold the argument of --host etc. |
| 1361 | # FIXME: To remove some day. |
| 1362 | build=$build_alias |
| 1363 | host=$host_alias |
| 1364 | target=$target_alias |
| 1365 | |
| 1366 | # FIXME: To remove some day. |
| 1367 | if test "x$host_alias" != x; then |
| 1368 | if test "x$build_alias" = x; then |
| 1369 | cross_compiling=maybe |
| 1370 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1371 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1372 | elif test "x$build_alias" != "x$host_alias"; then |
| 1373 | cross_compiling=yes |
| 1374 | fi |
| 1375 | fi |
| 1376 | |
| 1377 | ac_tool_prefix= |
| 1378 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1379 | |
| 1380 | test "$silent" = yes && exec 6>/dev/null |
| 1381 | |
| 1382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1383 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1384 | ac_ls_di=`ls -di .` && |
| 1385 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1386 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1387 | { (exit 1); exit 1; }; } |
| 1388 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1389 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1390 | { (exit 1); exit 1; }; } |
| 1391 | |
| 1392 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1393 | # Find the source files, if location was not specified. |
| 1394 | if test -z "$srcdir"; then |
| 1395 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1396 | # Try the directory containing this script, then the parent directory. |
| 1397 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1398 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1399 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1400 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1401 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1402 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1403 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1404 | s//\1/ |
| 1405 | q |
| 1406 | } |
| 1407 | /^X\(\/\/\)[^/].*/{ |
| 1408 | s//\1/ |
| 1409 | q |
| 1410 | } |
| 1411 | /^X\(\/\/\)$/{ |
| 1412 | s//\1/ |
| 1413 | q |
| 1414 | } |
| 1415 | /^X\(\/\).*/{ |
| 1416 | s//\1/ |
| 1417 | q |
| 1418 | } |
| 1419 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1420 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1421 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1422 | srcdir=.. |
| 1423 | fi |
| 1424 | else |
| 1425 | ac_srcdir_defaulted=no |
| 1426 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1427 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1428 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1429 | { 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] | 1430 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1431 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1432 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1433 | ac_abs_confdir=`( |
| 1434 | 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] | 1435 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1436 | pwd)` |
| 1437 | # When building in place, set srcdir=. |
| 1438 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1439 | srcdir=. |
| 1440 | fi |
| 1441 | # Remove unnecessary trailing slashes from srcdir. |
| 1442 | # Double slashes in file names in object file debugging info |
| 1443 | # mess up M-x gdb in Emacs. |
| 1444 | case $srcdir in |
| 1445 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1446 | esac |
| 1447 | for ac_var in $ac_precious_vars; do |
| 1448 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1449 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1450 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1451 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1452 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1453 | |
| 1454 | # |
| 1455 | # Report the --help message. |
| 1456 | # |
| 1457 | if test "$ac_init_help" = "long"; then |
| 1458 | # Omit some internal or obsolete options to make the list less imposing. |
| 1459 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1460 | cat <<_ACEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1461 | \`configure' configures llvm 2.3svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1462 | |
| 1463 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1464 | |
| 1465 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1466 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1467 | |
| 1468 | Defaults for the options are specified in brackets. |
| 1469 | |
| 1470 | Configuration: |
| 1471 | -h, --help display this help and exit |
| 1472 | --help=short display options specific to this package |
| 1473 | --help=recursive display the short help of all the included packages |
| 1474 | -V, --version display version information and exit |
| 1475 | -q, --quiet, --silent do not print \`checking...' messages |
| 1476 | --cache-file=FILE cache test results in FILE [disabled] |
| 1477 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1478 | -n, --no-create do not create output files |
| 1479 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1480 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1481 | Installation directories: |
| 1482 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1483 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1485 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1486 | |
| 1487 | By default, \`make install' will install all the files in |
| 1488 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1489 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1490 | for instance \`--prefix=\$HOME'. |
| 1491 | |
| 1492 | For better control, use the options below. |
| 1493 | |
| 1494 | Fine tuning of the installation directories: |
| 1495 | --bindir=DIR user executables [EPREFIX/bin] |
| 1496 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1497 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1498 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1499 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1500 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1501 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1502 | --includedir=DIR C header files [PREFIX/include] |
| 1503 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1504 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1505 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1506 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1507 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1508 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1509 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1510 | --htmldir=DIR html documentation [DOCDIR] |
| 1511 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1512 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1513 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1514 | _ACEOF |
| 1515 | |
| 1516 | cat <<\_ACEOF |
| 1517 | |
| 1518 | System types: |
| 1519 | --build=BUILD configure for building on BUILD [guessed] |
| 1520 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1521 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1522 | _ACEOF |
| 1523 | fi |
| 1524 | |
| 1525 | if test -n "$ac_init_help"; then |
| 1526 | case $ac_init_help in |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1527 | short | recursive ) echo "Configuration of llvm 2.3svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1528 | esac |
| 1529 | cat <<\_ACEOF |
| 1530 | |
| 1531 | Optional Features: |
| 1532 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1533 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1534 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1535 | --enable-assertions |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1536 | --enable-expensive-checks |
| 1537 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 1538 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1539 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1540 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1541 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1542 | --enable-pic Build LLVM with Position Independent Code (default |
| 1543 | is NO) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1544 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1545 | all,host-only,{target-name} (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1546 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1547 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1548 | --enable-bindings Build specific language bindings: |
| 1549 | all,auto,none,{binding-name} (default=auto) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1550 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1551 | --enable-shared[=PKGS] build shared libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1552 | [default=yes] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1553 | --enable-static[=PKGS] build static libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1554 | [default=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1555 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1556 | optimize for fast installation |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1557 | [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1558 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1559 | |
| 1560 | Optional Packages: |
| 1561 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1562 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1563 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1564 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1565 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1566 | searches PATH) |
| 1567 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1568 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1569 | --with-extra-options Specify addtional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1570 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1571 | is stdlib) |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1572 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1573 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1574 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1575 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1576 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1577 | --with-udis86=<path> Use udis86 external x86 disassembler library |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1578 | |
| 1579 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1580 | CC C compiler command |
| 1581 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1582 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1583 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1584 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1585 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1586 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1587 | CXX C++ compiler command |
| 1588 | CXXFLAGS C++ compiler flags |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1589 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1590 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1591 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1592 | This script will default YFLAGS to the empty string to avoid a |
| 1593 | default value of `-d' given by some make applications. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1594 | CXXCPP C++ preprocessor |
| 1595 | F77 Fortran 77 compiler command |
| 1596 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1597 | |
| 1598 | Use these variables to override the choices made by `configure' or to help |
| 1599 | it to find libraries and programs with nonstandard names/locations. |
| 1600 | |
| 1601 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1602 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1603 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1604 | fi |
| 1605 | |
| 1606 | if test "$ac_init_help" = "recursive"; then |
| 1607 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1608 | 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] | 1609 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | ac_builddir=. |
| 1611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1612 | case "$ac_dir" in |
| 1613 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1614 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1616 | # A ".." for each directory in $ac_dir_suffix. |
| 1617 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1618 | case $ac_top_builddir_sub in |
| 1619 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1620 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1621 | esac ;; |
| 1622 | esac |
| 1623 | ac_abs_top_builddir=$ac_pwd |
| 1624 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1625 | # for backward compatibility: |
| 1626 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1627 | |
| 1628 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1629 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1630 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1631 | ac_top_srcdir=$ac_top_builddir_sub |
| 1632 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1633 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1634 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1635 | ac_top_srcdir=$srcdir |
| 1636 | ac_abs_top_srcdir=$srcdir ;; |
| 1637 | *) # Relative name. |
| 1638 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1639 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1640 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1641 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1642 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1643 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1644 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1645 | # Check for guested configure. |
| 1646 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1647 | echo && |
| 1648 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1649 | elif test -f "$ac_srcdir/configure"; then |
| 1650 | echo && |
| 1651 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1652 | else |
| 1653 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1654 | fi || ac_status=$? |
| 1655 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1656 | done |
| 1657 | fi |
| 1658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1659 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1660 | if $ac_init_version; then |
| 1661 | cat <<\_ACEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1662 | llvm configure 2.3svn |
| 1663 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1665 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1666 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1667 | This configure script is free software; the Free Software Foundation |
| 1668 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1669 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1670 | Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1671 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1672 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1673 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1674 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1675 | This file contains any messages produced by compilers while |
| 1676 | running configure, to aid debugging if configure makes a mistake. |
| 1677 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1678 | It was created by llvm $as_me 2.3svn, which was |
| 1679 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1680 | |
| 1681 | $ $0 $@ |
| 1682 | |
| 1683 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | { |
| 1686 | cat <<_ASUNAME |
| 1687 | ## --------- ## |
| 1688 | ## Platform. ## |
| 1689 | ## --------- ## |
| 1690 | |
| 1691 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1692 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1693 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1694 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1695 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1696 | |
| 1697 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1698 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1699 | |
| 1700 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1701 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1702 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1703 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1704 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1705 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1706 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1707 | |
| 1708 | _ASUNAME |
| 1709 | |
| 1710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1711 | for as_dir in $PATH |
| 1712 | do |
| 1713 | IFS=$as_save_IFS |
| 1714 | test -z "$as_dir" && as_dir=. |
| 1715 | echo "PATH: $as_dir" |
| 1716 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1717 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1718 | |
| 1719 | } >&5 |
| 1720 | |
| 1721 | cat >&5 <<_ACEOF |
| 1722 | |
| 1723 | |
| 1724 | ## ----------- ## |
| 1725 | ## Core tests. ## |
| 1726 | ## ----------- ## |
| 1727 | |
| 1728 | _ACEOF |
| 1729 | |
| 1730 | |
| 1731 | # Keep a trace of the command line. |
| 1732 | # 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] | 1733 | # 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] | 1734 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1735 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1736 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1737 | ac_configure_args0= |
| 1738 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1739 | ac_must_keep_next=false |
| 1740 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1741 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1742 | for ac_arg |
| 1743 | do |
| 1744 | case $ac_arg in |
| 1745 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1746 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1747 | | -silent | --silent | --silen | --sile | --sil) |
| 1748 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1749 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1750 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1751 | esac |
| 1752 | case $ac_pass in |
| 1753 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1754 | 2) |
| 1755 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1756 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1757 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1758 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1759 | case $ac_arg in |
| 1760 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1761 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1762 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1763 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1764 | case "$ac_configure_args0 " in |
| 1765 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1766 | esac |
| 1767 | ;; |
| 1768 | -* ) ac_must_keep_next=true ;; |
| 1769 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1770 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1771 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1772 | ;; |
| 1773 | esac |
| 1774 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1775 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1776 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1777 | $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] | 1778 | |
| 1779 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1780 | # config.log. We remove comments because anyway the quotes in there |
| 1781 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1782 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1783 | # 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] | 1784 | trap 'exit_status=$? |
| 1785 | # Save into config.log some information that might help in debugging. |
| 1786 | { |
| 1787 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1788 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1789 | cat <<\_ASBOX |
| 1790 | ## ---------------- ## |
| 1791 | ## Cache variables. ## |
| 1792 | ## ---------------- ## |
| 1793 | _ASBOX |
| 1794 | echo |
| 1795 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1796 | ( |
| 1797 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1798 | eval ac_val=\$$ac_var |
| 1799 | case $ac_val in #( |
| 1800 | *${as_nl}*) |
| 1801 | case $ac_var in #( |
| 1802 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1803 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1804 | esac |
| 1805 | case $ac_var in #( |
| 1806 | _ | IFS | as_nl) ;; #( |
| 1807 | *) $as_unset $ac_var ;; |
| 1808 | esac ;; |
| 1809 | esac |
| 1810 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1811 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1812 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1813 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1814 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1816 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1817 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1818 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1819 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1820 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1821 | esac | |
| 1822 | sort |
| 1823 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1824 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1825 | |
| 1826 | cat <<\_ASBOX |
| 1827 | ## ----------------- ## |
| 1828 | ## Output variables. ## |
| 1829 | ## ----------------- ## |
| 1830 | _ASBOX |
| 1831 | echo |
| 1832 | for ac_var in $ac_subst_vars |
| 1833 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1834 | eval ac_val=\$$ac_var |
| 1835 | case $ac_val in |
| 1836 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1837 | esac |
| 1838 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1839 | done | sort |
| 1840 | echo |
| 1841 | |
| 1842 | if test -n "$ac_subst_files"; then |
| 1843 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1844 | ## ------------------- ## |
| 1845 | ## File substitutions. ## |
| 1846 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1847 | _ASBOX |
| 1848 | echo |
| 1849 | for ac_var in $ac_subst_files |
| 1850 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1851 | eval ac_val=\$$ac_var |
| 1852 | case $ac_val in |
| 1853 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1854 | esac |
| 1855 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1856 | done | sort |
| 1857 | echo |
| 1858 | fi |
| 1859 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1860 | if test -s confdefs.h; then |
| 1861 | cat <<\_ASBOX |
| 1862 | ## ----------- ## |
| 1863 | ## confdefs.h. ## |
| 1864 | ## ----------- ## |
| 1865 | _ASBOX |
| 1866 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1867 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1868 | echo |
| 1869 | fi |
| 1870 | test "$ac_signal" != 0 && |
| 1871 | echo "$as_me: caught signal $ac_signal" |
| 1872 | echo "$as_me: exit $exit_status" |
| 1873 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1874 | rm -f core *.core core.conftest.* && |
| 1875 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1876 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1877 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1878 | for ac_signal in 1 2 13 15; do |
| 1879 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1880 | done |
| 1881 | ac_signal=0 |
| 1882 | |
| 1883 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1884 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1885 | |
| 1886 | # Predefined preprocessor variables. |
| 1887 | |
| 1888 | cat >>confdefs.h <<_ACEOF |
| 1889 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1890 | _ACEOF |
| 1891 | |
| 1892 | |
| 1893 | cat >>confdefs.h <<_ACEOF |
| 1894 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1895 | _ACEOF |
| 1896 | |
| 1897 | |
| 1898 | cat >>confdefs.h <<_ACEOF |
| 1899 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1900 | _ACEOF |
| 1901 | |
| 1902 | |
| 1903 | cat >>confdefs.h <<_ACEOF |
| 1904 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1905 | _ACEOF |
| 1906 | |
| 1907 | |
| 1908 | cat >>confdefs.h <<_ACEOF |
| 1909 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1910 | _ACEOF |
| 1911 | |
| 1912 | |
| 1913 | # Let the site file select an alternate cache file if it wants to. |
| 1914 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1915 | if test -n "$CONFIG_SITE"; then |
| 1916 | set x "$CONFIG_SITE" |
| 1917 | elif test "x$prefix" != xNONE; then |
| 1918 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1919 | else |
| 1920 | set x "$ac_default_prefix/share/config.site" \ |
| 1921 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1922 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1923 | shift |
| 1924 | for ac_site_file |
| 1925 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1926 | if test -r "$ac_site_file"; then |
| 1927 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1928 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1929 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1930 | . "$ac_site_file" |
| 1931 | fi |
| 1932 | done |
| 1933 | |
| 1934 | if test -r "$cache_file"; then |
| 1935 | # Some versions of bash will fail to source /dev/null (special |
| 1936 | # files actually), so we avoid doing that. |
| 1937 | if test -f "$cache_file"; then |
| 1938 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1939 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1940 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1941 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1942 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1943 | esac |
| 1944 | fi |
| 1945 | else |
| 1946 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1947 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1948 | >$cache_file |
| 1949 | fi |
| 1950 | |
| 1951 | # Check that the precious variables saved in the cache have kept the same |
| 1952 | # value. |
| 1953 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1954 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1955 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1956 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1957 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1958 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1959 | case $ac_old_set,$ac_new_set in |
| 1960 | set,) |
| 1961 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1962 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1963 | ac_cache_corrupted=: ;; |
| 1964 | ,set) |
| 1965 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1966 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1967 | ac_cache_corrupted=: ;; |
| 1968 | ,);; |
| 1969 | *) |
| 1970 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1971 | { 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] | 1972 | 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] | 1973 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1974 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1975 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1976 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1977 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1978 | fi;; |
| 1979 | esac |
| 1980 | # Pass precious variables to config.status. |
| 1981 | if test "$ac_new_set" = set; then |
| 1982 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1983 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1984 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1985 | esac |
| 1986 | case " $ac_configure_args " in |
| 1987 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1988 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1989 | esac |
| 1990 | fi |
| 1991 | done |
| 1992 | if $ac_cache_corrupted; then |
| 1993 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1994 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1995 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1996 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1997 | { (exit 1); exit 1; }; } |
| 1998 | fi |
| 1999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2024 | ac_ext=c |
| 2025 | ac_cpp='$CPP $CPPFLAGS' |
| 2026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2029 | |
| 2030 | |
| 2031 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2032 | LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2040 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2041 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2042 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2043 | ac_aux_dir=$ac_dir |
| 2044 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2045 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2046 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2047 | ac_aux_dir=$ac_dir |
| 2048 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2049 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2050 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2051 | ac_aux_dir=$ac_dir |
| 2052 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2053 | break |
| 2054 | fi |
| 2055 | done |
| 2056 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2057 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2058 | 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] | 2059 | { (exit 1); exit 1; }; } |
| 2060 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2061 | |
| 2062 | # These three variables are undocumented and unsupported, |
| 2063 | # and are intended to be withdrawn in a future Autoconf release. |
| 2064 | # They can cause serious problems if a builder's source tree is in a directory |
| 2065 | # whose full name contains unusual characters. |
| 2066 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2067 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2068 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2069 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2071 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2072 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2073 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2074 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2075 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2076 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2077 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2078 | fi |
| 2079 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2080 | for i in `ls ${srcdir}/projects` |
| 2081 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2082 | if test -d ${srcdir}/projects/${i} ; then |
| 2083 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2084 | CVS) ;; |
| 2085 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2086 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2087 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2088 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2089 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2090 | ;; |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2091 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2092 | ;; |
| 2093 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2094 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2095 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2096 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2097 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2098 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2099 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2100 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2101 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2102 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2103 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2104 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2105 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2106 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2107 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2108 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2109 | 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] | 2110 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2111 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2112 | fi |
| 2113 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2114 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2115 | |
| 2116 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2117 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2118 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2119 | 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] | 2120 | { (exit 1); exit 1; }; } |
| 2121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2122 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2123 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2124 | if test "${ac_cv_build+set}" = set; then |
| 2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2126 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2127 | ac_build_alias=$build_alias |
| 2128 | test "x$ac_build_alias" = x && |
| 2129 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2130 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2131 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2132 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2133 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2134 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2135 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2136 | 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] | 2137 | { (exit 1); exit 1; }; } |
| 2138 | |
| 2139 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2140 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2141 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2142 | case $ac_cv_build in |
| 2143 | *-*-*) ;; |
| 2144 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2145 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2146 | { (exit 1); exit 1; }; };; |
| 2147 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2148 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2149 | ac_save_IFS=$IFS; IFS='-' |
| 2150 | set x $ac_cv_build |
| 2151 | shift |
| 2152 | build_cpu=$1 |
| 2153 | build_vendor=$2 |
| 2154 | shift; shift |
| 2155 | # Remember, the first character of IFS is used to create $*, |
| 2156 | # except with old shells: |
| 2157 | build_os=$* |
| 2158 | IFS=$ac_save_IFS |
| 2159 | 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] | 2160 | |
| 2161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2162 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2163 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2164 | if test "${ac_cv_host+set}" = set; then |
| 2165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2166 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2167 | if test "x$host_alias" = x; then |
| 2168 | ac_cv_host=$ac_cv_build |
| 2169 | else |
| 2170 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2171 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2172 | 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] | 2173 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2174 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2175 | |
| 2176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2177 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2178 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2179 | case $ac_cv_host in |
| 2180 | *-*-*) ;; |
| 2181 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2182 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2183 | { (exit 1); exit 1; }; };; |
| 2184 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2185 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2186 | ac_save_IFS=$IFS; IFS='-' |
| 2187 | set x $ac_cv_host |
| 2188 | shift |
| 2189 | host_cpu=$1 |
| 2190 | host_vendor=$2 |
| 2191 | shift; shift |
| 2192 | # Remember, the first character of IFS is used to create $*, |
| 2193 | # except with old shells: |
| 2194 | host_os=$* |
| 2195 | IFS=$ac_save_IFS |
| 2196 | 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] | 2197 | |
| 2198 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2199 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2200 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2201 | if test "${ac_cv_target+set}" = set; then |
| 2202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2203 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2204 | if test "x$target_alias" = x; then |
| 2205 | ac_cv_target=$ac_cv_host |
| 2206 | else |
| 2207 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2208 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2209 | 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] | 2210 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2211 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2212 | |
| 2213 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2214 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2215 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2216 | case $ac_cv_target in |
| 2217 | *-*-*) ;; |
| 2218 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2219 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2220 | { (exit 1); exit 1; }; };; |
| 2221 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2222 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2223 | ac_save_IFS=$IFS; IFS='-' |
| 2224 | set x $ac_cv_target |
| 2225 | shift |
| 2226 | target_cpu=$1 |
| 2227 | target_vendor=$2 |
| 2228 | shift; shift |
| 2229 | # Remember, the first character of IFS is used to create $*, |
| 2230 | # except with old shells: |
| 2231 | target_os=$* |
| 2232 | IFS=$ac_save_IFS |
| 2233 | 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] | 2234 | |
| 2235 | |
| 2236 | # The aliases save the names the user supplied, while $host etc. |
| 2237 | # will get canonicalized. |
| 2238 | test -n "$target_alias" && |
| 2239 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2240 | NONENONEs,x,x, && |
| 2241 | program_prefix=${target_alias}- |
| 2242 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2243 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2244 | 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] | 2245 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2247 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2248 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2249 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2250 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2251 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2252 | llvm_cv_os_type="AIX" |
| 2253 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2254 | *-*-irix*) |
| 2255 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2256 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2257 | llvm_cv_os_type="IRIX" |
| 2258 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2259 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2260 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2261 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2262 | llvm_cv_os_type="Cygwin" |
| 2263 | llvm_cv_platform_type="Unix" ;; |
| 2264 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2265 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame^] | 2266 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2267 | llvm_cv_os_type="Darwin" |
| 2268 | llvm_cv_platform_type="Unix" ;; |
| 2269 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2270 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2271 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2272 | llvm_cv_os_type="FreeBSD" |
| 2273 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2274 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2275 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2276 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2277 | llvm_cv_os_type="OpenBSD" |
| 2278 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2279 | *-*-netbsd*) |
| 2280 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2281 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2282 | llvm_cv_os_type="NetBSD" |
| 2283 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2284 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2285 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2286 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2287 | llvm_cv_os_type="HP-UX" |
| 2288 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2289 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2290 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2291 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2292 | llvm_cv_os_type="Interix" |
| 2293 | llvm_cv_platform_type="Unix" ;; |
| 2294 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2295 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2296 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2297 | llvm_cv_os_type="Linux" |
| 2298 | llvm_cv_platform_type="Unix" ;; |
| 2299 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2300 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2301 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2302 | llvm_cv_os_type="SunOS" |
| 2303 | llvm_cv_platform_type="Unix" ;; |
| 2304 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2305 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2306 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2307 | llvm_cv_os_type="Win32" |
| 2308 | llvm_cv_platform_type="Win32" ;; |
| 2309 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2310 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2311 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2312 | llvm_cv_os_type="MingW" |
| 2313 | llvm_cv_platform_type="Win32" ;; |
| 2314 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2315 | llvm_cv_link_all_option="" |
| 2316 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2317 | llvm_cv_os_type="Unknown" |
| 2318 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2319 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2320 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2321 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2322 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2323 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2324 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2325 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2326 | 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] | 2327 | { (exit 1); exit 1; }; } |
| 2328 | fi |
| 2329 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2330 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2331 | |
| 2332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2333 | LINKALL=$llvm_cv_link_all_option |
| 2334 | |
| 2335 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2336 | |
| 2337 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2338 | case $llvm_cv_platform_type in |
| 2339 | Unix) |
| 2340 | |
| 2341 | cat >>confdefs.h <<\_ACEOF |
| 2342 | #define LLVM_ON_UNIX 1 |
| 2343 | _ACEOF |
| 2344 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2345 | LLVM_ON_UNIX=1 |
| 2346 | |
| 2347 | LLVM_ON_WIN32=0 |
| 2348 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2349 | ;; |
| 2350 | Win32) |
| 2351 | |
| 2352 | cat >>confdefs.h <<\_ACEOF |
| 2353 | #define LLVM_ON_WIN32 1 |
| 2354 | _ACEOF |
| 2355 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2356 | LLVM_ON_UNIX=0 |
| 2357 | |
| 2358 | LLVM_ON_WIN32=1 |
| 2359 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2360 | ;; |
| 2361 | esac |
| 2362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2363 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2364 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2365 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2367 | else |
| 2368 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2369 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2370 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2371 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2372 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2373 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2374 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 2375 | arm-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2376 | mips-*) llvm_cv_target_arch="Mips" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2377 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2378 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2379 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2380 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2381 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2382 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2383 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2384 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2385 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2386 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2387 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2388 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2389 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2390 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2391 | ac_ext=c |
| 2392 | ac_cpp='$CPP $CPPFLAGS' |
| 2393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2396 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2397 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2398 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2399 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2401 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2403 | else |
| 2404 | if test -n "$CC"; then |
| 2405 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2406 | else |
| 2407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2408 | for as_dir in $PATH |
| 2409 | do |
| 2410 | IFS=$as_save_IFS |
| 2411 | test -z "$as_dir" && as_dir=. |
| 2412 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2413 | 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] | 2414 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2416 | break 2 |
| 2417 | fi |
| 2418 | done |
| 2419 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2420 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2421 | |
| 2422 | fi |
| 2423 | fi |
| 2424 | CC=$ac_cv_prog_CC |
| 2425 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2426 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2427 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2428 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2429 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2430 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2431 | fi |
| 2432 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2433 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2434 | fi |
| 2435 | if test -z "$ac_cv_prog_CC"; then |
| 2436 | ac_ct_CC=$CC |
| 2437 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2438 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2439 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2441 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2443 | else |
| 2444 | if test -n "$ac_ct_CC"; then |
| 2445 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2446 | else |
| 2447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2448 | for as_dir in $PATH |
| 2449 | do |
| 2450 | IFS=$as_save_IFS |
| 2451 | test -z "$as_dir" && as_dir=. |
| 2452 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2453 | 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] | 2454 | ac_cv_prog_ac_ct_CC="gcc" |
| 2455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2456 | break 2 |
| 2457 | fi |
| 2458 | done |
| 2459 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2460 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2461 | |
| 2462 | fi |
| 2463 | fi |
| 2464 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2465 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2466 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2467 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2468 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2469 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2470 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2471 | fi |
| 2472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2473 | if test "x$ac_ct_CC" = x; then |
| 2474 | CC="" |
| 2475 | else |
| 2476 | case $cross_compiling:$ac_tool_warned in |
| 2477 | yes:) |
| 2478 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2479 | whose name does not start with the host triplet. If you think this |
| 2480 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2481 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2482 | whose name does not start with the host triplet. If you think this |
| 2483 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2484 | ac_tool_warned=yes ;; |
| 2485 | esac |
| 2486 | CC=$ac_ct_CC |
| 2487 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2488 | else |
| 2489 | CC="$ac_cv_prog_CC" |
| 2490 | fi |
| 2491 | |
| 2492 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2493 | if test -n "$ac_tool_prefix"; then |
| 2494 | # 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] | 2495 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2496 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2498 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2500 | else |
| 2501 | if test -n "$CC"; then |
| 2502 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2503 | else |
| 2504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2505 | for as_dir in $PATH |
| 2506 | do |
| 2507 | IFS=$as_save_IFS |
| 2508 | test -z "$as_dir" && as_dir=. |
| 2509 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2510 | 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] | 2511 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2513 | break 2 |
| 2514 | fi |
| 2515 | done |
| 2516 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2517 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2518 | |
| 2519 | fi |
| 2520 | fi |
| 2521 | CC=$ac_cv_prog_CC |
| 2522 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2523 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2524 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2525 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2526 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2527 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2528 | fi |
| 2529 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2530 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2531 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2532 | fi |
| 2533 | if test -z "$CC"; then |
| 2534 | # Extract the first word of "cc", so it can be a program name with args. |
| 2535 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2536 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2538 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2540 | else |
| 2541 | if test -n "$CC"; then |
| 2542 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2543 | else |
| 2544 | ac_prog_rejected=no |
| 2545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2546 | for as_dir in $PATH |
| 2547 | do |
| 2548 | IFS=$as_save_IFS |
| 2549 | test -z "$as_dir" && as_dir=. |
| 2550 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2551 | 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] | 2552 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2553 | ac_prog_rejected=yes |
| 2554 | continue |
| 2555 | fi |
| 2556 | ac_cv_prog_CC="cc" |
| 2557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2558 | break 2 |
| 2559 | fi |
| 2560 | done |
| 2561 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2562 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2563 | |
| 2564 | if test $ac_prog_rejected = yes; then |
| 2565 | # We found a bogon in the path, so make sure we never use it. |
| 2566 | set dummy $ac_cv_prog_CC |
| 2567 | shift |
| 2568 | if test $# != 0; then |
| 2569 | # We chose a different compiler from the bogus one. |
| 2570 | # However, it has the same basename, so the bogon will be chosen |
| 2571 | # first if we set CC to just the basename; use the full file name. |
| 2572 | shift |
| 2573 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2574 | fi |
| 2575 | fi |
| 2576 | fi |
| 2577 | fi |
| 2578 | CC=$ac_cv_prog_CC |
| 2579 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2580 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2581 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2582 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2583 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2584 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2585 | fi |
| 2586 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2587 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2588 | fi |
| 2589 | if test -z "$CC"; then |
| 2590 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2591 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2592 | do |
| 2593 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2594 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2595 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2597 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2599 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2600 | if test -n "$CC"; then |
| 2601 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2602 | else |
| 2603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2604 | for as_dir in $PATH |
| 2605 | do |
| 2606 | IFS=$as_save_IFS |
| 2607 | test -z "$as_dir" && as_dir=. |
| 2608 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2609 | 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] | 2610 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2612 | break 2 |
| 2613 | fi |
| 2614 | done |
| 2615 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2616 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2617 | |
| 2618 | fi |
| 2619 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2620 | CC=$ac_cv_prog_CC |
| 2621 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2622 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2623 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2624 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2626 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2627 | fi |
| 2628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2629 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2630 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2631 | done |
| 2632 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2633 | if test -z "$CC"; then |
| 2634 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2635 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2636 | do |
| 2637 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2638 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2641 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2643 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2644 | if test -n "$ac_ct_CC"; then |
| 2645 | 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] | 2646 | else |
| 2647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2648 | for as_dir in $PATH |
| 2649 | do |
| 2650 | IFS=$as_save_IFS |
| 2651 | test -z "$as_dir" && as_dir=. |
| 2652 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2653 | 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] | 2654 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2656 | break 2 |
| 2657 | fi |
| 2658 | done |
| 2659 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2660 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2661 | |
| 2662 | fi |
| 2663 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2664 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2665 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2666 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2667 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2668 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2669 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2670 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2671 | fi |
| 2672 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2673 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2674 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2675 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2676 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2677 | if test "x$ac_ct_CC" = x; then |
| 2678 | CC="" |
| 2679 | else |
| 2680 | case $cross_compiling:$ac_tool_warned in |
| 2681 | yes:) |
| 2682 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2683 | whose name does not start with the host triplet. If you think this |
| 2684 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2685 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2686 | whose name does not start with the host triplet. If you think this |
| 2687 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2688 | ac_tool_warned=yes ;; |
| 2689 | esac |
| 2690 | CC=$ac_ct_CC |
| 2691 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2692 | fi |
| 2693 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2694 | fi |
| 2695 | |
| 2696 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2697 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2698 | See \`config.log' for more details." >&5 |
| 2699 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2700 | See \`config.log' for more details." >&2;} |
| 2701 | { (exit 1); exit 1; }; } |
| 2702 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2703 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2704 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2705 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2706 | { (ac_try="$ac_compiler --version >&5" |
| 2707 | case "(($ac_try" in |
| 2708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2709 | *) ac_try_echo=$ac_try;; |
| 2710 | esac |
| 2711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2712 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2713 | ac_status=$? |
| 2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2715 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2716 | { (ac_try="$ac_compiler -v >&5" |
| 2717 | case "(($ac_try" in |
| 2718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2719 | *) ac_try_echo=$ac_try;; |
| 2720 | esac |
| 2721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2722 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2723 | ac_status=$? |
| 2724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2725 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2726 | { (ac_try="$ac_compiler -V >&5" |
| 2727 | case "(($ac_try" in |
| 2728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2729 | *) ac_try_echo=$ac_try;; |
| 2730 | esac |
| 2731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2732 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2733 | ac_status=$? |
| 2734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2735 | (exit $ac_status); } |
| 2736 | |
| 2737 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2738 | /* confdefs.h. */ |
| 2739 | _ACEOF |
| 2740 | cat confdefs.h >>conftest.$ac_ext |
| 2741 | cat >>conftest.$ac_ext <<_ACEOF |
| 2742 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2743 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2744 | int |
| 2745 | main () |
| 2746 | { |
| 2747 | |
| 2748 | ; |
| 2749 | return 0; |
| 2750 | } |
| 2751 | _ACEOF |
| 2752 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2753 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2754 | # Try to create an executable without -o first, disregard a.out. |
| 2755 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2756 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2757 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2758 | 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] | 2759 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2760 | # |
| 2761 | # List of possible output files, starting from the most likely. |
| 2762 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2763 | # only as a last resort. b.out is created by i960 compilers. |
| 2764 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2765 | # |
| 2766 | # The IRIX 6 linker writes into existing files which may not be |
| 2767 | # executable, retaining their permissions. Remove them first so a |
| 2768 | # subsequent execution test works. |
| 2769 | ac_rmfiles= |
| 2770 | for ac_file in $ac_files |
| 2771 | do |
| 2772 | case $ac_file in |
| 2773 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2774 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2775 | esac |
| 2776 | done |
| 2777 | rm -f $ac_rmfiles |
| 2778 | |
| 2779 | if { (ac_try="$ac_link_default" |
| 2780 | case "(($ac_try" in |
| 2781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2782 | *) ac_try_echo=$ac_try;; |
| 2783 | esac |
| 2784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2785 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2786 | ac_status=$? |
| 2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2788 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2789 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2790 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2791 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2792 | # so that the user can short-circuit this test for compilers unknown to |
| 2793 | # Autoconf. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2794 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2795 | do |
| 2796 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2797 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2798 | *.$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] | 2799 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2800 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2801 | # We found the default executable, but exeext='' is most |
| 2802 | # certainly right. |
| 2803 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2804 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2805 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2806 | then :; else |
| 2807 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2808 | fi |
| 2809 | # We set ac_cv_exeext here because the later test for it is not |
| 2810 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2811 | # argument, so we may need to know it at that point already. |
| 2812 | # Even if this section looks crufty: it has the advantage of |
| 2813 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2814 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2815 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2816 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2817 | esac |
| 2818 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2819 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2820 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2821 | else |
| 2822 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2824 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2825 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2826 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2827 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2828 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2829 | { (exit 77); exit 77; }; } |
| 2830 | fi |
| 2831 | |
| 2832 | ac_exeext=$ac_cv_exeext |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2833 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2834 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2836 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2837 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2838 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2839 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2840 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2841 | # If not cross compiling, check that we can run a simple program. |
| 2842 | if test "$cross_compiling" != yes; then |
| 2843 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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_try") 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 | cross_compiling=no |
| 2854 | else |
| 2855 | if test "$cross_compiling" = maybe; then |
| 2856 | cross_compiling=yes |
| 2857 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2858 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2859 | If you meant to cross compile, use \`--host'. |
| 2860 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2861 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2862 | If you meant to cross compile, use \`--host'. |
| 2863 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2864 | { (exit 1); exit 1; }; } |
| 2865 | fi |
| 2866 | fi |
| 2867 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2868 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2869 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2870 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2871 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2872 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2873 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2874 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2875 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2876 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2877 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2878 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2880 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2881 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2882 | if { (ac_try="$ac_link" |
| 2883 | case "(($ac_try" in |
| 2884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2885 | *) ac_try_echo=$ac_try;; |
| 2886 | esac |
| 2887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2888 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2889 | ac_status=$? |
| 2890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2891 | (exit $ac_status); }; then |
| 2892 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2893 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2894 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2895 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2896 | for ac_file in conftest.exe conftest conftest.*; do |
| 2897 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2898 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2899 | *.$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] | 2900 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2901 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2902 | * ) break;; |
| 2903 | esac |
| 2904 | done |
| 2905 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2906 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2907 | See \`config.log' for more details." >&5 |
| 2908 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2909 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | { (exit 1); exit 1; }; } |
| 2911 | fi |
| 2912 | |
| 2913 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2914 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2915 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2916 | |
| 2917 | rm -f conftest.$ac_ext |
| 2918 | EXEEXT=$ac_cv_exeext |
| 2919 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2920 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2921 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2922 | if test "${ac_cv_objext+set}" = set; then |
| 2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2924 | else |
| 2925 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2926 | /* confdefs.h. */ |
| 2927 | _ACEOF |
| 2928 | cat confdefs.h >>conftest.$ac_ext |
| 2929 | cat >>conftest.$ac_ext <<_ACEOF |
| 2930 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2931 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2932 | int |
| 2933 | main () |
| 2934 | { |
| 2935 | |
| 2936 | ; |
| 2937 | return 0; |
| 2938 | } |
| 2939 | _ACEOF |
| 2940 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2941 | if { (ac_try="$ac_compile" |
| 2942 | case "(($ac_try" in |
| 2943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2944 | *) ac_try_echo=$ac_try;; |
| 2945 | esac |
| 2946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2947 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2948 | ac_status=$? |
| 2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2950 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2951 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2952 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2953 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2954 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2955 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2956 | break;; |
| 2957 | esac |
| 2958 | done |
| 2959 | else |
| 2960 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2962 | |
| 2963 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2964 | See \`config.log' for more details." >&5 |
| 2965 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2966 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2967 | { (exit 1); exit 1; }; } |
| 2968 | fi |
| 2969 | |
| 2970 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2971 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2972 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2973 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2974 | OBJEXT=$ac_cv_objext |
| 2975 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2976 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2977 | 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] | 2978 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2980 | else |
| 2981 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2982 | /* confdefs.h. */ |
| 2983 | _ACEOF |
| 2984 | cat confdefs.h >>conftest.$ac_ext |
| 2985 | cat >>conftest.$ac_ext <<_ACEOF |
| 2986 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2987 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2988 | int |
| 2989 | main () |
| 2990 | { |
| 2991 | #ifndef __GNUC__ |
| 2992 | choke me |
| 2993 | #endif |
| 2994 | |
| 2995 | ; |
| 2996 | return 0; |
| 2997 | } |
| 2998 | _ACEOF |
| 2999 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3000 | if { (ac_try="$ac_compile" |
| 3001 | case "(($ac_try" in |
| 3002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3003 | *) ac_try_echo=$ac_try;; |
| 3004 | esac |
| 3005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3006 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3007 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3009 | rm -f conftest.er1 |
| 3010 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3012 | (exit $ac_status); } && |
| 3013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3014 | { (case "(($ac_try" in |
| 3015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3016 | *) ac_try_echo=$ac_try;; |
| 3017 | esac |
| 3018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3019 | (eval "$ac_try") 2>&5 |
| 3020 | ac_status=$? |
| 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3022 | (exit $ac_status); }; } && |
| 3023 | { ac_try='test -s conftest.$ac_objext' |
| 3024 | { (case "(($ac_try" in |
| 3025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3026 | *) ac_try_echo=$ac_try;; |
| 3027 | esac |
| 3028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3029 | (eval "$ac_try") 2>&5 |
| 3030 | ac_status=$? |
| 3031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3032 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3033 | ac_compiler_gnu=yes |
| 3034 | else |
| 3035 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3037 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3038 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3039 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3040 | |
| 3041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3042 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3043 | |
| 3044 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3045 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3046 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3047 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3048 | ac_test_CFLAGS=${CFLAGS+set} |
| 3049 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3050 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3051 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3052 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3054 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3055 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3056 | ac_c_werror_flag=yes |
| 3057 | ac_cv_prog_cc_g=no |
| 3058 | CFLAGS="-g" |
| 3059 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3060 | /* confdefs.h. */ |
| 3061 | _ACEOF |
| 3062 | cat confdefs.h >>conftest.$ac_ext |
| 3063 | cat >>conftest.$ac_ext <<_ACEOF |
| 3064 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3065 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3066 | int |
| 3067 | main () |
| 3068 | { |
| 3069 | |
| 3070 | ; |
| 3071 | return 0; |
| 3072 | } |
| 3073 | _ACEOF |
| 3074 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3075 | if { (ac_try="$ac_compile" |
| 3076 | case "(($ac_try" in |
| 3077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3078 | *) ac_try_echo=$ac_try;; |
| 3079 | esac |
| 3080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3081 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3082 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3084 | rm -f conftest.er1 |
| 3085 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3087 | (exit $ac_status); } && |
| 3088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3089 | { (case "(($ac_try" in |
| 3090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3091 | *) ac_try_echo=$ac_try;; |
| 3092 | esac |
| 3093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3094 | (eval "$ac_try") 2>&5 |
| 3095 | ac_status=$? |
| 3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3097 | (exit $ac_status); }; } && |
| 3098 | { ac_try='test -s conftest.$ac_objext' |
| 3099 | { (case "(($ac_try" in |
| 3100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3101 | *) ac_try_echo=$ac_try;; |
| 3102 | esac |
| 3103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3104 | (eval "$ac_try") 2>&5 |
| 3105 | ac_status=$? |
| 3106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3107 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3108 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3109 | else |
| 3110 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3113 | CFLAGS="" |
| 3114 | cat >conftest.$ac_ext <<_ACEOF |
| 3115 | /* confdefs.h. */ |
| 3116 | _ACEOF |
| 3117 | cat confdefs.h >>conftest.$ac_ext |
| 3118 | cat >>conftest.$ac_ext <<_ACEOF |
| 3119 | /* end confdefs.h. */ |
| 3120 | |
| 3121 | int |
| 3122 | main () |
| 3123 | { |
| 3124 | |
| 3125 | ; |
| 3126 | return 0; |
| 3127 | } |
| 3128 | _ACEOF |
| 3129 | rm -f conftest.$ac_objext |
| 3130 | if { (ac_try="$ac_compile" |
| 3131 | case "(($ac_try" in |
| 3132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3133 | *) ac_try_echo=$ac_try;; |
| 3134 | esac |
| 3135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3136 | (eval "$ac_compile") 2>conftest.er1 |
| 3137 | ac_status=$? |
| 3138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3139 | rm -f conftest.er1 |
| 3140 | cat conftest.err >&5 |
| 3141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3142 | (exit $ac_status); } && |
| 3143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3144 | { (case "(($ac_try" in |
| 3145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3146 | *) ac_try_echo=$ac_try;; |
| 3147 | esac |
| 3148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3149 | (eval "$ac_try") 2>&5 |
| 3150 | ac_status=$? |
| 3151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3152 | (exit $ac_status); }; } && |
| 3153 | { ac_try='test -s conftest.$ac_objext' |
| 3154 | { (case "(($ac_try" in |
| 3155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3156 | *) ac_try_echo=$ac_try;; |
| 3157 | esac |
| 3158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3159 | (eval "$ac_try") 2>&5 |
| 3160 | ac_status=$? |
| 3161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3162 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3163 | : |
| 3164 | else |
| 3165 | echo "$as_me: failed program was:" >&5 |
| 3166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3167 | |
| 3168 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3169 | CFLAGS="-g" |
| 3170 | cat >conftest.$ac_ext <<_ACEOF |
| 3171 | /* confdefs.h. */ |
| 3172 | _ACEOF |
| 3173 | cat confdefs.h >>conftest.$ac_ext |
| 3174 | cat >>conftest.$ac_ext <<_ACEOF |
| 3175 | /* end confdefs.h. */ |
| 3176 | |
| 3177 | int |
| 3178 | main () |
| 3179 | { |
| 3180 | |
| 3181 | ; |
| 3182 | return 0; |
| 3183 | } |
| 3184 | _ACEOF |
| 3185 | rm -f conftest.$ac_objext |
| 3186 | if { (ac_try="$ac_compile" |
| 3187 | case "(($ac_try" in |
| 3188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3189 | *) ac_try_echo=$ac_try;; |
| 3190 | esac |
| 3191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3192 | (eval "$ac_compile") 2>conftest.er1 |
| 3193 | ac_status=$? |
| 3194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3195 | rm -f conftest.er1 |
| 3196 | cat conftest.err >&5 |
| 3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3198 | (exit $ac_status); } && |
| 3199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3200 | { (case "(($ac_try" in |
| 3201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3202 | *) ac_try_echo=$ac_try;; |
| 3203 | esac |
| 3204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3205 | (eval "$ac_try") 2>&5 |
| 3206 | ac_status=$? |
| 3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3208 | (exit $ac_status); }; } && |
| 3209 | { ac_try='test -s conftest.$ac_objext' |
| 3210 | { (case "(($ac_try" in |
| 3211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3212 | *) ac_try_echo=$ac_try;; |
| 3213 | esac |
| 3214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3215 | (eval "$ac_try") 2>&5 |
| 3216 | ac_status=$? |
| 3217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3218 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3219 | ac_cv_prog_cc_g=yes |
| 3220 | else |
| 3221 | echo "$as_me: failed program was:" >&5 |
| 3222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3223 | |
| 3224 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3225 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3226 | |
| 3227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3228 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3229 | |
| 3230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3231 | fi |
| 3232 | |
| 3233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3234 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3235 | fi |
| 3236 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3237 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3238 | if test "$ac_test_CFLAGS" = set; then |
| 3239 | CFLAGS=$ac_save_CFLAGS |
| 3240 | elif test $ac_cv_prog_cc_g = yes; then |
| 3241 | if test "$GCC" = yes; then |
| 3242 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3243 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3244 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3245 | fi |
| 3246 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3247 | if test "$GCC" = yes; then |
| 3248 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3249 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3250 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3251 | fi |
| 3252 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3253 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3254 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3255 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3257 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3258 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3259 | ac_save_CC=$CC |
| 3260 | cat >conftest.$ac_ext <<_ACEOF |
| 3261 | /* confdefs.h. */ |
| 3262 | _ACEOF |
| 3263 | cat confdefs.h >>conftest.$ac_ext |
| 3264 | cat >>conftest.$ac_ext <<_ACEOF |
| 3265 | /* end confdefs.h. */ |
| 3266 | #include <stdarg.h> |
| 3267 | #include <stdio.h> |
| 3268 | #include <sys/types.h> |
| 3269 | #include <sys/stat.h> |
| 3270 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3271 | struct buf { int x; }; |
| 3272 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3273 | static char *e (p, i) |
| 3274 | char **p; |
| 3275 | int i; |
| 3276 | { |
| 3277 | return p[i]; |
| 3278 | } |
| 3279 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3280 | { |
| 3281 | char *s; |
| 3282 | va_list v; |
| 3283 | va_start (v,p); |
| 3284 | s = g (p, va_arg (v,int)); |
| 3285 | va_end (v); |
| 3286 | return s; |
| 3287 | } |
| 3288 | |
| 3289 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3290 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3291 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3292 | 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] | 3293 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3294 | 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] | 3295 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3296 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3298 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3299 | inside strings and character constants. */ |
| 3300 | #define FOO(x) 'x' |
| 3301 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3302 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3303 | int test (int i, double x); |
| 3304 | struct s1 {int (*f) (int a);}; |
| 3305 | struct s2 {int (*f) (double a);}; |
| 3306 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3307 | int argc; |
| 3308 | char **argv; |
| 3309 | int |
| 3310 | main () |
| 3311 | { |
| 3312 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3313 | ; |
| 3314 | return 0; |
| 3315 | } |
| 3316 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3317 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3318 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3319 | do |
| 3320 | CC="$ac_save_CC $ac_arg" |
| 3321 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3322 | if { (ac_try="$ac_compile" |
| 3323 | case "(($ac_try" in |
| 3324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3325 | *) ac_try_echo=$ac_try;; |
| 3326 | esac |
| 3327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3328 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3329 | ac_status=$? |
| 3330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3331 | rm -f conftest.er1 |
| 3332 | cat conftest.err >&5 |
| 3333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3334 | (exit $ac_status); } && |
| 3335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3336 | { (case "(($ac_try" in |
| 3337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3338 | *) ac_try_echo=$ac_try;; |
| 3339 | esac |
| 3340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3341 | (eval "$ac_try") 2>&5 |
| 3342 | ac_status=$? |
| 3343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3344 | (exit $ac_status); }; } && |
| 3345 | { ac_try='test -s conftest.$ac_objext' |
| 3346 | { (case "(($ac_try" in |
| 3347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3348 | *) ac_try_echo=$ac_try;; |
| 3349 | esac |
| 3350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3351 | (eval "$ac_try") 2>&5 |
| 3352 | ac_status=$? |
| 3353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3354 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3355 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3356 | else |
| 3357 | echo "$as_me: failed program was:" >&5 |
| 3358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3360 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3361 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3362 | |
| 3363 | rm -f core conftest.err conftest.$ac_objext |
| 3364 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3365 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3366 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3367 | CC=$ac_save_CC |
| 3368 | |
| 3369 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3370 | # AC_CACHE_VAL |
| 3371 | case "x$ac_cv_prog_cc_c89" in |
| 3372 | x) |
| 3373 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3374 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3375 | xno) |
| 3376 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3377 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3378 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3379 | CC="$CC $ac_cv_prog_cc_c89" |
| 3380 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3381 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3382 | esac |
| 3383 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3384 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3385 | ac_ext=c |
| 3386 | ac_cpp='$CPP $CPPFLAGS' |
| 3387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3390 | |
| 3391 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3392 | ac_ext=c |
| 3393 | ac_cpp='$CPP $CPPFLAGS' |
| 3394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3397 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3398 | 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] | 3399 | # On Suns, sometimes $CPP names a directory. |
| 3400 | if test -n "$CPP" && test -d "$CPP"; then |
| 3401 | CPP= |
| 3402 | fi |
| 3403 | if test -z "$CPP"; then |
| 3404 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3406 | else |
| 3407 | # Double quotes because CPP needs to be expanded |
| 3408 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3409 | do |
| 3410 | ac_preproc_ok=false |
| 3411 | for ac_c_preproc_warn_flag in '' yes |
| 3412 | do |
| 3413 | # Use a header file that comes with gcc, so configuring glibc |
| 3414 | # with a fresh cross-compiler works. |
| 3415 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3416 | # <limits.h> exists even on freestanding compilers. |
| 3417 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3418 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3419 | cat >conftest.$ac_ext <<_ACEOF |
| 3420 | /* confdefs.h. */ |
| 3421 | _ACEOF |
| 3422 | cat confdefs.h >>conftest.$ac_ext |
| 3423 | cat >>conftest.$ac_ext <<_ACEOF |
| 3424 | /* end confdefs.h. */ |
| 3425 | #ifdef __STDC__ |
| 3426 | # include <limits.h> |
| 3427 | #else |
| 3428 | # include <assert.h> |
| 3429 | #endif |
| 3430 | Syntax error |
| 3431 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3432 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3433 | case "(($ac_try" in |
| 3434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3435 | *) ac_try_echo=$ac_try;; |
| 3436 | esac |
| 3437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3438 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3439 | ac_status=$? |
| 3440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3441 | rm -f conftest.er1 |
| 3442 | cat conftest.err >&5 |
| 3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3444 | (exit $ac_status); } >/dev/null; then |
| 3445 | if test -s conftest.err; then |
| 3446 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3447 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3448 | else |
| 3449 | ac_cpp_err= |
| 3450 | fi |
| 3451 | else |
| 3452 | ac_cpp_err=yes |
| 3453 | fi |
| 3454 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3455 | : |
| 3456 | else |
| 3457 | echo "$as_me: failed program was:" >&5 |
| 3458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3459 | |
| 3460 | # Broken: fails on valid input. |
| 3461 | continue |
| 3462 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3463 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3464 | rm -f conftest.err conftest.$ac_ext |
| 3465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3466 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3467 | # can be detected and how. |
| 3468 | cat >conftest.$ac_ext <<_ACEOF |
| 3469 | /* confdefs.h. */ |
| 3470 | _ACEOF |
| 3471 | cat confdefs.h >>conftest.$ac_ext |
| 3472 | cat >>conftest.$ac_ext <<_ACEOF |
| 3473 | /* end confdefs.h. */ |
| 3474 | #include <ac_nonexistent.h> |
| 3475 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3476 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3477 | case "(($ac_try" in |
| 3478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3479 | *) ac_try_echo=$ac_try;; |
| 3480 | esac |
| 3481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3482 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3483 | ac_status=$? |
| 3484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3485 | rm -f conftest.er1 |
| 3486 | cat conftest.err >&5 |
| 3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3488 | (exit $ac_status); } >/dev/null; then |
| 3489 | if test -s conftest.err; then |
| 3490 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3492 | else |
| 3493 | ac_cpp_err= |
| 3494 | fi |
| 3495 | else |
| 3496 | ac_cpp_err=yes |
| 3497 | fi |
| 3498 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3499 | # Broken: success on invalid input. |
| 3500 | continue |
| 3501 | else |
| 3502 | echo "$as_me: failed program was:" >&5 |
| 3503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3504 | |
| 3505 | # Passes both tests. |
| 3506 | ac_preproc_ok=: |
| 3507 | break |
| 3508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3509 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3510 | rm -f conftest.err conftest.$ac_ext |
| 3511 | |
| 3512 | done |
| 3513 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3514 | rm -f conftest.err conftest.$ac_ext |
| 3515 | if $ac_preproc_ok; then |
| 3516 | break |
| 3517 | fi |
| 3518 | |
| 3519 | done |
| 3520 | ac_cv_prog_CPP=$CPP |
| 3521 | |
| 3522 | fi |
| 3523 | CPP=$ac_cv_prog_CPP |
| 3524 | else |
| 3525 | ac_cv_prog_CPP=$CPP |
| 3526 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3527 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3528 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3529 | ac_preproc_ok=false |
| 3530 | for ac_c_preproc_warn_flag in '' yes |
| 3531 | do |
| 3532 | # Use a header file that comes with gcc, so configuring glibc |
| 3533 | # with a fresh cross-compiler works. |
| 3534 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3535 | # <limits.h> exists even on freestanding compilers. |
| 3536 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3537 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3538 | cat >conftest.$ac_ext <<_ACEOF |
| 3539 | /* confdefs.h. */ |
| 3540 | _ACEOF |
| 3541 | cat confdefs.h >>conftest.$ac_ext |
| 3542 | cat >>conftest.$ac_ext <<_ACEOF |
| 3543 | /* end confdefs.h. */ |
| 3544 | #ifdef __STDC__ |
| 3545 | # include <limits.h> |
| 3546 | #else |
| 3547 | # include <assert.h> |
| 3548 | #endif |
| 3549 | Syntax error |
| 3550 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3551 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3552 | case "(($ac_try" in |
| 3553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3554 | *) ac_try_echo=$ac_try;; |
| 3555 | esac |
| 3556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3557 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3558 | ac_status=$? |
| 3559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3560 | rm -f conftest.er1 |
| 3561 | cat conftest.err >&5 |
| 3562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3563 | (exit $ac_status); } >/dev/null; then |
| 3564 | if test -s conftest.err; then |
| 3565 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3566 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3567 | else |
| 3568 | ac_cpp_err= |
| 3569 | fi |
| 3570 | else |
| 3571 | ac_cpp_err=yes |
| 3572 | fi |
| 3573 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3574 | : |
| 3575 | else |
| 3576 | echo "$as_me: failed program was:" >&5 |
| 3577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3578 | |
| 3579 | # Broken: fails on valid input. |
| 3580 | continue |
| 3581 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3582 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3583 | rm -f conftest.err conftest.$ac_ext |
| 3584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3585 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3586 | # can be detected and how. |
| 3587 | cat >conftest.$ac_ext <<_ACEOF |
| 3588 | /* confdefs.h. */ |
| 3589 | _ACEOF |
| 3590 | cat confdefs.h >>conftest.$ac_ext |
| 3591 | cat >>conftest.$ac_ext <<_ACEOF |
| 3592 | /* end confdefs.h. */ |
| 3593 | #include <ac_nonexistent.h> |
| 3594 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3595 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3596 | case "(($ac_try" in |
| 3597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3598 | *) ac_try_echo=$ac_try;; |
| 3599 | esac |
| 3600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3601 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3602 | ac_status=$? |
| 3603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3604 | rm -f conftest.er1 |
| 3605 | cat conftest.err >&5 |
| 3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3607 | (exit $ac_status); } >/dev/null; then |
| 3608 | if test -s conftest.err; then |
| 3609 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3610 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3611 | else |
| 3612 | ac_cpp_err= |
| 3613 | fi |
| 3614 | else |
| 3615 | ac_cpp_err=yes |
| 3616 | fi |
| 3617 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3618 | # Broken: success on invalid input. |
| 3619 | continue |
| 3620 | else |
| 3621 | echo "$as_me: failed program was:" >&5 |
| 3622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3623 | |
| 3624 | # Passes both tests. |
| 3625 | ac_preproc_ok=: |
| 3626 | break |
| 3627 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3628 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3629 | rm -f conftest.err conftest.$ac_ext |
| 3630 | |
| 3631 | done |
| 3632 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3633 | rm -f conftest.err conftest.$ac_ext |
| 3634 | if $ac_preproc_ok; then |
| 3635 | : |
| 3636 | else |
| 3637 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3638 | See \`config.log' for more details." >&5 |
| 3639 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3640 | See \`config.log' for more details." >&2;} |
| 3641 | { (exit 1); exit 1; }; } |
| 3642 | fi |
| 3643 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3644 | ac_ext=c |
| 3645 | ac_cpp='$CPP $CPPFLAGS' |
| 3646 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3647 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3648 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3649 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3651 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3652 | 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] | 3653 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3655 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3656 | # Extract the first word of "grep ggrep" to use in msg output |
| 3657 | if test -z "$GREP"; then |
| 3658 | set dummy grep ggrep; ac_prog_name=$2 |
| 3659 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3661 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3662 | ac_path_GREP_found=false |
| 3663 | # 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] | 3664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3665 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3666 | do |
| 3667 | IFS=$as_save_IFS |
| 3668 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3669 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3670 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3671 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3672 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3673 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3674 | # Check for GNU $ac_path_GREP |
| 3675 | case `"$ac_path_GREP" --version 2>&1` in |
| 3676 | *GNU*) |
| 3677 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3678 | *) |
| 3679 | ac_count=0 |
| 3680 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3681 | while : |
| 3682 | do |
| 3683 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3684 | mv "conftest.tmp" "conftest.in" |
| 3685 | cp "conftest.in" "conftest.nl" |
| 3686 | echo 'GREP' >> "conftest.nl" |
| 3687 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3688 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3689 | ac_count=`expr $ac_count + 1` |
| 3690 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3691 | # Best one so far, save it but keep looking for a better one |
| 3692 | ac_cv_path_GREP="$ac_path_GREP" |
| 3693 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3694 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3695 | # 10*(2^10) chars as input seems more than enough |
| 3696 | test $ac_count -gt 10 && break |
| 3697 | done |
| 3698 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3699 | esac |
| 3700 | |
| 3701 | |
| 3702 | $ac_path_GREP_found && break 3 |
| 3703 | done |
| 3704 | done |
| 3705 | |
| 3706 | done |
| 3707 | IFS=$as_save_IFS |
| 3708 | |
| 3709 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3710 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3711 | |
| 3712 | GREP="$ac_cv_path_GREP" |
| 3713 | if test -z "$GREP"; then |
| 3714 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3715 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3716 | { (exit 1); exit 1; }; } |
| 3717 | fi |
| 3718 | |
| 3719 | else |
| 3720 | ac_cv_path_GREP=$GREP |
| 3721 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3722 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3723 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3724 | fi |
| 3725 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3726 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3727 | GREP="$ac_cv_path_GREP" |
| 3728 | |
| 3729 | |
| 3730 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3731 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3732 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3734 | else |
| 3735 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3736 | then ac_cv_path_EGREP="$GREP -E" |
| 3737 | else |
| 3738 | # Extract the first word of "egrep" to use in msg output |
| 3739 | if test -z "$EGREP"; then |
| 3740 | set dummy egrep; ac_prog_name=$2 |
| 3741 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3743 | else |
| 3744 | ac_path_EGREP_found=false |
| 3745 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3747 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3748 | do |
| 3749 | IFS=$as_save_IFS |
| 3750 | test -z "$as_dir" && as_dir=. |
| 3751 | for ac_prog in egrep; do |
| 3752 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3753 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3754 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3755 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3756 | # Check for GNU $ac_path_EGREP |
| 3757 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3758 | *GNU*) |
| 3759 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3760 | *) |
| 3761 | ac_count=0 |
| 3762 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3763 | while : |
| 3764 | do |
| 3765 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3766 | mv "conftest.tmp" "conftest.in" |
| 3767 | cp "conftest.in" "conftest.nl" |
| 3768 | echo 'EGREP' >> "conftest.nl" |
| 3769 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3770 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3771 | ac_count=`expr $ac_count + 1` |
| 3772 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3773 | # Best one so far, save it but keep looking for a better one |
| 3774 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3775 | ac_path_EGREP_max=$ac_count |
| 3776 | fi |
| 3777 | # 10*(2^10) chars as input seems more than enough |
| 3778 | test $ac_count -gt 10 && break |
| 3779 | done |
| 3780 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3781 | esac |
| 3782 | |
| 3783 | |
| 3784 | $ac_path_EGREP_found && break 3 |
| 3785 | done |
| 3786 | done |
| 3787 | |
| 3788 | done |
| 3789 | IFS=$as_save_IFS |
| 3790 | |
| 3791 | |
| 3792 | fi |
| 3793 | |
| 3794 | EGREP="$ac_cv_path_EGREP" |
| 3795 | if test -z "$EGREP"; then |
| 3796 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3797 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3798 | { (exit 1); exit 1; }; } |
| 3799 | fi |
| 3800 | |
| 3801 | else |
| 3802 | ac_cv_path_EGREP=$EGREP |
| 3803 | fi |
| 3804 | |
| 3805 | |
| 3806 | fi |
| 3807 | fi |
| 3808 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3809 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3810 | EGREP="$ac_cv_path_EGREP" |
| 3811 | |
| 3812 | |
| 3813 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3814 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3815 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3817 | else |
| 3818 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3819 | /* confdefs.h. */ |
| 3820 | _ACEOF |
| 3821 | cat confdefs.h >>conftest.$ac_ext |
| 3822 | cat >>conftest.$ac_ext <<_ACEOF |
| 3823 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3824 | #include <stdlib.h> |
| 3825 | #include <stdarg.h> |
| 3826 | #include <string.h> |
| 3827 | #include <float.h> |
| 3828 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3829 | int |
| 3830 | main () |
| 3831 | { |
| 3832 | |
| 3833 | ; |
| 3834 | return 0; |
| 3835 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3836 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3837 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3838 | if { (ac_try="$ac_compile" |
| 3839 | case "(($ac_try" in |
| 3840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3841 | *) ac_try_echo=$ac_try;; |
| 3842 | esac |
| 3843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3844 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3845 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3847 | rm -f conftest.er1 |
| 3848 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3850 | (exit $ac_status); } && |
| 3851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3852 | { (case "(($ac_try" in |
| 3853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3854 | *) ac_try_echo=$ac_try;; |
| 3855 | esac |
| 3856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3857 | (eval "$ac_try") 2>&5 |
| 3858 | ac_status=$? |
| 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3860 | (exit $ac_status); }; } && |
| 3861 | { ac_try='test -s conftest.$ac_objext' |
| 3862 | { (case "(($ac_try" in |
| 3863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3864 | *) ac_try_echo=$ac_try;; |
| 3865 | esac |
| 3866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3867 | (eval "$ac_try") 2>&5 |
| 3868 | ac_status=$? |
| 3869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3870 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3871 | ac_cv_header_stdc=yes |
| 3872 | else |
| 3873 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3876 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3877 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3878 | |
| 3879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3880 | |
| 3881 | if test $ac_cv_header_stdc = yes; then |
| 3882 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3883 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3884 | /* confdefs.h. */ |
| 3885 | _ACEOF |
| 3886 | cat confdefs.h >>conftest.$ac_ext |
| 3887 | cat >>conftest.$ac_ext <<_ACEOF |
| 3888 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3889 | #include <string.h> |
| 3890 | |
| 3891 | _ACEOF |
| 3892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3893 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3894 | : |
| 3895 | else |
| 3896 | ac_cv_header_stdc=no |
| 3897 | fi |
| 3898 | rm -f conftest* |
| 3899 | |
| 3900 | fi |
| 3901 | |
| 3902 | if test $ac_cv_header_stdc = yes; then |
| 3903 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3904 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3905 | /* confdefs.h. */ |
| 3906 | _ACEOF |
| 3907 | cat confdefs.h >>conftest.$ac_ext |
| 3908 | cat >>conftest.$ac_ext <<_ACEOF |
| 3909 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3910 | #include <stdlib.h> |
| 3911 | |
| 3912 | _ACEOF |
| 3913 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3914 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3915 | : |
| 3916 | else |
| 3917 | ac_cv_header_stdc=no |
| 3918 | fi |
| 3919 | rm -f conftest* |
| 3920 | |
| 3921 | fi |
| 3922 | |
| 3923 | if test $ac_cv_header_stdc = yes; then |
| 3924 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3925 | if test "$cross_compiling" = yes; then |
| 3926 | : |
| 3927 | else |
| 3928 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3929 | /* confdefs.h. */ |
| 3930 | _ACEOF |
| 3931 | cat confdefs.h >>conftest.$ac_ext |
| 3932 | cat >>conftest.$ac_ext <<_ACEOF |
| 3933 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3934 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3935 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3936 | #if ((' ' & 0x0FF) == 0x020) |
| 3937 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3938 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3939 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3940 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3941 | (('a' <= (c) && (c) <= 'i') \ |
| 3942 | || ('j' <= (c) && (c) <= 'r') \ |
| 3943 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3944 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3945 | #endif |
| 3946 | |
| 3947 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3948 | int |
| 3949 | main () |
| 3950 | { |
| 3951 | int i; |
| 3952 | for (i = 0; i < 256; i++) |
| 3953 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3954 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3955 | return 2; |
| 3956 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3957 | } |
| 3958 | _ACEOF |
| 3959 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3960 | if { (ac_try="$ac_link" |
| 3961 | case "(($ac_try" in |
| 3962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3963 | *) ac_try_echo=$ac_try;; |
| 3964 | esac |
| 3965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3966 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3967 | ac_status=$? |
| 3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3970 | { (case "(($ac_try" in |
| 3971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3972 | *) ac_try_echo=$ac_try;; |
| 3973 | esac |
| 3974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3975 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3976 | ac_status=$? |
| 3977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3978 | (exit $ac_status); }; }; then |
| 3979 | : |
| 3980 | else |
| 3981 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3982 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3984 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3985 | ( exit $ac_status ) |
| 3986 | ac_cv_header_stdc=no |
| 3987 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3988 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3989 | fi |
| 3990 | |
| 3991 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3992 | fi |
| 3993 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3994 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3995 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3996 | if test $ac_cv_header_stdc = yes; then |
| 3997 | |
| 3998 | cat >>confdefs.h <<\_ACEOF |
| 3999 | #define STDC_HEADERS 1 |
| 4000 | _ACEOF |
| 4001 | |
| 4002 | fi |
| 4003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4004 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4005 | |
| 4006 | |
| 4007 | |
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | |
| 4012 | |
| 4013 | |
| 4014 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4015 | inttypes.h stdint.h unistd.h |
| 4016 | do |
| 4017 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4018 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4020 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4022 | else |
| 4023 | cat >conftest.$ac_ext <<_ACEOF |
| 4024 | /* confdefs.h. */ |
| 4025 | _ACEOF |
| 4026 | cat confdefs.h >>conftest.$ac_ext |
| 4027 | cat >>conftest.$ac_ext <<_ACEOF |
| 4028 | /* end confdefs.h. */ |
| 4029 | $ac_includes_default |
| 4030 | |
| 4031 | #include <$ac_header> |
| 4032 | _ACEOF |
| 4033 | rm -f conftest.$ac_objext |
| 4034 | if { (ac_try="$ac_compile" |
| 4035 | case "(($ac_try" in |
| 4036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4037 | *) ac_try_echo=$ac_try;; |
| 4038 | esac |
| 4039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4040 | (eval "$ac_compile") 2>conftest.er1 |
| 4041 | ac_status=$? |
| 4042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4043 | rm -f conftest.er1 |
| 4044 | cat conftest.err >&5 |
| 4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4046 | (exit $ac_status); } && |
| 4047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4048 | { (case "(($ac_try" in |
| 4049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4050 | *) ac_try_echo=$ac_try;; |
| 4051 | esac |
| 4052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4053 | (eval "$ac_try") 2>&5 |
| 4054 | ac_status=$? |
| 4055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4056 | (exit $ac_status); }; } && |
| 4057 | { ac_try='test -s conftest.$ac_objext' |
| 4058 | { (case "(($ac_try" in |
| 4059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4060 | *) ac_try_echo=$ac_try;; |
| 4061 | esac |
| 4062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4063 | (eval "$ac_try") 2>&5 |
| 4064 | ac_status=$? |
| 4065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4066 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4067 | eval "$as_ac_Header=yes" |
| 4068 | else |
| 4069 | echo "$as_me: failed program was:" >&5 |
| 4070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4071 | |
| 4072 | eval "$as_ac_Header=no" |
| 4073 | fi |
| 4074 | |
| 4075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4076 | fi |
| 4077 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4078 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4079 | echo "${ECHO_T}$ac_res" >&6; } |
| 4080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4081 | cat >>confdefs.h <<_ACEOF |
| 4082 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4083 | _ACEOF |
| 4084 | |
| 4085 | fi |
| 4086 | |
| 4087 | done |
| 4088 | |
| 4089 | |
| 4090 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4091 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4092 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4094 | else |
| 4095 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4096 | cat >conftest.$ac_ext <<_ACEOF |
| 4097 | /* confdefs.h. */ |
| 4098 | _ACEOF |
| 4099 | cat confdefs.h >>conftest.$ac_ext |
| 4100 | cat >>conftest.$ac_ext <<_ACEOF |
| 4101 | /* end confdefs.h. */ |
| 4102 | #include <sys/types.h> |
| 4103 | #include <sys/param.h> |
| 4104 | |
| 4105 | int |
| 4106 | main () |
| 4107 | { |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4108 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4109 | bogus endian macros |
| 4110 | #endif |
| 4111 | |
| 4112 | ; |
| 4113 | return 0; |
| 4114 | } |
| 4115 | _ACEOF |
| 4116 | rm -f conftest.$ac_objext |
| 4117 | if { (ac_try="$ac_compile" |
| 4118 | case "(($ac_try" in |
| 4119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4120 | *) ac_try_echo=$ac_try;; |
| 4121 | esac |
| 4122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4123 | (eval "$ac_compile") 2>conftest.er1 |
| 4124 | ac_status=$? |
| 4125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4126 | rm -f conftest.er1 |
| 4127 | cat conftest.err >&5 |
| 4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4129 | (exit $ac_status); } && |
| 4130 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4131 | { (case "(($ac_try" in |
| 4132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4133 | *) ac_try_echo=$ac_try;; |
| 4134 | esac |
| 4135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4136 | (eval "$ac_try") 2>&5 |
| 4137 | ac_status=$? |
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4139 | (exit $ac_status); }; } && |
| 4140 | { ac_try='test -s conftest.$ac_objext' |
| 4141 | { (case "(($ac_try" in |
| 4142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4143 | *) ac_try_echo=$ac_try;; |
| 4144 | esac |
| 4145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4146 | (eval "$ac_try") 2>&5 |
| 4147 | ac_status=$? |
| 4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4149 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4150 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4151 | cat >conftest.$ac_ext <<_ACEOF |
| 4152 | /* confdefs.h. */ |
| 4153 | _ACEOF |
| 4154 | cat confdefs.h >>conftest.$ac_ext |
| 4155 | cat >>conftest.$ac_ext <<_ACEOF |
| 4156 | /* end confdefs.h. */ |
| 4157 | #include <sys/types.h> |
| 4158 | #include <sys/param.h> |
| 4159 | |
| 4160 | int |
| 4161 | main () |
| 4162 | { |
| 4163 | #if BYTE_ORDER != BIG_ENDIAN |
| 4164 | not big endian |
| 4165 | #endif |
| 4166 | |
| 4167 | ; |
| 4168 | return 0; |
| 4169 | } |
| 4170 | _ACEOF |
| 4171 | rm -f conftest.$ac_objext |
| 4172 | if { (ac_try="$ac_compile" |
| 4173 | case "(($ac_try" in |
| 4174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4175 | *) ac_try_echo=$ac_try;; |
| 4176 | esac |
| 4177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4178 | (eval "$ac_compile") 2>conftest.er1 |
| 4179 | ac_status=$? |
| 4180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4181 | rm -f conftest.er1 |
| 4182 | cat conftest.err >&5 |
| 4183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4184 | (exit $ac_status); } && |
| 4185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4186 | { (case "(($ac_try" in |
| 4187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4188 | *) ac_try_echo=$ac_try;; |
| 4189 | esac |
| 4190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4191 | (eval "$ac_try") 2>&5 |
| 4192 | ac_status=$? |
| 4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4194 | (exit $ac_status); }; } && |
| 4195 | { ac_try='test -s conftest.$ac_objext' |
| 4196 | { (case "(($ac_try" in |
| 4197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4198 | *) ac_try_echo=$ac_try;; |
| 4199 | esac |
| 4200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4201 | (eval "$ac_try") 2>&5 |
| 4202 | ac_status=$? |
| 4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4204 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4205 | ac_cv_c_bigendian=yes |
| 4206 | else |
| 4207 | echo "$as_me: failed program was:" >&5 |
| 4208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4209 | |
| 4210 | ac_cv_c_bigendian=no |
| 4211 | fi |
| 4212 | |
| 4213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4214 | else |
| 4215 | echo "$as_me: failed program was:" >&5 |
| 4216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4217 | |
| 4218 | # It does not; compile a test program. |
| 4219 | if test "$cross_compiling" = yes; then |
| 4220 | # try to guess the endianness by grepping values into an object file |
| 4221 | ac_cv_c_bigendian=unknown |
| 4222 | cat >conftest.$ac_ext <<_ACEOF |
| 4223 | /* confdefs.h. */ |
| 4224 | _ACEOF |
| 4225 | cat confdefs.h >>conftest.$ac_ext |
| 4226 | cat >>conftest.$ac_ext <<_ACEOF |
| 4227 | /* end confdefs.h. */ |
| 4228 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4229 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4230 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4231 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4232 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4233 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4234 | int |
| 4235 | main () |
| 4236 | { |
| 4237 | _ascii (); _ebcdic (); |
| 4238 | ; |
| 4239 | return 0; |
| 4240 | } |
| 4241 | _ACEOF |
| 4242 | rm -f conftest.$ac_objext |
| 4243 | if { (ac_try="$ac_compile" |
| 4244 | case "(($ac_try" in |
| 4245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4246 | *) ac_try_echo=$ac_try;; |
| 4247 | esac |
| 4248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4249 | (eval "$ac_compile") 2>conftest.er1 |
| 4250 | ac_status=$? |
| 4251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4252 | rm -f conftest.er1 |
| 4253 | cat conftest.err >&5 |
| 4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4255 | (exit $ac_status); } && |
| 4256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4257 | { (case "(($ac_try" in |
| 4258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4259 | *) ac_try_echo=$ac_try;; |
| 4260 | esac |
| 4261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4262 | (eval "$ac_try") 2>&5 |
| 4263 | ac_status=$? |
| 4264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4265 | (exit $ac_status); }; } && |
| 4266 | { ac_try='test -s conftest.$ac_objext' |
| 4267 | { (case "(($ac_try" in |
| 4268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4269 | *) ac_try_echo=$ac_try;; |
| 4270 | esac |
| 4271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4272 | (eval "$ac_try") 2>&5 |
| 4273 | ac_status=$? |
| 4274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4275 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4276 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4277 | ac_cv_c_bigendian=yes |
| 4278 | fi |
| 4279 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4280 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4281 | ac_cv_c_bigendian=no |
| 4282 | else |
| 4283 | # finding both strings is unlikely to happen, but who knows? |
| 4284 | ac_cv_c_bigendian=unknown |
| 4285 | fi |
| 4286 | fi |
| 4287 | else |
| 4288 | echo "$as_me: failed program was:" >&5 |
| 4289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4290 | |
| 4291 | |
| 4292 | fi |
| 4293 | |
| 4294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4295 | else |
| 4296 | cat >conftest.$ac_ext <<_ACEOF |
| 4297 | /* confdefs.h. */ |
| 4298 | _ACEOF |
| 4299 | cat confdefs.h >>conftest.$ac_ext |
| 4300 | cat >>conftest.$ac_ext <<_ACEOF |
| 4301 | /* end confdefs.h. */ |
| 4302 | $ac_includes_default |
| 4303 | int |
| 4304 | main () |
| 4305 | { |
| 4306 | |
| 4307 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4308 | union |
| 4309 | { |
| 4310 | long int l; |
| 4311 | char c[sizeof (long int)]; |
| 4312 | } u; |
| 4313 | u.l = 1; |
| 4314 | return u.c[sizeof (long int) - 1] == 1; |
| 4315 | |
| 4316 | ; |
| 4317 | return 0; |
| 4318 | } |
| 4319 | _ACEOF |
| 4320 | rm -f conftest$ac_exeext |
| 4321 | if { (ac_try="$ac_link" |
| 4322 | case "(($ac_try" in |
| 4323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4324 | *) ac_try_echo=$ac_try;; |
| 4325 | esac |
| 4326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4327 | (eval "$ac_link") 2>&5 |
| 4328 | ac_status=$? |
| 4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4330 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4331 | { (case "(($ac_try" in |
| 4332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4333 | *) ac_try_echo=$ac_try;; |
| 4334 | esac |
| 4335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4336 | (eval "$ac_try") 2>&5 |
| 4337 | ac_status=$? |
| 4338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4339 | (exit $ac_status); }; }; then |
| 4340 | ac_cv_c_bigendian=no |
| 4341 | else |
| 4342 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4343 | echo "$as_me: failed program was:" >&5 |
| 4344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4345 | |
| 4346 | ( exit $ac_status ) |
| 4347 | ac_cv_c_bigendian=yes |
| 4348 | fi |
| 4349 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4350 | fi |
| 4351 | |
| 4352 | |
| 4353 | fi |
| 4354 | |
| 4355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4356 | fi |
| 4357 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4358 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4359 | case $ac_cv_c_bigendian in |
| 4360 | yes) |
| 4361 | ENDIAN=big |
| 4362 | ;; |
| 4363 | no) |
| 4364 | ENDIAN=little |
| 4365 | ;; |
| 4366 | *) |
| 4367 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4368 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4369 | echo "$as_me: error: unknown endianness |
| 4370 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4371 | { (exit 1); exit 1; }; } ;; |
| 4372 | esac |
| 4373 | |
| 4374 | |
| 4375 | if test "$cross_compiling" = yes; then |
| 4376 | LLVM_CROSS_COMPILING=1 |
| 4377 | |
| 4378 | |
| 4379 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4380 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4381 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4383 | else |
| 4384 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4385 | ac_cv_build_exeext=.exe |
| 4386 | else |
| 4387 | ac_build_prefix=${build_alias}- |
| 4388 | |
| 4389 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4390 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4391 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4393 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4395 | else |
| 4396 | if test -n "$BUILD_CC"; then |
| 4397 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4398 | else |
| 4399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4400 | for as_dir in $PATH |
| 4401 | do |
| 4402 | IFS=$as_save_IFS |
| 4403 | test -z "$as_dir" && as_dir=. |
| 4404 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4406 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4408 | break 2 |
| 4409 | fi |
| 4410 | done |
| 4411 | done |
| 4412 | IFS=$as_save_IFS |
| 4413 | |
| 4414 | fi |
| 4415 | fi |
| 4416 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4417 | if test -n "$BUILD_CC"; then |
| 4418 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4419 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4420 | else |
| 4421 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4422 | echo "${ECHO_T}no" >&6; } |
| 4423 | fi |
| 4424 | |
| 4425 | |
| 4426 | if test -z "$BUILD_CC"; then |
| 4427 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4428 | set dummy gcc; ac_word=$2 |
| 4429 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4431 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4433 | else |
| 4434 | if test -n "$BUILD_CC"; then |
| 4435 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4436 | else |
| 4437 | 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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4444 | ac_cv_prog_BUILD_CC="gcc" |
| 4445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4446 | break 2 |
| 4447 | fi |
| 4448 | done |
| 4449 | done |
| 4450 | IFS=$as_save_IFS |
| 4451 | |
| 4452 | fi |
| 4453 | fi |
| 4454 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4455 | if test -n "$BUILD_CC"; then |
| 4456 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4457 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4458 | else |
| 4459 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4460 | echo "${ECHO_T}no" >&6; } |
| 4461 | fi |
| 4462 | |
| 4463 | |
| 4464 | if test -z "$BUILD_CC"; then |
| 4465 | # Extract the first word of "cc", so it can be a program name with args. |
| 4466 | set dummy cc; ac_word=$2 |
| 4467 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4469 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4471 | else |
| 4472 | if test -n "$BUILD_CC"; then |
| 4473 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4474 | else |
| 4475 | ac_prog_rejected=no |
| 4476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4477 | for as_dir in $PATH |
| 4478 | do |
| 4479 | IFS=$as_save_IFS |
| 4480 | test -z "$as_dir" && as_dir=. |
| 4481 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4483 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4484 | ac_prog_rejected=yes |
| 4485 | continue |
| 4486 | fi |
| 4487 | ac_cv_prog_BUILD_CC="cc" |
| 4488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4489 | break 2 |
| 4490 | fi |
| 4491 | done |
| 4492 | done |
| 4493 | IFS=$as_save_IFS |
| 4494 | |
| 4495 | if test $ac_prog_rejected = yes; then |
| 4496 | # We found a bogon in the path, so make sure we never use it. |
| 4497 | set dummy $ac_cv_prog_BUILD_CC |
| 4498 | shift |
| 4499 | if test $# != 0; then |
| 4500 | # We chose a different compiler from the bogus one. |
| 4501 | # However, it has the same basename, so the bogon will be chosen |
| 4502 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4503 | shift |
| 4504 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4505 | fi |
| 4506 | fi |
| 4507 | fi |
| 4508 | fi |
| 4509 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4510 | if test -n "$BUILD_CC"; then |
| 4511 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4512 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4513 | else |
| 4514 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4515 | echo "${ECHO_T}no" >&6; } |
| 4516 | fi |
| 4517 | |
| 4518 | |
| 4519 | fi |
| 4520 | fi |
| 4521 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4522 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4523 | { (exit 1); exit 1; }; } |
| 4524 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4525 | rm -f conftest* |
| 4526 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4527 | ac_cv_build_exeext= |
| 4528 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4529 | (eval $ac_build_link) 2>&5 |
| 4530 | ac_status=$? |
| 4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4532 | (exit $ac_status); }; then |
| 4533 | for file in conftest.*; do |
| 4534 | case $file in |
| 4535 | *.c | *.o | *.obj) ;; |
| 4536 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4537 | esac |
| 4538 | done |
| 4539 | else |
| 4540 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4541 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4542 | { (exit 1); exit 1; }; } |
| 4543 | fi |
| 4544 | rm -f conftest* |
| 4545 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4546 | fi |
| 4547 | fi |
| 4548 | |
| 4549 | BUILD_EXEEXT="" |
| 4550 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4551 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4552 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4553 | ac_build_exeext=$BUILD_EXEEXT |
| 4554 | |
| 4555 | else |
| 4556 | LLVM_CROSS_COMPILING=0 |
| 4557 | |
| 4558 | fi |
| 4559 | |
Reid Spencer | 0b1e466 | 2007-04-02 15:41:39 +0000 | [diff] [blame] | 4560 | if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4561 | cvsbuild="yes" |
| 4562 | optimize="no" |
| 4563 | CVSBUILD=CVSBUILD=1 |
| 4564 | |
| 4565 | else |
| 4566 | cvsbuild="no" |
| 4567 | optimize="yes" |
| 4568 | fi |
| 4569 | |
| 4570 | |
| 4571 | # Check whether --enable-optimized was given. |
| 4572 | if test "${enable_optimized+set}" = set; then |
| 4573 | enableval=$enable_optimized; |
| 4574 | else |
| 4575 | enableval=$optimize |
| 4576 | fi |
| 4577 | |
| 4578 | if test ${enableval} = "no" ; then |
| 4579 | ENABLE_OPTIMIZED= |
| 4580 | |
| 4581 | else |
| 4582 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4583 | |
| 4584 | fi |
| 4585 | |
| 4586 | # Check whether --enable-assertions was given. |
| 4587 | if test "${enable_assertions+set}" = set; then |
| 4588 | enableval=$enable_assertions; |
| 4589 | else |
| 4590 | enableval="yes" |
| 4591 | fi |
| 4592 | |
| 4593 | if test ${enableval} = "yes" ; then |
| 4594 | DISABLE_ASSERTIONS= |
| 4595 | |
| 4596 | else |
| 4597 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4598 | |
| 4599 | fi |
| 4600 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4601 | # Check whether --enable-expensive-checks was given. |
| 4602 | if test "${enable_expensive_checks+set}" = set; then |
| 4603 | enableval=$enable_expensive_checks; |
| 4604 | else |
| 4605 | enableval="no" |
| 4606 | fi |
| 4607 | |
| 4608 | if test ${enableval} = "yes" ; then |
| 4609 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4610 | |
| 4611 | EXPENSIVE_CHECKS=yes |
| 4612 | |
| 4613 | else |
| 4614 | ENABLE_EXPENSIVE_CHECKS= |
| 4615 | |
| 4616 | EXPENSIVE_CHECKS=no |
| 4617 | |
| 4618 | fi |
| 4619 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4620 | # Check whether --enable-debug-runtime was given. |
| 4621 | if test "${enable_debug_runtime+set}" = set; then |
| 4622 | enableval=$enable_debug_runtime; |
| 4623 | else |
| 4624 | enableval=no |
| 4625 | fi |
| 4626 | |
| 4627 | if test ${enableval} = "no" ; then |
| 4628 | DEBUG_RUNTIME= |
| 4629 | |
| 4630 | else |
| 4631 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4632 | |
| 4633 | fi |
| 4634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4635 | # Check whether --enable-jit was given. |
| 4636 | if test "${enable_jit+set}" = set; then |
| 4637 | enableval=$enable_jit; |
| 4638 | else |
| 4639 | enableval=default |
| 4640 | fi |
| 4641 | |
| 4642 | if test ${enableval} = "no" |
| 4643 | then |
| 4644 | JIT= |
| 4645 | |
| 4646 | else |
| 4647 | case "$llvm_cv_target_arch" in |
| 4648 | x86) TARGET_HAS_JIT=1 |
| 4649 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4650 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4651 | ;; |
| 4652 | PowerPC) TARGET_HAS_JIT=1 |
| 4653 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4654 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4655 | ;; |
| 4656 | Alpha) TARGET_HAS_JIT=1 |
| 4657 | ;; |
| 4658 | IA64) TARGET_HAS_JIT=0 |
| 4659 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4660 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4661 | ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4662 | Mips) TARGET_HAS_JIT=0 |
| 4663 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4664 | *) TARGET_HAS_JIT=0 |
| 4665 | ;; |
| 4666 | esac |
| 4667 | fi |
| 4668 | |
| 4669 | # Check whether --enable-doxygen was given. |
| 4670 | if test "${enable_doxygen+set}" = set; then |
| 4671 | enableval=$enable_doxygen; |
| 4672 | else |
| 4673 | enableval=default |
| 4674 | fi |
| 4675 | |
| 4676 | case "$enableval" in |
| 4677 | yes) ENABLE_DOXYGEN=1 |
| 4678 | ;; |
| 4679 | no) ENABLE_DOXYGEN=0 |
| 4680 | ;; |
| 4681 | default) ENABLE_DOXYGEN=0 |
| 4682 | ;; |
| 4683 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4684 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4685 | { (exit 1); exit 1; }; } ;; |
| 4686 | esac |
| 4687 | |
| 4688 | # Check whether --enable-threads was given. |
| 4689 | if test "${enable_threads+set}" = set; then |
| 4690 | enableval=$enable_threads; |
| 4691 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4692 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4693 | fi |
| 4694 | |
| 4695 | case "$enableval" in |
| 4696 | yes) ENABLE_THREADS=1 |
| 4697 | ;; |
| 4698 | no) ENABLE_THREADS=0 |
| 4699 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4700 | default) ENABLE_THREADS=1 |
| 4701 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4702 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4703 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4704 | { (exit 1); exit 1; }; } ;; |
| 4705 | esac |
| 4706 | |
| 4707 | cat >>confdefs.h <<_ACEOF |
| 4708 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4709 | _ACEOF |
| 4710 | |
| 4711 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4712 | # Check whether --enable-pic was given. |
| 4713 | if test "${enable_pic+set}" = set; then |
| 4714 | enableval=$enable_pic; |
| 4715 | else |
| 4716 | enableval=default |
| 4717 | fi |
| 4718 | |
| 4719 | case "$enableval" in |
| 4720 | yes) ENABLE_PIC=1 |
| 4721 | ;; |
| 4722 | no) ENABLE_PIC=0 |
| 4723 | ;; |
| 4724 | default) ENABLE_PIC=0 |
| 4725 | ;; |
| 4726 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4727 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4728 | { (exit 1); exit 1; }; } ;; |
| 4729 | esac |
| 4730 | |
| 4731 | cat >>confdefs.h <<_ACEOF |
| 4732 | #define ENABLE_PIC $ENABLE_PIC |
| 4733 | _ACEOF |
| 4734 | |
| 4735 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4736 | TARGETS_TO_BUILD="" |
| 4737 | # Check whether --enable-targets was given. |
| 4738 | if test "${enable_targets+set}" = set; then |
| 4739 | enableval=$enable_targets; |
| 4740 | else |
| 4741 | enableval=all |
| 4742 | fi |
| 4743 | |
| 4744 | case "$enableval" in |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame] | 4745 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4746 | host-only) |
| 4747 | case "$llvm_cv_target_arch" in |
| 4748 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4749 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4750 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4751 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4752 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4753 | IA64) TARGETS_TO_BUILD="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4754 | ARM) TARGETS_TO_BUILD="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4755 | Mips) TARGETS_TO_BUILD="Mips" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4756 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4757 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4758 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4759 | { (exit 1); exit 1; }; } ;; |
| 4760 | esac |
| 4761 | ;; |
| 4762 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4763 | case "$a_target" in |
| 4764 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4765 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4766 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4767 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4768 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4769 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4770 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4771 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4772 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame] | 4773 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4774 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4775 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4776 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4777 | { (exit 1); exit 1; }; } ;; |
| 4778 | esac |
| 4779 | done |
| 4780 | ;; |
| 4781 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4782 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4783 | |
| 4784 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4785 | # Check whether --enable-cbe-printf-a was given. |
| 4786 | if test "${enable_cbe_printf_a+set}" = set; then |
| 4787 | enableval=$enable_cbe_printf_a; |
| 4788 | else |
| 4789 | enableval=default |
| 4790 | fi |
| 4791 | |
| 4792 | case "$enableval" in |
| 4793 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4794 | ;; |
| 4795 | no) ENABLE_CBE_PRINTF_A=0 |
| 4796 | ;; |
| 4797 | default) ENABLE_CBE_PRINTF_A=1 |
| 4798 | ;; |
| 4799 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4800 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4801 | { (exit 1); exit 1; }; } ;; |
| 4802 | esac |
| 4803 | |
| 4804 | cat >>confdefs.h <<_ACEOF |
| 4805 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4806 | _ACEOF |
| 4807 | |
| 4808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4809 | |
| 4810 | # Check whether --with-llvmgccdir was given. |
| 4811 | if test "${with_llvmgccdir+set}" = set; then |
| 4812 | withval=$with_llvmgccdir; |
| 4813 | else |
| 4814 | withval=default |
| 4815 | fi |
| 4816 | |
| 4817 | case "$withval" in |
| 4818 | default) WITH_LLVMGCCDIR=default ;; |
| 4819 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4820 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4821 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4822 | { (exit 1); exit 1; }; } ;; |
| 4823 | esac |
| 4824 | |
| 4825 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4826 | # Check whether --with-llvmgcc was given. |
| 4827 | if test "${with_llvmgcc+set}" = set; then |
| 4828 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 4829 | WITH_LLVMGCCDIR="" |
| 4830 | fi |
| 4831 | |
| 4832 | |
| 4833 | |
| 4834 | # Check whether --with-llvmgxx was given. |
| 4835 | if test "${with_llvmgxx+set}" = set; then |
| 4836 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 4837 | WITH_LLVMGCCDIR="" |
| 4838 | fi |
| 4839 | |
| 4840 | |
| 4841 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 4842 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 4843 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 4844 | { (exit 1); exit 1; }; }; |
| 4845 | fi |
| 4846 | |
| 4847 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 4848 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 4849 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 4850 | { (exit 1); exit 1; }; }; |
| 4851 | fi |
| 4852 | |
| 4853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4854 | # Check whether --with-extra-options was given. |
| 4855 | if test "${with_extra_options+set}" = set; then |
| 4856 | withval=$with_extra_options; |
| 4857 | else |
| 4858 | withval=default |
| 4859 | fi |
| 4860 | |
| 4861 | case "$withval" in |
| 4862 | default) EXTRA_OPTIONS= ;; |
| 4863 | *) EXTRA_OPTIONS=$withval ;; |
| 4864 | esac |
| 4865 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 4866 | |
| 4867 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 4868 | # Check whether --enable-bindings was given. |
| 4869 | if test "${enable_bindings+set}" = set; then |
| 4870 | enableval=$enable_bindings; |
| 4871 | else |
| 4872 | enableval=default |
| 4873 | fi |
| 4874 | |
| 4875 | BINDINGS_TO_BUILD="" |
| 4876 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 4877 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 4878 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 4879 | none | no) BINDINGS_TO_BUILD="" ;; |
| 4880 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4881 | case "$a_binding" in |
| 4882 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 4883 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 4884 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 4885 | { (exit 1); exit 1; }; } ;; |
| 4886 | esac |
| 4887 | done |
| 4888 | ;; |
| 4889 | esac |
| 4890 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4891 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 4892 | # Check whether --with-ocaml-libdir was given. |
| 4893 | if test "${with_ocaml_libdir+set}" = set; then |
| 4894 | withval=$with_ocaml_libdir; |
| 4895 | else |
| 4896 | withval=auto |
| 4897 | fi |
| 4898 | |
| 4899 | case "$withval" in |
| 4900 | auto) with_ocaml_libdir="$withval" ;; |
| 4901 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 4902 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 4903 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 4904 | { (exit 1); exit 1; }; } ;; |
| 4905 | esac |
| 4906 | |
| 4907 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4908 | ac_ext=c |
| 4909 | ac_cpp='$CPP $CPPFLAGS' |
| 4910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4913 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4914 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 4915 | # On Suns, sometimes $CPP names a directory. |
| 4916 | if test -n "$CPP" && test -d "$CPP"; then |
| 4917 | CPP= |
| 4918 | fi |
| 4919 | if test -z "$CPP"; then |
| 4920 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4922 | else |
| 4923 | # Double quotes because CPP needs to be expanded |
| 4924 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4925 | do |
| 4926 | ac_preproc_ok=false |
| 4927 | for ac_c_preproc_warn_flag in '' yes |
| 4928 | do |
| 4929 | # Use a header file that comes with gcc, so configuring glibc |
| 4930 | # with a fresh cross-compiler works. |
| 4931 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4932 | # <limits.h> exists even on freestanding compilers. |
| 4933 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4934 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4935 | cat >conftest.$ac_ext <<_ACEOF |
| 4936 | /* confdefs.h. */ |
| 4937 | _ACEOF |
| 4938 | cat confdefs.h >>conftest.$ac_ext |
| 4939 | cat >>conftest.$ac_ext <<_ACEOF |
| 4940 | /* end confdefs.h. */ |
| 4941 | #ifdef __STDC__ |
| 4942 | # include <limits.h> |
| 4943 | #else |
| 4944 | # include <assert.h> |
| 4945 | #endif |
| 4946 | Syntax error |
| 4947 | _ACEOF |
| 4948 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4949 | case "(($ac_try" in |
| 4950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4951 | *) ac_try_echo=$ac_try;; |
| 4952 | esac |
| 4953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4954 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4955 | ac_status=$? |
| 4956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4957 | rm -f conftest.er1 |
| 4958 | cat conftest.err >&5 |
| 4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4960 | (exit $ac_status); } >/dev/null; then |
| 4961 | if test -s conftest.err; then |
| 4962 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4963 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4964 | else |
| 4965 | ac_cpp_err= |
| 4966 | fi |
| 4967 | else |
| 4968 | ac_cpp_err=yes |
| 4969 | fi |
| 4970 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4971 | : |
| 4972 | else |
| 4973 | echo "$as_me: failed program was:" >&5 |
| 4974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4975 | |
| 4976 | # Broken: fails on valid input. |
| 4977 | continue |
| 4978 | fi |
| 4979 | |
| 4980 | rm -f conftest.err conftest.$ac_ext |
| 4981 | |
| 4982 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4983 | # can be detected and how. |
| 4984 | cat >conftest.$ac_ext <<_ACEOF |
| 4985 | /* confdefs.h. */ |
| 4986 | _ACEOF |
| 4987 | cat confdefs.h >>conftest.$ac_ext |
| 4988 | cat >>conftest.$ac_ext <<_ACEOF |
| 4989 | /* end confdefs.h. */ |
| 4990 | #include <ac_nonexistent.h> |
| 4991 | _ACEOF |
| 4992 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4993 | case "(($ac_try" in |
| 4994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4995 | *) ac_try_echo=$ac_try;; |
| 4996 | esac |
| 4997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4998 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4999 | ac_status=$? |
| 5000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5001 | rm -f conftest.er1 |
| 5002 | cat conftest.err >&5 |
| 5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5004 | (exit $ac_status); } >/dev/null; then |
| 5005 | if test -s conftest.err; then |
| 5006 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5007 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5008 | else |
| 5009 | ac_cpp_err= |
| 5010 | fi |
| 5011 | else |
| 5012 | ac_cpp_err=yes |
| 5013 | fi |
| 5014 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5015 | # Broken: success on invalid input. |
| 5016 | continue |
| 5017 | else |
| 5018 | echo "$as_me: failed program was:" >&5 |
| 5019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5020 | |
| 5021 | # Passes both tests. |
| 5022 | ac_preproc_ok=: |
| 5023 | break |
| 5024 | fi |
| 5025 | |
| 5026 | rm -f conftest.err conftest.$ac_ext |
| 5027 | |
| 5028 | done |
| 5029 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5030 | rm -f conftest.err conftest.$ac_ext |
| 5031 | if $ac_preproc_ok; then |
| 5032 | break |
| 5033 | fi |
| 5034 | |
| 5035 | done |
| 5036 | ac_cv_prog_CPP=$CPP |
| 5037 | |
| 5038 | fi |
| 5039 | CPP=$ac_cv_prog_CPP |
| 5040 | else |
| 5041 | ac_cv_prog_CPP=$CPP |
| 5042 | fi |
| 5043 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5044 | echo "${ECHO_T}$CPP" >&6; } |
| 5045 | ac_preproc_ok=false |
| 5046 | for ac_c_preproc_warn_flag in '' yes |
| 5047 | do |
| 5048 | # Use a header file that comes with gcc, so configuring glibc |
| 5049 | # with a fresh cross-compiler works. |
| 5050 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5051 | # <limits.h> exists even on freestanding compilers. |
| 5052 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5053 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5054 | cat >conftest.$ac_ext <<_ACEOF |
| 5055 | /* confdefs.h. */ |
| 5056 | _ACEOF |
| 5057 | cat confdefs.h >>conftest.$ac_ext |
| 5058 | cat >>conftest.$ac_ext <<_ACEOF |
| 5059 | /* end confdefs.h. */ |
| 5060 | #ifdef __STDC__ |
| 5061 | # include <limits.h> |
| 5062 | #else |
| 5063 | # include <assert.h> |
| 5064 | #endif |
| 5065 | Syntax error |
| 5066 | _ACEOF |
| 5067 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5068 | case "(($ac_try" in |
| 5069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5070 | *) ac_try_echo=$ac_try;; |
| 5071 | esac |
| 5072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5073 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5074 | ac_status=$? |
| 5075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5076 | rm -f conftest.er1 |
| 5077 | cat conftest.err >&5 |
| 5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5079 | (exit $ac_status); } >/dev/null; then |
| 5080 | if test -s conftest.err; then |
| 5081 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5082 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5083 | else |
| 5084 | ac_cpp_err= |
| 5085 | fi |
| 5086 | else |
| 5087 | ac_cpp_err=yes |
| 5088 | fi |
| 5089 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5090 | : |
| 5091 | else |
| 5092 | echo "$as_me: failed program was:" >&5 |
| 5093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5094 | |
| 5095 | # Broken: fails on valid input. |
| 5096 | continue |
| 5097 | fi |
| 5098 | |
| 5099 | rm -f conftest.err conftest.$ac_ext |
| 5100 | |
| 5101 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5102 | # can be detected and how. |
| 5103 | cat >conftest.$ac_ext <<_ACEOF |
| 5104 | /* confdefs.h. */ |
| 5105 | _ACEOF |
| 5106 | cat confdefs.h >>conftest.$ac_ext |
| 5107 | cat >>conftest.$ac_ext <<_ACEOF |
| 5108 | /* end confdefs.h. */ |
| 5109 | #include <ac_nonexistent.h> |
| 5110 | _ACEOF |
| 5111 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5112 | case "(($ac_try" in |
| 5113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5114 | *) ac_try_echo=$ac_try;; |
| 5115 | esac |
| 5116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5117 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5118 | ac_status=$? |
| 5119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5120 | rm -f conftest.er1 |
| 5121 | cat conftest.err >&5 |
| 5122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5123 | (exit $ac_status); } >/dev/null; then |
| 5124 | if test -s conftest.err; then |
| 5125 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5126 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5127 | else |
| 5128 | ac_cpp_err= |
| 5129 | fi |
| 5130 | else |
| 5131 | ac_cpp_err=yes |
| 5132 | fi |
| 5133 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5134 | # Broken: success on invalid input. |
| 5135 | continue |
| 5136 | else |
| 5137 | echo "$as_me: failed program was:" >&5 |
| 5138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5139 | |
| 5140 | # Passes both tests. |
| 5141 | ac_preproc_ok=: |
| 5142 | break |
| 5143 | fi |
| 5144 | |
| 5145 | rm -f conftest.err conftest.$ac_ext |
| 5146 | |
| 5147 | done |
| 5148 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5149 | rm -f conftest.err conftest.$ac_ext |
| 5150 | if $ac_preproc_ok; then |
| 5151 | : |
| 5152 | else |
| 5153 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5154 | See \`config.log' for more details." >&5 |
| 5155 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5156 | See \`config.log' for more details." >&2;} |
| 5157 | { (exit 1); exit 1; }; } |
| 5158 | fi |
| 5159 | |
| 5160 | ac_ext=c |
| 5161 | ac_cpp='$CPP $CPPFLAGS' |
| 5162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5165 | |
| 5166 | ac_ext=c |
| 5167 | ac_cpp='$CPP $CPPFLAGS' |
| 5168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5171 | if test -n "$ac_tool_prefix"; then |
| 5172 | for ac_prog in gcc |
| 5173 | do |
| 5174 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5175 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5176 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5178 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5180 | else |
| 5181 | if test -n "$CC"; then |
| 5182 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5183 | else |
| 5184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5185 | for as_dir in $PATH |
| 5186 | do |
| 5187 | IFS=$as_save_IFS |
| 5188 | test -z "$as_dir" && as_dir=. |
| 5189 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5191 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5193 | break 2 |
| 5194 | fi |
| 5195 | done |
| 5196 | done |
| 5197 | IFS=$as_save_IFS |
| 5198 | |
| 5199 | fi |
| 5200 | fi |
| 5201 | CC=$ac_cv_prog_CC |
| 5202 | if test -n "$CC"; then |
| 5203 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5204 | echo "${ECHO_T}$CC" >&6; } |
| 5205 | else |
| 5206 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5207 | echo "${ECHO_T}no" >&6; } |
| 5208 | fi |
| 5209 | |
| 5210 | |
| 5211 | test -n "$CC" && break |
| 5212 | done |
| 5213 | fi |
| 5214 | if test -z "$CC"; then |
| 5215 | ac_ct_CC=$CC |
| 5216 | for ac_prog in gcc |
| 5217 | do |
| 5218 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5219 | set dummy $ac_prog; ac_word=$2 |
| 5220 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5222 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5224 | else |
| 5225 | if test -n "$ac_ct_CC"; then |
| 5226 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5227 | else |
| 5228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5229 | for as_dir in $PATH |
| 5230 | do |
| 5231 | IFS=$as_save_IFS |
| 5232 | test -z "$as_dir" && as_dir=. |
| 5233 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5235 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5237 | break 2 |
| 5238 | fi |
| 5239 | done |
| 5240 | done |
| 5241 | IFS=$as_save_IFS |
| 5242 | |
| 5243 | fi |
| 5244 | fi |
| 5245 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5246 | if test -n "$ac_ct_CC"; then |
| 5247 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5248 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5249 | else |
| 5250 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5251 | echo "${ECHO_T}no" >&6; } |
| 5252 | fi |
| 5253 | |
| 5254 | |
| 5255 | test -n "$ac_ct_CC" && break |
| 5256 | done |
| 5257 | |
| 5258 | if test "x$ac_ct_CC" = x; then |
| 5259 | CC="" |
| 5260 | else |
| 5261 | case $cross_compiling:$ac_tool_warned in |
| 5262 | yes:) |
| 5263 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5264 | whose name does not start with the host triplet. If you think this |
| 5265 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5266 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5267 | whose name does not start with the host triplet. If you think this |
| 5268 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5269 | ac_tool_warned=yes ;; |
| 5270 | esac |
| 5271 | CC=$ac_ct_CC |
| 5272 | fi |
| 5273 | fi |
| 5274 | |
| 5275 | |
| 5276 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5277 | See \`config.log' for more details." >&5 |
| 5278 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5279 | See \`config.log' for more details." >&2;} |
| 5280 | { (exit 1); exit 1; }; } |
| 5281 | |
| 5282 | # Provide some information about the compiler. |
| 5283 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5284 | ac_compiler=`set X $ac_compile; echo $2` |
| 5285 | { (ac_try="$ac_compiler --version >&5" |
| 5286 | case "(($ac_try" in |
| 5287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5288 | *) ac_try_echo=$ac_try;; |
| 5289 | esac |
| 5290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5291 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5292 | ac_status=$? |
| 5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5294 | (exit $ac_status); } |
| 5295 | { (ac_try="$ac_compiler -v >&5" |
| 5296 | case "(($ac_try" in |
| 5297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5298 | *) ac_try_echo=$ac_try;; |
| 5299 | esac |
| 5300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5301 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5302 | ac_status=$? |
| 5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5304 | (exit $ac_status); } |
| 5305 | { (ac_try="$ac_compiler -V >&5" |
| 5306 | case "(($ac_try" in |
| 5307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5308 | *) ac_try_echo=$ac_try;; |
| 5309 | esac |
| 5310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5311 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5312 | ac_status=$? |
| 5313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5314 | (exit $ac_status); } |
| 5315 | |
| 5316 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5317 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5318 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5320 | else |
| 5321 | cat >conftest.$ac_ext <<_ACEOF |
| 5322 | /* confdefs.h. */ |
| 5323 | _ACEOF |
| 5324 | cat confdefs.h >>conftest.$ac_ext |
| 5325 | cat >>conftest.$ac_ext <<_ACEOF |
| 5326 | /* end confdefs.h. */ |
| 5327 | |
| 5328 | int |
| 5329 | main () |
| 5330 | { |
| 5331 | #ifndef __GNUC__ |
| 5332 | choke me |
| 5333 | #endif |
| 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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5373 | ac_compiler_gnu=yes |
| 5374 | else |
| 5375 | echo "$as_me: failed program was:" >&5 |
| 5376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5377 | |
| 5378 | ac_compiler_gnu=no |
| 5379 | fi |
| 5380 | |
| 5381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5382 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5383 | |
| 5384 | fi |
| 5385 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5386 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5387 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5388 | ac_test_CFLAGS=${CFLAGS+set} |
| 5389 | ac_save_CFLAGS=$CFLAGS |
| 5390 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5391 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5392 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5394 | else |
| 5395 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5396 | ac_c_werror_flag=yes |
| 5397 | ac_cv_prog_cc_g=no |
| 5398 | CFLAGS="-g" |
| 5399 | cat >conftest.$ac_ext <<_ACEOF |
| 5400 | /* confdefs.h. */ |
| 5401 | _ACEOF |
| 5402 | cat confdefs.h >>conftest.$ac_ext |
| 5403 | cat >>conftest.$ac_ext <<_ACEOF |
| 5404 | /* end confdefs.h. */ |
| 5405 | |
| 5406 | int |
| 5407 | main () |
| 5408 | { |
| 5409 | |
| 5410 | ; |
| 5411 | return 0; |
| 5412 | } |
| 5413 | _ACEOF |
| 5414 | rm -f conftest.$ac_objext |
| 5415 | if { (ac_try="$ac_compile" |
| 5416 | case "(($ac_try" in |
| 5417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5418 | *) ac_try_echo=$ac_try;; |
| 5419 | esac |
| 5420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5421 | (eval "$ac_compile") 2>conftest.er1 |
| 5422 | ac_status=$? |
| 5423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5424 | rm -f conftest.er1 |
| 5425 | cat conftest.err >&5 |
| 5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5427 | (exit $ac_status); } && |
| 5428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5429 | { (case "(($ac_try" in |
| 5430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5431 | *) ac_try_echo=$ac_try;; |
| 5432 | esac |
| 5433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5434 | (eval "$ac_try") 2>&5 |
| 5435 | ac_status=$? |
| 5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5437 | (exit $ac_status); }; } && |
| 5438 | { ac_try='test -s conftest.$ac_objext' |
| 5439 | { (case "(($ac_try" in |
| 5440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5441 | *) ac_try_echo=$ac_try;; |
| 5442 | esac |
| 5443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5444 | (eval "$ac_try") 2>&5 |
| 5445 | ac_status=$? |
| 5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5447 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5448 | ac_cv_prog_cc_g=yes |
| 5449 | else |
| 5450 | echo "$as_me: failed program was:" >&5 |
| 5451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5452 | |
| 5453 | CFLAGS="" |
| 5454 | cat >conftest.$ac_ext <<_ACEOF |
| 5455 | /* confdefs.h. */ |
| 5456 | _ACEOF |
| 5457 | cat confdefs.h >>conftest.$ac_ext |
| 5458 | cat >>conftest.$ac_ext <<_ACEOF |
| 5459 | /* end confdefs.h. */ |
| 5460 | |
| 5461 | int |
| 5462 | main () |
| 5463 | { |
| 5464 | |
| 5465 | ; |
| 5466 | return 0; |
| 5467 | } |
| 5468 | _ACEOF |
| 5469 | rm -f conftest.$ac_objext |
| 5470 | if { (ac_try="$ac_compile" |
| 5471 | case "(($ac_try" in |
| 5472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5473 | *) ac_try_echo=$ac_try;; |
| 5474 | esac |
| 5475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5476 | (eval "$ac_compile") 2>conftest.er1 |
| 5477 | ac_status=$? |
| 5478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5479 | rm -f conftest.er1 |
| 5480 | cat conftest.err >&5 |
| 5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5482 | (exit $ac_status); } && |
| 5483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5484 | { (case "(($ac_try" in |
| 5485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5486 | *) ac_try_echo=$ac_try;; |
| 5487 | esac |
| 5488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5489 | (eval "$ac_try") 2>&5 |
| 5490 | ac_status=$? |
| 5491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5492 | (exit $ac_status); }; } && |
| 5493 | { ac_try='test -s conftest.$ac_objext' |
| 5494 | { (case "(($ac_try" in |
| 5495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5496 | *) ac_try_echo=$ac_try;; |
| 5497 | esac |
| 5498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5499 | (eval "$ac_try") 2>&5 |
| 5500 | ac_status=$? |
| 5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5502 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5503 | : |
| 5504 | else |
| 5505 | echo "$as_me: failed program was:" >&5 |
| 5506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5507 | |
| 5508 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5509 | CFLAGS="-g" |
| 5510 | cat >conftest.$ac_ext <<_ACEOF |
| 5511 | /* confdefs.h. */ |
| 5512 | _ACEOF |
| 5513 | cat confdefs.h >>conftest.$ac_ext |
| 5514 | cat >>conftest.$ac_ext <<_ACEOF |
| 5515 | /* end confdefs.h. */ |
| 5516 | |
| 5517 | int |
| 5518 | main () |
| 5519 | { |
| 5520 | |
| 5521 | ; |
| 5522 | return 0; |
| 5523 | } |
| 5524 | _ACEOF |
| 5525 | rm -f conftest.$ac_objext |
| 5526 | if { (ac_try="$ac_compile" |
| 5527 | case "(($ac_try" in |
| 5528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5529 | *) ac_try_echo=$ac_try;; |
| 5530 | esac |
| 5531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5532 | (eval "$ac_compile") 2>conftest.er1 |
| 5533 | ac_status=$? |
| 5534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5535 | rm -f conftest.er1 |
| 5536 | cat conftest.err >&5 |
| 5537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5538 | (exit $ac_status); } && |
| 5539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5540 | { (case "(($ac_try" in |
| 5541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5542 | *) ac_try_echo=$ac_try;; |
| 5543 | esac |
| 5544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5545 | (eval "$ac_try") 2>&5 |
| 5546 | ac_status=$? |
| 5547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5548 | (exit $ac_status); }; } && |
| 5549 | { ac_try='test -s conftest.$ac_objext' |
| 5550 | { (case "(($ac_try" in |
| 5551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5552 | *) ac_try_echo=$ac_try;; |
| 5553 | esac |
| 5554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5555 | (eval "$ac_try") 2>&5 |
| 5556 | ac_status=$? |
| 5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5558 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5559 | ac_cv_prog_cc_g=yes |
| 5560 | else |
| 5561 | echo "$as_me: failed program was:" >&5 |
| 5562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5563 | |
| 5564 | |
| 5565 | fi |
| 5566 | |
| 5567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5568 | fi |
| 5569 | |
| 5570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5571 | fi |
| 5572 | |
| 5573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5574 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5575 | fi |
| 5576 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5577 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5578 | if test "$ac_test_CFLAGS" = set; then |
| 5579 | CFLAGS=$ac_save_CFLAGS |
| 5580 | elif test $ac_cv_prog_cc_g = yes; then |
| 5581 | if test "$GCC" = yes; then |
| 5582 | CFLAGS="-g -O2" |
| 5583 | else |
| 5584 | CFLAGS="-g" |
| 5585 | fi |
| 5586 | else |
| 5587 | if test "$GCC" = yes; then |
| 5588 | CFLAGS="-O2" |
| 5589 | else |
| 5590 | CFLAGS= |
| 5591 | fi |
| 5592 | fi |
| 5593 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5594 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5595 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5597 | else |
| 5598 | ac_cv_prog_cc_c89=no |
| 5599 | ac_save_CC=$CC |
| 5600 | cat >conftest.$ac_ext <<_ACEOF |
| 5601 | /* confdefs.h. */ |
| 5602 | _ACEOF |
| 5603 | cat confdefs.h >>conftest.$ac_ext |
| 5604 | cat >>conftest.$ac_ext <<_ACEOF |
| 5605 | /* end confdefs.h. */ |
| 5606 | #include <stdarg.h> |
| 5607 | #include <stdio.h> |
| 5608 | #include <sys/types.h> |
| 5609 | #include <sys/stat.h> |
| 5610 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5611 | struct buf { int x; }; |
| 5612 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5613 | static char *e (p, i) |
| 5614 | char **p; |
| 5615 | int i; |
| 5616 | { |
| 5617 | return p[i]; |
| 5618 | } |
| 5619 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5620 | { |
| 5621 | char *s; |
| 5622 | va_list v; |
| 5623 | va_start (v,p); |
| 5624 | s = g (p, va_arg (v,int)); |
| 5625 | va_end (v); |
| 5626 | return s; |
| 5627 | } |
| 5628 | |
| 5629 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5630 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5631 | These don't provoke an error unfortunately, instead are silently treated |
| 5632 | as 'x'. The following induces an error, until -std is added to get |
| 5633 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5634 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5635 | that's true only with -std. */ |
| 5636 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5637 | |
| 5638 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5639 | inside strings and character constants. */ |
| 5640 | #define FOO(x) 'x' |
| 5641 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5642 | |
| 5643 | int test (int i, double x); |
| 5644 | struct s1 {int (*f) (int a);}; |
| 5645 | struct s2 {int (*f) (double a);}; |
| 5646 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5647 | int argc; |
| 5648 | char **argv; |
| 5649 | int |
| 5650 | main () |
| 5651 | { |
| 5652 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5653 | ; |
| 5654 | return 0; |
| 5655 | } |
| 5656 | _ACEOF |
| 5657 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5658 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5659 | do |
| 5660 | CC="$ac_save_CC $ac_arg" |
| 5661 | rm -f conftest.$ac_objext |
| 5662 | if { (ac_try="$ac_compile" |
| 5663 | case "(($ac_try" in |
| 5664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5665 | *) ac_try_echo=$ac_try;; |
| 5666 | esac |
| 5667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5668 | (eval "$ac_compile") 2>conftest.er1 |
| 5669 | ac_status=$? |
| 5670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5671 | rm -f conftest.er1 |
| 5672 | cat conftest.err >&5 |
| 5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5674 | (exit $ac_status); } && |
| 5675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5676 | { (case "(($ac_try" in |
| 5677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5678 | *) ac_try_echo=$ac_try;; |
| 5679 | esac |
| 5680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5681 | (eval "$ac_try") 2>&5 |
| 5682 | ac_status=$? |
| 5683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5684 | (exit $ac_status); }; } && |
| 5685 | { ac_try='test -s conftest.$ac_objext' |
| 5686 | { (case "(($ac_try" in |
| 5687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5688 | *) ac_try_echo=$ac_try;; |
| 5689 | esac |
| 5690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5691 | (eval "$ac_try") 2>&5 |
| 5692 | ac_status=$? |
| 5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5694 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5695 | ac_cv_prog_cc_c89=$ac_arg |
| 5696 | else |
| 5697 | echo "$as_me: failed program was:" >&5 |
| 5698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5699 | |
| 5700 | |
| 5701 | fi |
| 5702 | |
| 5703 | rm -f core conftest.err conftest.$ac_objext |
| 5704 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5705 | done |
| 5706 | rm -f conftest.$ac_ext |
| 5707 | CC=$ac_save_CC |
| 5708 | |
| 5709 | fi |
| 5710 | # AC_CACHE_VAL |
| 5711 | case "x$ac_cv_prog_cc_c89" in |
| 5712 | x) |
| 5713 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5714 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5715 | xno) |
| 5716 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5717 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5718 | *) |
| 5719 | CC="$CC $ac_cv_prog_cc_c89" |
| 5720 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5721 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5722 | esac |
| 5723 | |
| 5724 | |
| 5725 | ac_ext=c |
| 5726 | ac_cpp='$CPP $CPPFLAGS' |
| 5727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5730 | |
| 5731 | ac_ext=cpp |
| 5732 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5733 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5734 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5735 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5736 | if test -z "$CXX"; then |
| 5737 | if test -n "$CCC"; then |
| 5738 | CXX=$CCC |
| 5739 | else |
| 5740 | if test -n "$ac_tool_prefix"; then |
| 5741 | for ac_prog in g++ |
| 5742 | do |
| 5743 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5744 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5745 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5747 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5749 | else |
| 5750 | if test -n "$CXX"; then |
| 5751 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5752 | else |
| 5753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5754 | for as_dir in $PATH |
| 5755 | do |
| 5756 | IFS=$as_save_IFS |
| 5757 | test -z "$as_dir" && as_dir=. |
| 5758 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5760 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5762 | break 2 |
| 5763 | fi |
| 5764 | done |
| 5765 | done |
| 5766 | IFS=$as_save_IFS |
| 5767 | |
| 5768 | fi |
| 5769 | fi |
| 5770 | CXX=$ac_cv_prog_CXX |
| 5771 | if test -n "$CXX"; then |
| 5772 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5773 | echo "${ECHO_T}$CXX" >&6; } |
| 5774 | else |
| 5775 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5776 | echo "${ECHO_T}no" >&6; } |
| 5777 | fi |
| 5778 | |
| 5779 | |
| 5780 | test -n "$CXX" && break |
| 5781 | done |
| 5782 | fi |
| 5783 | if test -z "$CXX"; then |
| 5784 | ac_ct_CXX=$CXX |
| 5785 | for ac_prog in g++ |
| 5786 | do |
| 5787 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5788 | set dummy $ac_prog; ac_word=$2 |
| 5789 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5791 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5793 | else |
| 5794 | if test -n "$ac_ct_CXX"; then |
| 5795 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5796 | else |
| 5797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5798 | for as_dir in $PATH |
| 5799 | do |
| 5800 | IFS=$as_save_IFS |
| 5801 | test -z "$as_dir" && as_dir=. |
| 5802 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5804 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5806 | break 2 |
| 5807 | fi |
| 5808 | done |
| 5809 | done |
| 5810 | IFS=$as_save_IFS |
| 5811 | |
| 5812 | fi |
| 5813 | fi |
| 5814 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5815 | if test -n "$ac_ct_CXX"; then |
| 5816 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5817 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5818 | else |
| 5819 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5820 | echo "${ECHO_T}no" >&6; } |
| 5821 | fi |
| 5822 | |
| 5823 | |
| 5824 | test -n "$ac_ct_CXX" && break |
| 5825 | done |
| 5826 | |
| 5827 | if test "x$ac_ct_CXX" = x; then |
| 5828 | CXX="g++" |
| 5829 | else |
| 5830 | case $cross_compiling:$ac_tool_warned in |
| 5831 | yes:) |
| 5832 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5833 | whose name does not start with the host triplet. If you think this |
| 5834 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5835 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5836 | whose name does not start with the host triplet. If you think this |
| 5837 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5838 | ac_tool_warned=yes ;; |
| 5839 | esac |
| 5840 | CXX=$ac_ct_CXX |
| 5841 | fi |
| 5842 | fi |
| 5843 | |
| 5844 | fi |
| 5845 | fi |
| 5846 | # Provide some information about the compiler. |
| 5847 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5848 | ac_compiler=`set X $ac_compile; echo $2` |
| 5849 | { (ac_try="$ac_compiler --version >&5" |
| 5850 | case "(($ac_try" in |
| 5851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5852 | *) ac_try_echo=$ac_try;; |
| 5853 | esac |
| 5854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5855 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5856 | ac_status=$? |
| 5857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5858 | (exit $ac_status); } |
| 5859 | { (ac_try="$ac_compiler -v >&5" |
| 5860 | case "(($ac_try" in |
| 5861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5862 | *) ac_try_echo=$ac_try;; |
| 5863 | esac |
| 5864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5865 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5866 | ac_status=$? |
| 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5868 | (exit $ac_status); } |
| 5869 | { (ac_try="$ac_compiler -V >&5" |
| 5870 | case "(($ac_try" in |
| 5871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5872 | *) ac_try_echo=$ac_try;; |
| 5873 | esac |
| 5874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5875 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5876 | ac_status=$? |
| 5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5878 | (exit $ac_status); } |
| 5879 | |
| 5880 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5881 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5882 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5884 | else |
| 5885 | cat >conftest.$ac_ext <<_ACEOF |
| 5886 | /* confdefs.h. */ |
| 5887 | _ACEOF |
| 5888 | cat confdefs.h >>conftest.$ac_ext |
| 5889 | cat >>conftest.$ac_ext <<_ACEOF |
| 5890 | /* end confdefs.h. */ |
| 5891 | |
| 5892 | int |
| 5893 | main () |
| 5894 | { |
| 5895 | #ifndef __GNUC__ |
| 5896 | choke me |
| 5897 | #endif |
| 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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5937 | ac_compiler_gnu=yes |
| 5938 | else |
| 5939 | echo "$as_me: failed program was:" >&5 |
| 5940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5941 | |
| 5942 | ac_compiler_gnu=no |
| 5943 | fi |
| 5944 | |
| 5945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5946 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5947 | |
| 5948 | fi |
| 5949 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5950 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5951 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5952 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5953 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5954 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5955 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5956 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5958 | else |
| 5959 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5960 | ac_cxx_werror_flag=yes |
| 5961 | ac_cv_prog_cxx_g=no |
| 5962 | CXXFLAGS="-g" |
| 5963 | cat >conftest.$ac_ext <<_ACEOF |
| 5964 | /* confdefs.h. */ |
| 5965 | _ACEOF |
| 5966 | cat confdefs.h >>conftest.$ac_ext |
| 5967 | cat >>conftest.$ac_ext <<_ACEOF |
| 5968 | /* end confdefs.h. */ |
| 5969 | |
| 5970 | int |
| 5971 | main () |
| 5972 | { |
| 5973 | |
| 5974 | ; |
| 5975 | return 0; |
| 5976 | } |
| 5977 | _ACEOF |
| 5978 | rm -f conftest.$ac_objext |
| 5979 | if { (ac_try="$ac_compile" |
| 5980 | case "(($ac_try" in |
| 5981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5982 | *) ac_try_echo=$ac_try;; |
| 5983 | esac |
| 5984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5985 | (eval "$ac_compile") 2>conftest.er1 |
| 5986 | ac_status=$? |
| 5987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5988 | rm -f conftest.er1 |
| 5989 | cat conftest.err >&5 |
| 5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5991 | (exit $ac_status); } && |
| 5992 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5993 | { (case "(($ac_try" in |
| 5994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5995 | *) ac_try_echo=$ac_try;; |
| 5996 | esac |
| 5997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5998 | (eval "$ac_try") 2>&5 |
| 5999 | ac_status=$? |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); }; } && |
| 6002 | { ac_try='test -s conftest.$ac_objext' |
| 6003 | { (case "(($ac_try" in |
| 6004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6005 | *) ac_try_echo=$ac_try;; |
| 6006 | esac |
| 6007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6008 | (eval "$ac_try") 2>&5 |
| 6009 | ac_status=$? |
| 6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6011 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6012 | ac_cv_prog_cxx_g=yes |
| 6013 | else |
| 6014 | echo "$as_me: failed program was:" >&5 |
| 6015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6016 | |
| 6017 | CXXFLAGS="" |
| 6018 | cat >conftest.$ac_ext <<_ACEOF |
| 6019 | /* confdefs.h. */ |
| 6020 | _ACEOF |
| 6021 | cat confdefs.h >>conftest.$ac_ext |
| 6022 | cat >>conftest.$ac_ext <<_ACEOF |
| 6023 | /* end confdefs.h. */ |
| 6024 | |
| 6025 | int |
| 6026 | main () |
| 6027 | { |
| 6028 | |
| 6029 | ; |
| 6030 | return 0; |
| 6031 | } |
| 6032 | _ACEOF |
| 6033 | rm -f conftest.$ac_objext |
| 6034 | if { (ac_try="$ac_compile" |
| 6035 | case "(($ac_try" in |
| 6036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6037 | *) ac_try_echo=$ac_try;; |
| 6038 | esac |
| 6039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6040 | (eval "$ac_compile") 2>conftest.er1 |
| 6041 | ac_status=$? |
| 6042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6043 | rm -f conftest.er1 |
| 6044 | cat conftest.err >&5 |
| 6045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6046 | (exit $ac_status); } && |
| 6047 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6048 | { (case "(($ac_try" in |
| 6049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6050 | *) ac_try_echo=$ac_try;; |
| 6051 | esac |
| 6052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6053 | (eval "$ac_try") 2>&5 |
| 6054 | ac_status=$? |
| 6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6056 | (exit $ac_status); }; } && |
| 6057 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 6064 | ac_status=$? |
| 6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6066 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6067 | : |
| 6068 | else |
| 6069 | echo "$as_me: failed program was:" >&5 |
| 6070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6071 | |
| 6072 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6073 | CXXFLAGS="-g" |
| 6074 | cat >conftest.$ac_ext <<_ACEOF |
| 6075 | /* confdefs.h. */ |
| 6076 | _ACEOF |
| 6077 | cat confdefs.h >>conftest.$ac_ext |
| 6078 | cat >>conftest.$ac_ext <<_ACEOF |
| 6079 | /* end confdefs.h. */ |
| 6080 | |
| 6081 | int |
| 6082 | main () |
| 6083 | { |
| 6084 | |
| 6085 | ; |
| 6086 | return 0; |
| 6087 | } |
| 6088 | _ACEOF |
| 6089 | rm -f conftest.$ac_objext |
| 6090 | if { (ac_try="$ac_compile" |
| 6091 | case "(($ac_try" in |
| 6092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6093 | *) ac_try_echo=$ac_try;; |
| 6094 | esac |
| 6095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6096 | (eval "$ac_compile") 2>conftest.er1 |
| 6097 | ac_status=$? |
| 6098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6099 | rm -f conftest.er1 |
| 6100 | cat conftest.err >&5 |
| 6101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6102 | (exit $ac_status); } && |
| 6103 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6104 | { (case "(($ac_try" in |
| 6105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6106 | *) ac_try_echo=$ac_try;; |
| 6107 | esac |
| 6108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6109 | (eval "$ac_try") 2>&5 |
| 6110 | ac_status=$? |
| 6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6112 | (exit $ac_status); }; } && |
| 6113 | { ac_try='test -s conftest.$ac_objext' |
| 6114 | { (case "(($ac_try" in |
| 6115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6116 | *) ac_try_echo=$ac_try;; |
| 6117 | esac |
| 6118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6119 | (eval "$ac_try") 2>&5 |
| 6120 | ac_status=$? |
| 6121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6122 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6123 | ac_cv_prog_cxx_g=yes |
| 6124 | else |
| 6125 | echo "$as_me: failed program was:" >&5 |
| 6126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6127 | |
| 6128 | |
| 6129 | fi |
| 6130 | |
| 6131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6132 | fi |
| 6133 | |
| 6134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6135 | fi |
| 6136 | |
| 6137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6138 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6139 | fi |
| 6140 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6141 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6142 | if test "$ac_test_CXXFLAGS" = set; then |
| 6143 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6144 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6145 | if test "$GXX" = yes; then |
| 6146 | CXXFLAGS="-g -O2" |
| 6147 | else |
| 6148 | CXXFLAGS="-g" |
| 6149 | fi |
| 6150 | else |
| 6151 | if test "$GXX" = yes; then |
| 6152 | CXXFLAGS="-O2" |
| 6153 | else |
| 6154 | CXXFLAGS= |
| 6155 | fi |
| 6156 | fi |
| 6157 | ac_ext=c |
| 6158 | ac_cpp='$CPP $CPPFLAGS' |
| 6159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6162 | |
| 6163 | { echo "$as_me:$LINENO: checking " >&5 |
| 6164 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6165 | if test "${ac_cv_has_flex+set}" = set; then |
| 6166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6167 | else |
| 6168 | for ac_prog in flex lex |
| 6169 | do |
| 6170 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6171 | set dummy $ac_prog; ac_word=$2 |
| 6172 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6174 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 6175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6176 | else |
| 6177 | if test -n "$LEX"; then |
| 6178 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 6179 | else |
| 6180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6181 | for as_dir in $PATH |
| 6182 | do |
| 6183 | IFS=$as_save_IFS |
| 6184 | test -z "$as_dir" && as_dir=. |
| 6185 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6187 | ac_cv_prog_LEX="$ac_prog" |
| 6188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6189 | break 2 |
| 6190 | fi |
| 6191 | done |
| 6192 | done |
| 6193 | IFS=$as_save_IFS |
| 6194 | |
| 6195 | fi |
| 6196 | fi |
| 6197 | LEX=$ac_cv_prog_LEX |
| 6198 | if test -n "$LEX"; then |
| 6199 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 6200 | echo "${ECHO_T}$LEX" >&6; } |
| 6201 | else |
| 6202 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6203 | echo "${ECHO_T}no" >&6; } |
| 6204 | fi |
| 6205 | |
| 6206 | |
| 6207 | test -n "$LEX" && break |
| 6208 | done |
| 6209 | test -n "$LEX" || LEX=":" |
| 6210 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6211 | if test -z "$LEXLIB" |
| 6212 | then |
| 6213 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 6214 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
| 6215 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 6216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6217 | else |
| 6218 | ac_check_lib_save_LIBS=$LIBS |
| 6219 | LIBS="-lfl $LIBS" |
| 6220 | cat >conftest.$ac_ext <<_ACEOF |
| 6221 | /* confdefs.h. */ |
| 6222 | _ACEOF |
| 6223 | cat confdefs.h >>conftest.$ac_ext |
| 6224 | cat >>conftest.$ac_ext <<_ACEOF |
| 6225 | /* end confdefs.h. */ |
| 6226 | |
| 6227 | /* Override any GCC internal prototype to avoid an error. |
| 6228 | Use char because int might match the return type of a GCC |
| 6229 | builtin and then its argument prototype would still apply. */ |
| 6230 | #ifdef __cplusplus |
| 6231 | extern "C" |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6232 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6233 | char yywrap (); |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6234 | int |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6235 | main () |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6236 | { |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6237 | return yywrap (); |
| 6238 | ; |
| 6239 | return 0; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6240 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6241 | _ACEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6242 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6243 | if { (ac_try="$ac_link" |
| 6244 | case "(($ac_try" in |
| 6245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6246 | *) ac_try_echo=$ac_try;; |
| 6247 | esac |
| 6248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6249 | (eval "$ac_link") 2>conftest.er1 |
| 6250 | ac_status=$? |
| 6251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6252 | rm -f conftest.er1 |
| 6253 | cat conftest.err >&5 |
| 6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6255 | (exit $ac_status); } && |
| 6256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6257 | { (case "(($ac_try" in |
| 6258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6259 | *) ac_try_echo=$ac_try;; |
| 6260 | esac |
| 6261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6262 | (eval "$ac_try") 2>&5 |
| 6263 | ac_status=$? |
| 6264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6265 | (exit $ac_status); }; } && |
| 6266 | { ac_try='test -s conftest$ac_exeext' |
| 6267 | { (case "(($ac_try" in |
| 6268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6269 | *) ac_try_echo=$ac_try;; |
| 6270 | esac |
| 6271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6272 | (eval "$ac_try") 2>&5 |
| 6273 | ac_status=$? |
| 6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6275 | (exit $ac_status); }; }; then |
| 6276 | ac_cv_lib_fl_yywrap=yes |
| 6277 | else |
| 6278 | echo "$as_me: failed program was:" >&5 |
| 6279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6280 | |
| 6281 | ac_cv_lib_fl_yywrap=no |
| 6282 | fi |
| 6283 | |
| 6284 | rm -f core conftest.err conftest.$ac_objext \ |
| 6285 | conftest$ac_exeext conftest.$ac_ext |
| 6286 | LIBS=$ac_check_lib_save_LIBS |
| 6287 | fi |
| 6288 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 6289 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
| 6290 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 6291 | LEXLIB="-lfl" |
| 6292 | else |
| 6293 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 6294 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
| 6295 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 6296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6297 | else |
| 6298 | ac_check_lib_save_LIBS=$LIBS |
| 6299 | LIBS="-ll $LIBS" |
| 6300 | cat >conftest.$ac_ext <<_ACEOF |
| 6301 | /* confdefs.h. */ |
| 6302 | _ACEOF |
| 6303 | cat confdefs.h >>conftest.$ac_ext |
| 6304 | cat >>conftest.$ac_ext <<_ACEOF |
| 6305 | /* end confdefs.h. */ |
| 6306 | |
| 6307 | /* Override any GCC internal prototype to avoid an error. |
| 6308 | Use char because int might match the return type of a GCC |
| 6309 | builtin and then its argument prototype would still apply. */ |
| 6310 | #ifdef __cplusplus |
| 6311 | extern "C" |
| 6312 | #endif |
| 6313 | char yywrap (); |
| 6314 | int |
| 6315 | main () |
| 6316 | { |
| 6317 | return yywrap (); |
| 6318 | ; |
| 6319 | return 0; |
| 6320 | } |
| 6321 | _ACEOF |
| 6322 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6323 | if { (ac_try="$ac_link" |
| 6324 | case "(($ac_try" in |
| 6325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6326 | *) ac_try_echo=$ac_try;; |
| 6327 | esac |
| 6328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6329 | (eval "$ac_link") 2>conftest.er1 |
| 6330 | ac_status=$? |
| 6331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6332 | rm -f conftest.er1 |
| 6333 | cat conftest.err >&5 |
| 6334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6335 | (exit $ac_status); } && |
| 6336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6337 | { (case "(($ac_try" in |
| 6338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6339 | *) ac_try_echo=$ac_try;; |
| 6340 | esac |
| 6341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6342 | (eval "$ac_try") 2>&5 |
| 6343 | ac_status=$? |
| 6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6345 | (exit $ac_status); }; } && |
| 6346 | { ac_try='test -s conftest$ac_exeext' |
| 6347 | { (case "(($ac_try" in |
| 6348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6349 | *) ac_try_echo=$ac_try;; |
| 6350 | esac |
| 6351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6352 | (eval "$ac_try") 2>&5 |
| 6353 | ac_status=$? |
| 6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6355 | (exit $ac_status); }; }; then |
| 6356 | ac_cv_lib_l_yywrap=yes |
| 6357 | else |
| 6358 | echo "$as_me: failed program was:" >&5 |
| 6359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6360 | |
| 6361 | ac_cv_lib_l_yywrap=no |
| 6362 | fi |
| 6363 | |
| 6364 | rm -f core conftest.err conftest.$ac_objext \ |
| 6365 | conftest$ac_exeext conftest.$ac_ext |
| 6366 | LIBS=$ac_check_lib_save_LIBS |
| 6367 | fi |
| 6368 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 6369 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
| 6370 | if test $ac_cv_lib_l_yywrap = yes; then |
| 6371 | LEXLIB="-ll" |
| 6372 | fi |
| 6373 | |
| 6374 | fi |
| 6375 | |
| 6376 | fi |
| 6377 | |
| 6378 | if test "x$LEX" != "x:"; then |
| 6379 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 6380 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 6381 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 6382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6383 | else |
| 6384 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 6385 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 6386 | cat >conftest.l <<_ACEOF |
| 6387 | %% |
| 6388 | %% |
| 6389 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6390 | { (ac_try="$LEX conftest.l" |
| 6391 | case "(($ac_try" in |
| 6392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6393 | *) ac_try_echo=$ac_try;; |
| 6394 | esac |
| 6395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6396 | (eval "$LEX conftest.l") 2>&5 |
| 6397 | ac_status=$? |
| 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6399 | (exit $ac_status); } |
| 6400 | if test -f lex.yy.c; then |
| 6401 | ac_cv_prog_lex_root=lex.yy |
| 6402 | elif test -f lexyy.c; then |
| 6403 | ac_cv_prog_lex_root=lexyy |
| 6404 | else |
| 6405 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 6406 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 6407 | { (exit 1); exit 1; }; } |
| 6408 | fi |
| 6409 | fi |
| 6410 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 6411 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6412 | rm -f conftest.l |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6413 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 6414 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6415 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 6416 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 6417 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 6418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6419 | else |
| 6420 | # POSIX says lex can declare yytext either as a pointer or an array; the |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6421 | # default is implementation-dependent. Figure out which it is, since |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6422 | # not all implementations provide the %pointer and %array declarations. |
| 6423 | ac_cv_prog_lex_yytext_pointer=no |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6424 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6425 | ac_save_LIBS=$LIBS |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6426 | LIBS="$LIBS $LEXLIB" |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6427 | cat >conftest.$ac_ext <<_ACEOF |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6428 | `cat $LEX_OUTPUT_ROOT.c` |
| 6429 | _ACEOF |
| 6430 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6431 | if { (ac_try="$ac_link" |
| 6432 | case "(($ac_try" in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6434 | *) ac_try_echo=$ac_try;; |
| 6435 | esac |
| 6436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6437 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6438 | ac_status=$? |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6440 | rm -f conftest.er1 |
| 6441 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6443 | (exit $ac_status); } && |
| 6444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6445 | { (case "(($ac_try" in |
| 6446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6447 | *) ac_try_echo=$ac_try;; |
| 6448 | esac |
| 6449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6450 | (eval "$ac_try") 2>&5 |
| 6451 | ac_status=$? |
| 6452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6453 | (exit $ac_status); }; } && |
| 6454 | { ac_try='test -s conftest$ac_exeext' |
| 6455 | { (case "(($ac_try" in |
| 6456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6457 | *) ac_try_echo=$ac_try;; |
| 6458 | esac |
| 6459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6460 | (eval "$ac_try") 2>&5 |
| 6461 | ac_status=$? |
| 6462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6463 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6464 | ac_cv_prog_lex_yytext_pointer=yes |
| 6465 | else |
| 6466 | echo "$as_me: failed program was:" >&5 |
| 6467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6468 | |
| 6469 | |
| 6470 | fi |
| 6471 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6472 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6473 | conftest$ac_exeext conftest.$ac_ext |
| 6474 | LIBS=$ac_save_LIBS |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6475 | rm -f "${LEX_OUTPUT_ROOT}.c" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6476 | |
| 6477 | fi |
| 6478 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6479 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6480 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6481 | |
| 6482 | cat >>confdefs.h <<\_ACEOF |
| 6483 | #define YYTEXT_POINTER 1 |
| 6484 | _ACEOF |
| 6485 | |
| 6486 | fi |
| 6487 | |
| 6488 | fi |
| 6489 | |
| 6490 | fi |
| 6491 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6492 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6493 | if test "$LEX" != "flex"; then |
| 6494 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6495 | echo "$as_me: error: flex not found but required" >&2;} |
| 6496 | { (exit 1); exit 1; }; } |
| 6497 | else |
| 6498 | FLEX=flex |
| 6499 | |
| 6500 | fi |
| 6501 | |
| 6502 | { echo "$as_me:$LINENO: checking " >&5 |
| 6503 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6504 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6506 | else |
| 6507 | for ac_prog in 'bison -y' byacc |
| 6508 | do |
| 6509 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6510 | set dummy $ac_prog; 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_prog_YACC+set}" = set; then |
| 6514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6515 | else |
| 6516 | if test -n "$YACC"; then |
| 6517 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6518 | else |
| 6519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6520 | for as_dir in $PATH |
| 6521 | do |
| 6522 | IFS=$as_save_IFS |
| 6523 | test -z "$as_dir" && as_dir=. |
| 6524 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6526 | ac_cv_prog_YACC="$ac_prog" |
| 6527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6528 | break 2 |
| 6529 | fi |
| 6530 | done |
| 6531 | done |
| 6532 | IFS=$as_save_IFS |
| 6533 | |
| 6534 | fi |
| 6535 | fi |
| 6536 | YACC=$ac_cv_prog_YACC |
| 6537 | if test -n "$YACC"; then |
| 6538 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6539 | echo "${ECHO_T}$YACC" >&6; } |
| 6540 | else |
| 6541 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6542 | echo "${ECHO_T}no" >&6; } |
| 6543 | fi |
| 6544 | |
| 6545 | |
| 6546 | test -n "$YACC" && break |
| 6547 | done |
| 6548 | test -n "$YACC" || YACC="yacc" |
| 6549 | |
| 6550 | fi |
| 6551 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6552 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6553 | if test "$YACC" != "bison -y"; then |
Reid Spencer | 4869d7f | 2006-08-24 22:41:20 +0000 | [diff] [blame] | 6554 | |
| 6555 | { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 |
| 6556 | echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6557 | else |
| 6558 | BISON=bison |
| 6559 | |
| 6560 | fi |
| 6561 | |
| 6562 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6563 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6564 | if test "${lt_cv_path_NM+set}" = set; then |
| 6565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6566 | else |
| 6567 | if test -n "$NM"; then |
| 6568 | # Let the user override the test. |
| 6569 | lt_cv_path_NM="$NM" |
| 6570 | else |
| 6571 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6572 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6573 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6574 | fi |
| 6575 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6576 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6577 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6578 | IFS="$lt_save_ifs" |
| 6579 | test -z "$ac_dir" && ac_dir=. |
| 6580 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6581 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6582 | # Check to see if the nm accepts a BSD-compat flag. |
| 6583 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6584 | # nm: unknown option "B" ignored |
| 6585 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6586 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6587 | */dev/null* | *'Invalid file or object type'*) |
| 6588 | lt_cv_path_NM="$tmp_nm -B" |
| 6589 | break |
| 6590 | ;; |
| 6591 | *) |
| 6592 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6593 | */dev/null*) |
| 6594 | lt_cv_path_NM="$tmp_nm -p" |
| 6595 | break |
| 6596 | ;; |
| 6597 | *) |
| 6598 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6599 | continue # so that we can try to find one that supports BSD flags |
| 6600 | ;; |
| 6601 | esac |
| 6602 | ;; |
| 6603 | esac |
| 6604 | fi |
| 6605 | done |
| 6606 | IFS="$lt_save_ifs" |
| 6607 | done |
| 6608 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6609 | fi |
| 6610 | fi |
| 6611 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6612 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6613 | NM="$lt_cv_path_NM" |
| 6614 | |
| 6615 | |
| 6616 | |
| 6617 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6618 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6619 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6621 | else |
| 6622 | llvm_cv_gnu_make_command='' |
| 6623 | for a in "$MAKE" make gmake gnumake ; do |
| 6624 | if test -z "$a" ; then continue ; fi ; |
| 6625 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6626 | then |
| 6627 | llvm_cv_gnu_make_command=$a ; |
| 6628 | break; |
| 6629 | fi |
| 6630 | done |
| 6631 | fi |
| 6632 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6633 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6634 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6635 | ifGNUmake='' ; |
| 6636 | else |
| 6637 | ifGNUmake='#' ; |
| 6638 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6639 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6640 | fi |
| 6641 | |
| 6642 | |
| 6643 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6644 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6645 | LN_S=$as_ln_s |
| 6646 | if test "$LN_S" = "ln -s"; then |
| 6647 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6648 | echo "${ECHO_T}yes" >&6; } |
| 6649 | else |
| 6650 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6651 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6652 | fi |
| 6653 | |
| 6654 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6655 | set dummy cmp; ac_word=$2 |
| 6656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6658 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6660 | else |
| 6661 | case $CMP in |
| 6662 | [\\/]* | ?:[\\/]*) |
| 6663 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6664 | ;; |
| 6665 | *) |
| 6666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6667 | for as_dir in $PATH |
| 6668 | do |
| 6669 | IFS=$as_save_IFS |
| 6670 | test -z "$as_dir" && as_dir=. |
| 6671 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6673 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6675 | break 2 |
| 6676 | fi |
| 6677 | done |
| 6678 | done |
| 6679 | IFS=$as_save_IFS |
| 6680 | |
| 6681 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6682 | ;; |
| 6683 | esac |
| 6684 | fi |
| 6685 | CMP=$ac_cv_path_CMP |
| 6686 | if test -n "$CMP"; then |
| 6687 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6688 | echo "${ECHO_T}$CMP" >&6; } |
| 6689 | else |
| 6690 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6691 | echo "${ECHO_T}no" >&6; } |
| 6692 | fi |
| 6693 | |
| 6694 | |
| 6695 | # Extract the first word of "cp", so it can be a program name with args. |
| 6696 | set dummy cp; ac_word=$2 |
| 6697 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6699 | if test "${ac_cv_path_CP+set}" = set; then |
| 6700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6701 | else |
| 6702 | case $CP in |
| 6703 | [\\/]* | ?:[\\/]*) |
| 6704 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6705 | ;; |
| 6706 | *) |
| 6707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6708 | for as_dir in $PATH |
| 6709 | do |
| 6710 | IFS=$as_save_IFS |
| 6711 | test -z "$as_dir" && as_dir=. |
| 6712 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6714 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6716 | break 2 |
| 6717 | fi |
| 6718 | done |
| 6719 | done |
| 6720 | IFS=$as_save_IFS |
| 6721 | |
| 6722 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6723 | ;; |
| 6724 | esac |
| 6725 | fi |
| 6726 | CP=$ac_cv_path_CP |
| 6727 | if test -n "$CP"; then |
| 6728 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6729 | echo "${ECHO_T}$CP" >&6; } |
| 6730 | else |
| 6731 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6732 | echo "${ECHO_T}no" >&6; } |
| 6733 | fi |
| 6734 | |
| 6735 | |
| 6736 | # Extract the first word of "date", so it can be a program name with args. |
| 6737 | set dummy date; ac_word=$2 |
| 6738 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6740 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6742 | else |
| 6743 | case $DATE in |
| 6744 | [\\/]* | ?:[\\/]*) |
| 6745 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6746 | ;; |
| 6747 | *) |
| 6748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6749 | for as_dir in $PATH |
| 6750 | do |
| 6751 | IFS=$as_save_IFS |
| 6752 | test -z "$as_dir" && as_dir=. |
| 6753 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6755 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6757 | break 2 |
| 6758 | fi |
| 6759 | done |
| 6760 | done |
| 6761 | IFS=$as_save_IFS |
| 6762 | |
| 6763 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6764 | ;; |
| 6765 | esac |
| 6766 | fi |
| 6767 | DATE=$ac_cv_path_DATE |
| 6768 | if test -n "$DATE"; then |
| 6769 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6770 | echo "${ECHO_T}$DATE" >&6; } |
| 6771 | else |
| 6772 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6773 | echo "${ECHO_T}no" >&6; } |
| 6774 | fi |
| 6775 | |
| 6776 | |
| 6777 | # Extract the first word of "find", so it can be a program name with args. |
| 6778 | set dummy find; ac_word=$2 |
| 6779 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6781 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6783 | else |
| 6784 | case $FIND in |
| 6785 | [\\/]* | ?:[\\/]*) |
| 6786 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6787 | ;; |
| 6788 | *) |
| 6789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6790 | for as_dir in $PATH |
| 6791 | do |
| 6792 | IFS=$as_save_IFS |
| 6793 | test -z "$as_dir" && as_dir=. |
| 6794 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6796 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6798 | break 2 |
| 6799 | fi |
| 6800 | done |
| 6801 | done |
| 6802 | IFS=$as_save_IFS |
| 6803 | |
| 6804 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6805 | ;; |
| 6806 | esac |
| 6807 | fi |
| 6808 | FIND=$ac_cv_path_FIND |
| 6809 | if test -n "$FIND"; then |
| 6810 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6811 | echo "${ECHO_T}$FIND" >&6; } |
| 6812 | else |
| 6813 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6814 | echo "${ECHO_T}no" >&6; } |
| 6815 | fi |
| 6816 | |
| 6817 | |
| 6818 | # Extract the first word of "grep", so it can be a program name with args. |
| 6819 | set dummy grep; ac_word=$2 |
| 6820 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6822 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6824 | else |
| 6825 | case $GREP in |
| 6826 | [\\/]* | ?:[\\/]*) |
| 6827 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6828 | ;; |
| 6829 | *) |
| 6830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6831 | for as_dir in $PATH |
| 6832 | do |
| 6833 | IFS=$as_save_IFS |
| 6834 | test -z "$as_dir" && as_dir=. |
| 6835 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6837 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6839 | break 2 |
| 6840 | fi |
| 6841 | done |
| 6842 | done |
| 6843 | IFS=$as_save_IFS |
| 6844 | |
| 6845 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6846 | ;; |
| 6847 | esac |
| 6848 | fi |
| 6849 | GREP=$ac_cv_path_GREP |
| 6850 | if test -n "$GREP"; then |
| 6851 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6852 | echo "${ECHO_T}$GREP" >&6; } |
| 6853 | else |
| 6854 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6855 | echo "${ECHO_T}no" >&6; } |
| 6856 | fi |
| 6857 | |
| 6858 | |
| 6859 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6860 | set dummy mkdir; ac_word=$2 |
| 6861 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6863 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6865 | else |
| 6866 | case $MKDIR in |
| 6867 | [\\/]* | ?:[\\/]*) |
| 6868 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6869 | ;; |
| 6870 | *) |
| 6871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6872 | for as_dir in $PATH |
| 6873 | do |
| 6874 | IFS=$as_save_IFS |
| 6875 | test -z "$as_dir" && as_dir=. |
| 6876 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6878 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6880 | break 2 |
| 6881 | fi |
| 6882 | done |
| 6883 | done |
| 6884 | IFS=$as_save_IFS |
| 6885 | |
| 6886 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6887 | ;; |
| 6888 | esac |
| 6889 | fi |
| 6890 | MKDIR=$ac_cv_path_MKDIR |
| 6891 | if test -n "$MKDIR"; then |
| 6892 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6893 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6894 | else |
| 6895 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6896 | echo "${ECHO_T}no" >&6; } |
| 6897 | fi |
| 6898 | |
| 6899 | |
| 6900 | # Extract the first word of "mv", so it can be a program name with args. |
| 6901 | set dummy mv; ac_word=$2 |
| 6902 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6904 | if test "${ac_cv_path_MV+set}" = set; then |
| 6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6906 | else |
| 6907 | case $MV in |
| 6908 | [\\/]* | ?:[\\/]*) |
| 6909 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6910 | ;; |
| 6911 | *) |
| 6912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6913 | for as_dir in $PATH |
| 6914 | do |
| 6915 | IFS=$as_save_IFS |
| 6916 | test -z "$as_dir" && as_dir=. |
| 6917 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6919 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6921 | break 2 |
| 6922 | fi |
| 6923 | done |
| 6924 | done |
| 6925 | IFS=$as_save_IFS |
| 6926 | |
| 6927 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6928 | ;; |
| 6929 | esac |
| 6930 | fi |
| 6931 | MV=$ac_cv_path_MV |
| 6932 | if test -n "$MV"; then |
| 6933 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6934 | echo "${ECHO_T}$MV" >&6; } |
| 6935 | else |
| 6936 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6937 | echo "${ECHO_T}no" >&6; } |
| 6938 | fi |
| 6939 | |
| 6940 | |
| 6941 | if test -n "$ac_tool_prefix"; then |
| 6942 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6943 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6944 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6946 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6948 | else |
| 6949 | if test -n "$RANLIB"; then |
| 6950 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6951 | else |
| 6952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6953 | for as_dir in $PATH |
| 6954 | do |
| 6955 | IFS=$as_save_IFS |
| 6956 | test -z "$as_dir" && as_dir=. |
| 6957 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6959 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6961 | break 2 |
| 6962 | fi |
| 6963 | done |
| 6964 | done |
| 6965 | IFS=$as_save_IFS |
| 6966 | |
| 6967 | fi |
| 6968 | fi |
| 6969 | RANLIB=$ac_cv_prog_RANLIB |
| 6970 | if test -n "$RANLIB"; then |
| 6971 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6972 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6973 | else |
| 6974 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6975 | echo "${ECHO_T}no" >&6; } |
| 6976 | fi |
| 6977 | |
| 6978 | |
| 6979 | fi |
| 6980 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6981 | ac_ct_RANLIB=$RANLIB |
| 6982 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6983 | set dummy ranlib; ac_word=$2 |
| 6984 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6986 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6988 | else |
| 6989 | if test -n "$ac_ct_RANLIB"; then |
| 6990 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6991 | else |
| 6992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6993 | for as_dir in $PATH |
| 6994 | do |
| 6995 | IFS=$as_save_IFS |
| 6996 | test -z "$as_dir" && as_dir=. |
| 6997 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6999 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7001 | break 2 |
| 7002 | fi |
| 7003 | done |
| 7004 | done |
| 7005 | IFS=$as_save_IFS |
| 7006 | |
| 7007 | fi |
| 7008 | fi |
| 7009 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7010 | if test -n "$ac_ct_RANLIB"; then |
| 7011 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7012 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 7013 | else |
| 7014 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7015 | echo "${ECHO_T}no" >&6; } |
| 7016 | fi |
| 7017 | |
| 7018 | if test "x$ac_ct_RANLIB" = x; then |
| 7019 | RANLIB=":" |
| 7020 | else |
| 7021 | case $cross_compiling:$ac_tool_warned in |
| 7022 | yes:) |
| 7023 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7024 | whose name does not start with the host triplet. If you think this |
| 7025 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7026 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7027 | whose name does not start with the host triplet. If you think this |
| 7028 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7029 | ac_tool_warned=yes ;; |
| 7030 | esac |
| 7031 | RANLIB=$ac_ct_RANLIB |
| 7032 | fi |
| 7033 | else |
| 7034 | RANLIB="$ac_cv_prog_RANLIB" |
| 7035 | fi |
| 7036 | |
| 7037 | # Extract the first word of "rm", so it can be a program name with args. |
| 7038 | set dummy rm; ac_word=$2 |
| 7039 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7041 | if test "${ac_cv_path_RM+set}" = set; then |
| 7042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7043 | else |
| 7044 | case $RM in |
| 7045 | [\\/]* | ?:[\\/]*) |
| 7046 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7047 | ;; |
| 7048 | *) |
| 7049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7050 | for as_dir in $PATH |
| 7051 | do |
| 7052 | IFS=$as_save_IFS |
| 7053 | test -z "$as_dir" && as_dir=. |
| 7054 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7056 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 7057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7058 | break 2 |
| 7059 | fi |
| 7060 | done |
| 7061 | done |
| 7062 | IFS=$as_save_IFS |
| 7063 | |
| 7064 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7065 | ;; |
| 7066 | esac |
| 7067 | fi |
| 7068 | RM=$ac_cv_path_RM |
| 7069 | if test -n "$RM"; then |
| 7070 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7071 | echo "${ECHO_T}$RM" >&6; } |
| 7072 | else |
| 7073 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7074 | echo "${ECHO_T}no" >&6; } |
| 7075 | fi |
| 7076 | |
| 7077 | |
| 7078 | # Extract the first word of "sed", so it can be a program name with args. |
| 7079 | set dummy sed; ac_word=$2 |
| 7080 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7082 | if test "${ac_cv_path_SED+set}" = set; then |
| 7083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7084 | else |
| 7085 | case $SED in |
| 7086 | [\\/]* | ?:[\\/]*) |
| 7087 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7088 | ;; |
| 7089 | *) |
| 7090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7091 | for as_dir in $PATH |
| 7092 | do |
| 7093 | IFS=$as_save_IFS |
| 7094 | test -z "$as_dir" && as_dir=. |
| 7095 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7097 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 7098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7099 | break 2 |
| 7100 | fi |
| 7101 | done |
| 7102 | done |
| 7103 | IFS=$as_save_IFS |
| 7104 | |
| 7105 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7106 | ;; |
| 7107 | esac |
| 7108 | fi |
| 7109 | SED=$ac_cv_path_SED |
| 7110 | if test -n "$SED"; then |
| 7111 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7112 | echo "${ECHO_T}$SED" >&6; } |
| 7113 | else |
| 7114 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7115 | echo "${ECHO_T}no" >&6; } |
| 7116 | fi |
| 7117 | |
| 7118 | |
| 7119 | # Extract the first word of "tar", so it can be a program name with args. |
| 7120 | set dummy tar; ac_word=$2 |
| 7121 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7123 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7125 | else |
| 7126 | case $TAR in |
| 7127 | [\\/]* | ?:[\\/]*) |
| 7128 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7129 | ;; |
| 7130 | *) |
| 7131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7132 | for as_dir in $PATH |
| 7133 | do |
| 7134 | IFS=$as_save_IFS |
| 7135 | test -z "$as_dir" && as_dir=. |
| 7136 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7138 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7140 | break 2 |
| 7141 | fi |
| 7142 | done |
| 7143 | done |
| 7144 | IFS=$as_save_IFS |
| 7145 | |
| 7146 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7147 | ;; |
| 7148 | esac |
| 7149 | fi |
| 7150 | TAR=$ac_cv_path_TAR |
| 7151 | if test -n "$TAR"; then |
| 7152 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7153 | echo "${ECHO_T}$TAR" >&6; } |
| 7154 | else |
| 7155 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7156 | echo "${ECHO_T}no" >&6; } |
| 7157 | fi |
| 7158 | |
| 7159 | |
| 7160 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7161 | set dummy pwd; ac_word=$2 |
| 7162 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7164 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7166 | else |
| 7167 | case $BINPWD in |
| 7168 | [\\/]* | ?:[\\/]*) |
| 7169 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7170 | ;; |
| 7171 | *) |
| 7172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7173 | for as_dir in $PATH |
| 7174 | do |
| 7175 | IFS=$as_save_IFS |
| 7176 | test -z "$as_dir" && as_dir=. |
| 7177 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7179 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7181 | break 2 |
| 7182 | fi |
| 7183 | done |
| 7184 | done |
| 7185 | IFS=$as_save_IFS |
| 7186 | |
| 7187 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7188 | ;; |
| 7189 | esac |
| 7190 | fi |
| 7191 | BINPWD=$ac_cv_path_BINPWD |
| 7192 | if test -n "$BINPWD"; then |
| 7193 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7194 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7195 | else |
| 7196 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7197 | echo "${ECHO_T}no" >&6; } |
| 7198 | fi |
| 7199 | |
| 7200 | |
| 7201 | |
| 7202 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7203 | set dummy Graphviz; ac_word=$2 |
| 7204 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7206 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7208 | else |
| 7209 | case $GRAPHVIZ in |
| 7210 | [\\/]* | ?:[\\/]*) |
| 7211 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7212 | ;; |
| 7213 | *) |
| 7214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7215 | for as_dir in $PATH |
| 7216 | do |
| 7217 | IFS=$as_save_IFS |
| 7218 | test -z "$as_dir" && as_dir=. |
| 7219 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7221 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7223 | break 2 |
| 7224 | fi |
| 7225 | done |
| 7226 | done |
| 7227 | IFS=$as_save_IFS |
| 7228 | |
| 7229 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7230 | ;; |
| 7231 | esac |
| 7232 | fi |
| 7233 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7234 | if test -n "$GRAPHVIZ"; then |
| 7235 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7236 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7237 | else |
| 7238 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7239 | echo "${ECHO_T}no" >&6; } |
| 7240 | fi |
| 7241 | |
| 7242 | |
| 7243 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7244 | |
| 7245 | cat >>confdefs.h <<\_ACEOF |
| 7246 | #define HAVE_GRAPHVIZ 1 |
| 7247 | _ACEOF |
| 7248 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7249 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7250 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7251 | fi |
| 7252 | |
| 7253 | cat >>confdefs.h <<_ACEOF |
| 7254 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7255 | _ACEOF |
| 7256 | |
| 7257 | fi |
| 7258 | # Extract the first word of "dot", so it can be a program name with args. |
| 7259 | set dummy dot; ac_word=$2 |
| 7260 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7262 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7264 | else |
| 7265 | case $DOT in |
| 7266 | [\\/]* | ?:[\\/]*) |
| 7267 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7268 | ;; |
| 7269 | *) |
| 7270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7271 | for as_dir in $PATH |
| 7272 | do |
| 7273 | IFS=$as_save_IFS |
| 7274 | test -z "$as_dir" && as_dir=. |
| 7275 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7277 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7279 | break 2 |
| 7280 | fi |
| 7281 | done |
| 7282 | done |
| 7283 | IFS=$as_save_IFS |
| 7284 | |
| 7285 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7286 | ;; |
| 7287 | esac |
| 7288 | fi |
| 7289 | DOT=$ac_cv_path_DOT |
| 7290 | if test -n "$DOT"; then |
| 7291 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7292 | echo "${ECHO_T}$DOT" >&6; } |
| 7293 | else |
| 7294 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7295 | echo "${ECHO_T}no" >&6; } |
| 7296 | fi |
| 7297 | |
| 7298 | |
| 7299 | if test "$DOT" != "echo dot" ; then |
| 7300 | |
| 7301 | cat >>confdefs.h <<\_ACEOF |
| 7302 | #define HAVE_DOT 1 |
| 7303 | _ACEOF |
| 7304 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7305 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7306 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7307 | fi |
| 7308 | |
| 7309 | cat >>confdefs.h <<_ACEOF |
| 7310 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7311 | _ACEOF |
| 7312 | |
| 7313 | fi |
| 7314 | for ac_prog in gv gsview32 |
| 7315 | do |
| 7316 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7317 | set dummy $ac_prog; ac_word=$2 |
| 7318 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7319 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7320 | if test "${ac_cv_path_GV+set}" = set; then |
| 7321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7322 | else |
| 7323 | case $GV in |
| 7324 | [\\/]* | ?:[\\/]*) |
| 7325 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7326 | ;; |
| 7327 | *) |
| 7328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7329 | for as_dir in $PATH |
| 7330 | do |
| 7331 | IFS=$as_save_IFS |
| 7332 | test -z "$as_dir" && as_dir=. |
| 7333 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7335 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7336 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7337 | break 2 |
| 7338 | fi |
| 7339 | done |
| 7340 | done |
| 7341 | IFS=$as_save_IFS |
| 7342 | |
| 7343 | ;; |
| 7344 | esac |
| 7345 | fi |
| 7346 | GV=$ac_cv_path_GV |
| 7347 | if test -n "$GV"; then |
| 7348 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7349 | echo "${ECHO_T}$GV" >&6; } |
| 7350 | else |
| 7351 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7352 | echo "${ECHO_T}no" >&6; } |
| 7353 | fi |
| 7354 | |
| 7355 | |
| 7356 | test -n "$GV" && break |
| 7357 | done |
| 7358 | test -n "$GV" || GV="echo gv" |
| 7359 | |
| 7360 | if test "$GV" != "echo gv" ; then |
| 7361 | |
| 7362 | cat >>confdefs.h <<\_ACEOF |
| 7363 | #define HAVE_GV 1 |
| 7364 | _ACEOF |
| 7365 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7366 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7367 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7368 | fi |
| 7369 | |
| 7370 | cat >>confdefs.h <<_ACEOF |
| 7371 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7372 | _ACEOF |
| 7373 | |
| 7374 | fi |
| 7375 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7376 | set dummy dotty; ac_word=$2 |
| 7377 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7379 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7381 | else |
| 7382 | case $DOTTY in |
| 7383 | [\\/]* | ?:[\\/]*) |
| 7384 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7385 | ;; |
| 7386 | *) |
| 7387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7388 | for as_dir in $PATH |
| 7389 | do |
| 7390 | IFS=$as_save_IFS |
| 7391 | test -z "$as_dir" && as_dir=. |
| 7392 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7394 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7396 | break 2 |
| 7397 | fi |
| 7398 | done |
| 7399 | done |
| 7400 | IFS=$as_save_IFS |
| 7401 | |
| 7402 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7403 | ;; |
| 7404 | esac |
| 7405 | fi |
| 7406 | DOTTY=$ac_cv_path_DOTTY |
| 7407 | if test -n "$DOTTY"; then |
| 7408 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7409 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7410 | else |
| 7411 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7412 | echo "${ECHO_T}no" >&6; } |
| 7413 | fi |
| 7414 | |
| 7415 | |
| 7416 | if test "$DOTTY" != "echo dotty" ; then |
| 7417 | |
| 7418 | cat >>confdefs.h <<\_ACEOF |
| 7419 | #define HAVE_DOTTY 1 |
| 7420 | _ACEOF |
| 7421 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7422 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7423 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7424 | fi |
| 7425 | |
| 7426 | cat >>confdefs.h <<_ACEOF |
| 7427 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7428 | _ACEOF |
| 7429 | |
| 7430 | fi |
| 7431 | |
| 7432 | |
| 7433 | # Extract the first word of "perl", so it can be a program name with args. |
| 7434 | set dummy perl; ac_word=$2 |
| 7435 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7437 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7439 | else |
| 7440 | case $PERL in |
| 7441 | [\\/]* | ?:[\\/]*) |
| 7442 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7443 | ;; |
| 7444 | *) |
| 7445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7446 | for as_dir in $PATH |
| 7447 | do |
| 7448 | IFS=$as_save_IFS |
| 7449 | test -z "$as_dir" && as_dir=. |
| 7450 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7452 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7454 | break 2 |
| 7455 | fi |
| 7456 | done |
| 7457 | done |
| 7458 | IFS=$as_save_IFS |
| 7459 | |
| 7460 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7461 | ;; |
| 7462 | esac |
| 7463 | fi |
| 7464 | PERL=$ac_cv_path_PERL |
| 7465 | if test -n "$PERL"; then |
| 7466 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7467 | echo "${ECHO_T}$PERL" >&6; } |
| 7468 | else |
| 7469 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7470 | echo "${ECHO_T}no" >&6; } |
| 7471 | fi |
| 7472 | |
| 7473 | |
| 7474 | if test "$PERL" != "none"; then |
| 7475 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7476 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7477 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7478 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7479 | echo "${ECHO_T}yes" >&6; } |
| 7480 | else |
| 7481 | PERL=none |
| 7482 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7483 | echo "${ECHO_T}not found" >&6; } |
| 7484 | fi |
| 7485 | fi |
| 7486 | |
| 7487 | |
| 7488 | if test x"$PERL" = xnone; then |
| 7489 | HAVE_PERL=0 |
| 7490 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7491 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7492 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7493 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7494 | else |
| 7495 | HAVE_PERL=1 |
| 7496 | |
| 7497 | fi |
| 7498 | |
| 7499 | # Find a good install program. We prefer a C program (faster), |
| 7500 | # so one script is as good as another. But avoid the broken or |
| 7501 | # incompatible versions: |
| 7502 | # SysV /etc/install, /usr/sbin/install |
| 7503 | # SunOS /usr/etc/install |
| 7504 | # IRIX /sbin/install |
| 7505 | # AIX /bin/install |
| 7506 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7507 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7508 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7509 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7510 | # OS/2's system install, which has a completely different semantic |
| 7511 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7512 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7513 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7514 | if test -z "$INSTALL"; then |
| 7515 | if test "${ac_cv_path_install+set}" = set; then |
| 7516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7517 | else |
| 7518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7519 | for as_dir in $PATH |
| 7520 | do |
| 7521 | IFS=$as_save_IFS |
| 7522 | test -z "$as_dir" && as_dir=. |
| 7523 | # Account for people who put trailing slashes in PATH elements. |
| 7524 | case $as_dir/ in |
| 7525 | ./ | .// | /cC/* | \ |
| 7526 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7527 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7528 | /usr/ucb/* ) ;; |
| 7529 | *) |
| 7530 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7531 | # Don't use installbsd from OSF since it installs stuff as root |
| 7532 | # by default. |
| 7533 | for ac_prog in ginstall scoinst install; do |
| 7534 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7535 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7536 | if test $ac_prog = install && |
| 7537 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7538 | # AIX install. It has an incompatible calling convention. |
| 7539 | : |
| 7540 | elif test $ac_prog = install && |
| 7541 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7542 | # program-specific install script used by HP pwplus--don't use. |
| 7543 | : |
| 7544 | else |
| 7545 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7546 | break 3 |
| 7547 | fi |
| 7548 | fi |
| 7549 | done |
| 7550 | done |
| 7551 | ;; |
| 7552 | esac |
| 7553 | done |
| 7554 | IFS=$as_save_IFS |
| 7555 | |
| 7556 | |
| 7557 | fi |
| 7558 | if test "${ac_cv_path_install+set}" = set; then |
| 7559 | INSTALL=$ac_cv_path_install |
| 7560 | else |
| 7561 | # As a last resort, use the slow shell script. Don't cache a |
| 7562 | # value for INSTALL within a source directory, because that will |
| 7563 | # break other packages using the cache if that directory is |
| 7564 | # removed, or if the value is a relative name. |
| 7565 | INSTALL=$ac_install_sh |
| 7566 | fi |
| 7567 | fi |
| 7568 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7569 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7570 | |
| 7571 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7572 | # It thinks the first close brace ends the variable substitution. |
| 7573 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7574 | |
| 7575 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7576 | |
| 7577 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7578 | |
| 7579 | |
| 7580 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7581 | set dummy bzip2; ac_word=$2 |
| 7582 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7584 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7586 | else |
| 7587 | case $BZIP2 in |
| 7588 | [\\/]* | ?:[\\/]*) |
| 7589 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7590 | ;; |
| 7591 | *) |
| 7592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7593 | for as_dir in $PATH |
| 7594 | do |
| 7595 | IFS=$as_save_IFS |
| 7596 | test -z "$as_dir" && as_dir=. |
| 7597 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7599 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7601 | break 2 |
| 7602 | fi |
| 7603 | done |
| 7604 | done |
| 7605 | IFS=$as_save_IFS |
| 7606 | |
| 7607 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found"" |
| 7608 | ;; |
| 7609 | esac |
| 7610 | fi |
| 7611 | BZIP2=$ac_cv_path_BZIP2 |
| 7612 | if test -n "$BZIP2"; then |
| 7613 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7614 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7615 | else |
| 7616 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7617 | echo "${ECHO_T}no" >&6; } |
| 7618 | fi |
| 7619 | |
| 7620 | |
| 7621 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7622 | set dummy doxygen; ac_word=$2 |
| 7623 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7625 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7627 | else |
| 7628 | case $DOXYGEN in |
| 7629 | [\\/]* | ?:[\\/]*) |
| 7630 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7631 | ;; |
| 7632 | *) |
| 7633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7634 | for as_dir in $PATH |
| 7635 | do |
| 7636 | IFS=$as_save_IFS |
| 7637 | test -z "$as_dir" && as_dir=. |
| 7638 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7640 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7642 | break 2 |
| 7643 | fi |
| 7644 | done |
| 7645 | done |
| 7646 | IFS=$as_save_IFS |
| 7647 | |
| 7648 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found"" |
| 7649 | ;; |
| 7650 | esac |
| 7651 | fi |
| 7652 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7653 | if test -n "$DOXYGEN"; then |
| 7654 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7655 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7656 | else |
| 7657 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7658 | echo "${ECHO_T}no" >&6; } |
| 7659 | fi |
| 7660 | |
| 7661 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7662 | # Extract the first word of "groff", so it can be a program name with args. |
| 7663 | set dummy groff; ac_word=$2 |
| 7664 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7666 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7668 | else |
| 7669 | case $GROFF in |
| 7670 | [\\/]* | ?:[\\/]*) |
| 7671 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7672 | ;; |
| 7673 | *) |
| 7674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7675 | for as_dir in $PATH |
| 7676 | do |
| 7677 | IFS=$as_save_IFS |
| 7678 | test -z "$as_dir" && as_dir=. |
| 7679 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7681 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7683 | break 2 |
| 7684 | fi |
| 7685 | done |
| 7686 | done |
| 7687 | IFS=$as_save_IFS |
| 7688 | |
| 7689 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found"" |
| 7690 | ;; |
| 7691 | esac |
| 7692 | fi |
| 7693 | GROFF=$ac_cv_path_GROFF |
| 7694 | if test -n "$GROFF"; then |
| 7695 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7696 | echo "${ECHO_T}$GROFF" >&6; } |
| 7697 | else |
| 7698 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7699 | echo "${ECHO_T}no" >&6; } |
| 7700 | fi |
| 7701 | |
| 7702 | |
| 7703 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7704 | set dummy gzip; ac_word=$2 |
| 7705 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7707 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7709 | else |
| 7710 | case $GZIP in |
| 7711 | [\\/]* | ?:[\\/]*) |
| 7712 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7713 | ;; |
| 7714 | *) |
| 7715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7716 | for as_dir in $PATH |
| 7717 | do |
| 7718 | IFS=$as_save_IFS |
| 7719 | test -z "$as_dir" && as_dir=. |
| 7720 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7722 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7724 | break 2 |
| 7725 | fi |
| 7726 | done |
| 7727 | done |
| 7728 | IFS=$as_save_IFS |
| 7729 | |
| 7730 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found"" |
| 7731 | ;; |
| 7732 | esac |
| 7733 | fi |
| 7734 | GZIP=$ac_cv_path_GZIP |
| 7735 | if test -n "$GZIP"; then |
| 7736 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7737 | echo "${ECHO_T}$GZIP" >&6; } |
| 7738 | else |
| 7739 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7740 | echo "${ECHO_T}no" >&6; } |
| 7741 | fi |
| 7742 | |
| 7743 | |
| 7744 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7745 | set dummy pod2html; ac_word=$2 |
| 7746 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7748 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7750 | else |
| 7751 | case $POD2HTML in |
| 7752 | [\\/]* | ?:[\\/]*) |
| 7753 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7754 | ;; |
| 7755 | *) |
| 7756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7757 | for as_dir in $PATH |
| 7758 | do |
| 7759 | IFS=$as_save_IFS |
| 7760 | test -z "$as_dir" && as_dir=. |
| 7761 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7763 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7765 | break 2 |
| 7766 | fi |
| 7767 | done |
| 7768 | done |
| 7769 | IFS=$as_save_IFS |
| 7770 | |
| 7771 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found"" |
| 7772 | ;; |
| 7773 | esac |
| 7774 | fi |
| 7775 | POD2HTML=$ac_cv_path_POD2HTML |
| 7776 | if test -n "$POD2HTML"; then |
| 7777 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7778 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7779 | else |
| 7780 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7781 | echo "${ECHO_T}no" >&6; } |
| 7782 | fi |
| 7783 | |
| 7784 | |
| 7785 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7786 | set dummy pod2man; ac_word=$2 |
| 7787 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7789 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7791 | else |
| 7792 | case $POD2MAN in |
| 7793 | [\\/]* | ?:[\\/]*) |
| 7794 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7795 | ;; |
| 7796 | *) |
| 7797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7798 | for as_dir in $PATH |
| 7799 | do |
| 7800 | IFS=$as_save_IFS |
| 7801 | test -z "$as_dir" && as_dir=. |
| 7802 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7804 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7806 | break 2 |
| 7807 | fi |
| 7808 | done |
| 7809 | done |
| 7810 | IFS=$as_save_IFS |
| 7811 | |
| 7812 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found"" |
| 7813 | ;; |
| 7814 | esac |
| 7815 | fi |
| 7816 | POD2MAN=$ac_cv_path_POD2MAN |
| 7817 | if test -n "$POD2MAN"; then |
| 7818 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7819 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7820 | else |
| 7821 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7822 | echo "${ECHO_T}no" >&6; } |
| 7823 | fi |
| 7824 | |
| 7825 | |
| 7826 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7827 | set dummy runtest; ac_word=$2 |
| 7828 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7830 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7832 | else |
| 7833 | case $RUNTEST in |
| 7834 | [\\/]* | ?:[\\/]*) |
| 7835 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7836 | ;; |
| 7837 | *) |
| 7838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7839 | for as_dir in $PATH |
| 7840 | do |
| 7841 | IFS=$as_save_IFS |
| 7842 | test -z "$as_dir" && as_dir=. |
| 7843 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7845 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7847 | break 2 |
| 7848 | fi |
| 7849 | done |
| 7850 | done |
| 7851 | IFS=$as_save_IFS |
| 7852 | |
| 7853 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found"" |
| 7854 | ;; |
| 7855 | esac |
| 7856 | fi |
| 7857 | RUNTEST=$ac_cv_path_RUNTEST |
| 7858 | if test -n "$RUNTEST"; then |
| 7859 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7860 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7861 | else |
| 7862 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7863 | echo "${ECHO_T}no" >&6; } |
| 7864 | fi |
| 7865 | |
| 7866 | |
| 7867 | |
| 7868 | no_itcl=true |
| 7869 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7870 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7871 | |
| 7872 | # Check whether --with-tclinclude was given. |
| 7873 | if test "${with_tclinclude+set}" = set; then |
| 7874 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7875 | else |
| 7876 | with_tclinclude='' |
| 7877 | fi |
| 7878 | |
| 7879 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7881 | else |
| 7882 | |
| 7883 | if test x"${with_tclinclude}" != x ; then |
| 7884 | if test -f ${with_tclinclude}/tclsh ; then |
| 7885 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7886 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7887 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7888 | else |
| 7889 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7890 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7891 | { (exit 1); exit 1; }; } |
| 7892 | fi |
| 7893 | fi |
| 7894 | |
| 7895 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7896 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7897 | echo "${ECHO_T}none" >&6; } |
| 7898 | 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 |
| 7899 | do |
| 7900 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7901 | set dummy $ac_prog; ac_word=$2 |
| 7902 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7904 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7906 | else |
| 7907 | case $TCLSH in |
| 7908 | [\\/]* | ?:[\\/]*) |
| 7909 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7910 | ;; |
| 7911 | *) |
| 7912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7913 | for as_dir in $PATH |
| 7914 | do |
| 7915 | IFS=$as_save_IFS |
| 7916 | test -z "$as_dir" && as_dir=. |
| 7917 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7919 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7921 | break 2 |
| 7922 | fi |
| 7923 | done |
| 7924 | done |
| 7925 | IFS=$as_save_IFS |
| 7926 | |
| 7927 | ;; |
| 7928 | esac |
| 7929 | fi |
| 7930 | TCLSH=$ac_cv_path_TCLSH |
| 7931 | if test -n "$TCLSH"; then |
| 7932 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7933 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7934 | else |
| 7935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7936 | echo "${ECHO_T}no" >&6; } |
| 7937 | fi |
| 7938 | |
| 7939 | |
| 7940 | test -n "$TCLSH" && break |
| 7941 | done |
| 7942 | |
| 7943 | if test x"${TCLSH}" = x ; then |
| 7944 | ac_cv_path_tclsh=''; |
| 7945 | else |
| 7946 | ac_cv_path_tclsh="${TCLSH}"; |
| 7947 | fi |
| 7948 | else |
| 7949 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7950 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7951 | TCLSH="${ac_cv_path_tclsh}" |
| 7952 | |
| 7953 | fi |
| 7954 | |
| 7955 | fi |
| 7956 | |
| 7957 | # Extract the first word of "zip", so it can be a program name with args. |
| 7958 | set dummy zip; ac_word=$2 |
| 7959 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7961 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7963 | else |
| 7964 | case $ZIP in |
| 7965 | [\\/]* | ?:[\\/]*) |
| 7966 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7967 | ;; |
| 7968 | *) |
| 7969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7970 | for as_dir in $PATH |
| 7971 | do |
| 7972 | IFS=$as_save_IFS |
| 7973 | test -z "$as_dir" && as_dir=. |
| 7974 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7976 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7978 | break 2 |
| 7979 | fi |
| 7980 | done |
| 7981 | done |
| 7982 | IFS=$as_save_IFS |
| 7983 | |
| 7984 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found"" |
| 7985 | ;; |
| 7986 | esac |
| 7987 | fi |
| 7988 | ZIP=$ac_cv_path_ZIP |
| 7989 | if test -n "$ZIP"; then |
| 7990 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7991 | echo "${ECHO_T}$ZIP" >&6; } |
| 7992 | else |
| 7993 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7994 | echo "${ECHO_T}no" >&6; } |
| 7995 | fi |
| 7996 | |
| 7997 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7998 | # Extract the first word of "ocamlc", so it can be a program name with args. |
| 7999 | set dummy ocamlc; ac_word=$2 |
| 8000 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8001 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8002 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8004 | else |
| 8005 | case $OCAMLC in |
| 8006 | [\\/]* | ?:[\\/]*) |
| 8007 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8008 | ;; |
| 8009 | *) |
| 8010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8011 | for as_dir in $PATH |
| 8012 | do |
| 8013 | IFS=$as_save_IFS |
| 8014 | test -z "$as_dir" && as_dir=. |
| 8015 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8017 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 8018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8019 | break 2 |
| 8020 | fi |
| 8021 | done |
| 8022 | done |
| 8023 | IFS=$as_save_IFS |
| 8024 | |
| 8025 | test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found"" |
| 8026 | ;; |
| 8027 | esac |
| 8028 | fi |
| 8029 | OCAMLC=$ac_cv_path_OCAMLC |
| 8030 | if test -n "$OCAMLC"; then |
| 8031 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8032 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 8033 | else |
| 8034 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8035 | echo "${ECHO_T}no" >&6; } |
| 8036 | fi |
| 8037 | |
| 8038 | |
| 8039 | # Extract the first word of "ocamlopt", so it can be a program name with args. |
| 8040 | set dummy ocamlopt; ac_word=$2 |
| 8041 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8043 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8045 | else |
| 8046 | case $OCAMLOPT in |
| 8047 | [\\/]* | ?:[\\/]*) |
| 8048 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8049 | ;; |
| 8050 | *) |
| 8051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8052 | for as_dir in $PATH |
| 8053 | do |
| 8054 | IFS=$as_save_IFS |
| 8055 | test -z "$as_dir" && as_dir=. |
| 8056 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8058 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8060 | break 2 |
| 8061 | fi |
| 8062 | done |
| 8063 | done |
| 8064 | IFS=$as_save_IFS |
| 8065 | |
| 8066 | test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found"" |
| 8067 | ;; |
| 8068 | esac |
| 8069 | fi |
| 8070 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8071 | if test -n "$OCAMLOPT"; then |
| 8072 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8073 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 8074 | else |
| 8075 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8076 | echo "${ECHO_T}no" >&6; } |
| 8077 | fi |
| 8078 | |
| 8079 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8080 | # Extract the first word of "ocamldep", so it can be a program name with args. |
| 8081 | set dummy ocamldep; ac_word=$2 |
| 8082 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8084 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8086 | else |
| 8087 | case $OCAMLDEP in |
| 8088 | [\\/]* | ?:[\\/]*) |
| 8089 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8090 | ;; |
| 8091 | *) |
| 8092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8093 | for as_dir in $PATH |
| 8094 | do |
| 8095 | IFS=$as_save_IFS |
| 8096 | test -z "$as_dir" && as_dir=. |
| 8097 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8098 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8099 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 8100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8101 | break 2 |
| 8102 | fi |
| 8103 | done |
| 8104 | done |
| 8105 | IFS=$as_save_IFS |
| 8106 | |
| 8107 | test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found"" |
| 8108 | ;; |
| 8109 | esac |
| 8110 | fi |
| 8111 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8112 | if test -n "$OCAMLDEP"; then |
| 8113 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8114 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 8115 | else |
| 8116 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8117 | echo "${ECHO_T}no" >&6; } |
| 8118 | fi |
| 8119 | |
| 8120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8121 | |
| 8122 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8123 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8124 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8126 | else |
| 8127 | ac_ext=c |
| 8128 | ac_cpp='$CPP $CPPFLAGS' |
| 8129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8132 | |
| 8133 | oldcflags="$CFLAGS" |
| 8134 | CFLAGS="$CFLAGS -Wl,-R." |
| 8135 | cat >conftest.$ac_ext <<_ACEOF |
| 8136 | /* confdefs.h. */ |
| 8137 | _ACEOF |
| 8138 | cat confdefs.h >>conftest.$ac_ext |
| 8139 | cat >>conftest.$ac_ext <<_ACEOF |
| 8140 | /* end confdefs.h. */ |
| 8141 | |
| 8142 | int |
| 8143 | main () |
| 8144 | { |
| 8145 | int main() { return 0; } |
| 8146 | ; |
| 8147 | return 0; |
| 8148 | } |
| 8149 | _ACEOF |
| 8150 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8151 | if { (ac_try="$ac_link" |
| 8152 | case "(($ac_try" in |
| 8153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8154 | *) ac_try_echo=$ac_try;; |
| 8155 | esac |
| 8156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8157 | (eval "$ac_link") 2>conftest.er1 |
| 8158 | ac_status=$? |
| 8159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8160 | rm -f conftest.er1 |
| 8161 | cat conftest.err >&5 |
| 8162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8163 | (exit $ac_status); } && |
| 8164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8165 | { (case "(($ac_try" in |
| 8166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8167 | *) ac_try_echo=$ac_try;; |
| 8168 | esac |
| 8169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8170 | (eval "$ac_try") 2>&5 |
| 8171 | ac_status=$? |
| 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); }; } && |
| 8174 | { ac_try='test -s conftest$ac_exeext' |
| 8175 | { (case "(($ac_try" in |
| 8176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8177 | *) ac_try_echo=$ac_try;; |
| 8178 | esac |
| 8179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8180 | (eval "$ac_try") 2>&5 |
| 8181 | ac_status=$? |
| 8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8183 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8184 | llvm_cv_link_use_r=yes |
| 8185 | else |
| 8186 | echo "$as_me: failed program was:" >&5 |
| 8187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8188 | |
| 8189 | llvm_cv_link_use_r=no |
| 8190 | fi |
| 8191 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8192 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8193 | conftest$ac_exeext conftest.$ac_ext |
| 8194 | CFLAGS="$oldcflags" |
| 8195 | ac_ext=c |
| 8196 | ac_cpp='$CPP $CPPFLAGS' |
| 8197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8200 | |
| 8201 | |
| 8202 | fi |
| 8203 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8204 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8205 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8206 | |
| 8207 | cat >>confdefs.h <<\_ACEOF |
| 8208 | #define HAVE_LINK_R 1 |
| 8209 | _ACEOF |
| 8210 | |
| 8211 | fi |
| 8212 | |
| 8213 | |
| 8214 | |
| 8215 | |
| 8216 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8217 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8218 | if test "${ac_cv_c_const+set}" = set; then |
| 8219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8220 | else |
| 8221 | cat >conftest.$ac_ext <<_ACEOF |
| 8222 | /* confdefs.h. */ |
| 8223 | _ACEOF |
| 8224 | cat confdefs.h >>conftest.$ac_ext |
| 8225 | cat >>conftest.$ac_ext <<_ACEOF |
| 8226 | /* end confdefs.h. */ |
| 8227 | |
| 8228 | int |
| 8229 | main () |
| 8230 | { |
| 8231 | /* FIXME: Include the comments suggested by Paul. */ |
| 8232 | #ifndef __cplusplus |
| 8233 | /* Ultrix mips cc rejects this. */ |
| 8234 | typedef int charset[2]; |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8235 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8236 | /* SunOS 4.1.1 cc rejects this. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8237 | char const *const *ccp; |
| 8238 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8239 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8240 | struct point {int x, y;}; |
| 8241 | static struct point const zero = {0,0}; |
| 8242 | /* AIX XL C 1.02.0.0 rejects this. |
| 8243 | It does not let you subtract one const X* pointer from another in |
| 8244 | an arm of an if-expression whose if-part is not a constant |
| 8245 | expression */ |
| 8246 | const char *g = "string"; |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8247 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8248 | /* HPUX 7.0 cc rejects these. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8249 | ++ccp; |
| 8250 | p = (char**) ccp; |
| 8251 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8252 | { /* SCO 3.2v4 cc rejects this. */ |
| 8253 | char *t; |
| 8254 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8255 | |
| 8256 | *t++ = 0; |
| 8257 | if (s) return 0; |
| 8258 | } |
| 8259 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8260 | int x[] = {25, 17}; |
| 8261 | const int *foo = &x[0]; |
| 8262 | ++foo; |
| 8263 | } |
| 8264 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8265 | typedef const int *iptr; |
| 8266 | iptr p = 0; |
| 8267 | ++p; |
| 8268 | } |
| 8269 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8270 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8271 | struct s { int j; const int *ap[3]; }; |
| 8272 | struct s *b; b->j = 5; |
| 8273 | } |
| 8274 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8275 | const int foo = 10; |
| 8276 | if (!foo) return 0; |
| 8277 | } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8278 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8279 | #endif |
| 8280 | |
| 8281 | ; |
| 8282 | return 0; |
| 8283 | } |
| 8284 | _ACEOF |
| 8285 | rm -f conftest.$ac_objext |
| 8286 | if { (ac_try="$ac_compile" |
| 8287 | case "(($ac_try" in |
| 8288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8289 | *) ac_try_echo=$ac_try;; |
| 8290 | esac |
| 8291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8292 | (eval "$ac_compile") 2>conftest.er1 |
| 8293 | ac_status=$? |
| 8294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8295 | rm -f conftest.er1 |
| 8296 | cat conftest.err >&5 |
| 8297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8298 | (exit $ac_status); } && |
| 8299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8300 | { (case "(($ac_try" in |
| 8301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8302 | *) ac_try_echo=$ac_try;; |
| 8303 | esac |
| 8304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8305 | (eval "$ac_try") 2>&5 |
| 8306 | ac_status=$? |
| 8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8308 | (exit $ac_status); }; } && |
| 8309 | { ac_try='test -s conftest.$ac_objext' |
| 8310 | { (case "(($ac_try" in |
| 8311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8312 | *) ac_try_echo=$ac_try;; |
| 8313 | esac |
| 8314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8315 | (eval "$ac_try") 2>&5 |
| 8316 | ac_status=$? |
| 8317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8318 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8319 | ac_cv_c_const=yes |
| 8320 | else |
| 8321 | echo "$as_me: failed program was:" >&5 |
| 8322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8323 | |
| 8324 | ac_cv_c_const=no |
| 8325 | fi |
| 8326 | |
| 8327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8328 | fi |
| 8329 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8330 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8331 | if test $ac_cv_c_const = no; then |
| 8332 | |
| 8333 | cat >>confdefs.h <<\_ACEOF |
| 8334 | #define const |
| 8335 | _ACEOF |
| 8336 | |
| 8337 | fi |
| 8338 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8339 | |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | |
| 8344 | ac_header_dirent=no |
| 8345 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8346 | 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] | 8347 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8348 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8349 | 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] | 8350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8351 | else |
| 8352 | cat >conftest.$ac_ext <<_ACEOF |
| 8353 | /* confdefs.h. */ |
| 8354 | _ACEOF |
| 8355 | cat confdefs.h >>conftest.$ac_ext |
| 8356 | cat >>conftest.$ac_ext <<_ACEOF |
| 8357 | /* end confdefs.h. */ |
| 8358 | #include <sys/types.h> |
| 8359 | #include <$ac_hdr> |
| 8360 | |
| 8361 | int |
| 8362 | main () |
| 8363 | { |
| 8364 | if ((DIR *) 0) |
| 8365 | return 0; |
| 8366 | ; |
| 8367 | return 0; |
| 8368 | } |
| 8369 | _ACEOF |
| 8370 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8371 | if { (ac_try="$ac_compile" |
| 8372 | case "(($ac_try" in |
| 8373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8374 | *) ac_try_echo=$ac_try;; |
| 8375 | esac |
| 8376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8377 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8378 | ac_status=$? |
| 8379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8380 | rm -f conftest.er1 |
| 8381 | cat conftest.err >&5 |
| 8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8383 | (exit $ac_status); } && |
| 8384 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8385 | { (case "(($ac_try" in |
| 8386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8387 | *) ac_try_echo=$ac_try;; |
| 8388 | esac |
| 8389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8390 | (eval "$ac_try") 2>&5 |
| 8391 | ac_status=$? |
| 8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8393 | (exit $ac_status); }; } && |
| 8394 | { ac_try='test -s conftest.$ac_objext' |
| 8395 | { (case "(($ac_try" in |
| 8396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8397 | *) ac_try_echo=$ac_try;; |
| 8398 | esac |
| 8399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8400 | (eval "$ac_try") 2>&5 |
| 8401 | ac_status=$? |
| 8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8403 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8404 | eval "$as_ac_Header=yes" |
| 8405 | else |
| 8406 | echo "$as_me: failed program was:" >&5 |
| 8407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8409 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8410 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8411 | |
| 8412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8413 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8414 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8415 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8416 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8417 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8418 | cat >>confdefs.h <<_ACEOF |
| 8419 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8420 | _ACEOF |
| 8421 | |
| 8422 | ac_header_dirent=$ac_hdr; break |
| 8423 | fi |
| 8424 | |
| 8425 | done |
| 8426 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8427 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8428 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8429 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8430 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8432 | else |
| 8433 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8434 | cat >conftest.$ac_ext <<_ACEOF |
| 8435 | /* confdefs.h. */ |
| 8436 | _ACEOF |
| 8437 | cat confdefs.h >>conftest.$ac_ext |
| 8438 | cat >>conftest.$ac_ext <<_ACEOF |
| 8439 | /* end confdefs.h. */ |
| 8440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8441 | /* Override any GCC internal prototype to avoid an error. |
| 8442 | Use char because int might match the return type of a GCC |
| 8443 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8444 | #ifdef __cplusplus |
| 8445 | extern "C" |
| 8446 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8447 | char opendir (); |
| 8448 | int |
| 8449 | main () |
| 8450 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8451 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8452 | ; |
| 8453 | return 0; |
| 8454 | } |
| 8455 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8456 | for ac_lib in '' dir; do |
| 8457 | if test -z "$ac_lib"; then |
| 8458 | ac_res="none required" |
| 8459 | else |
| 8460 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8461 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8462 | fi |
| 8463 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8464 | if { (ac_try="$ac_link" |
| 8465 | case "(($ac_try" in |
| 8466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8467 | *) ac_try_echo=$ac_try;; |
| 8468 | esac |
| 8469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8470 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8471 | ac_status=$? |
| 8472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8473 | rm -f conftest.er1 |
| 8474 | cat conftest.err >&5 |
| 8475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8476 | (exit $ac_status); } && |
| 8477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8478 | { (case "(($ac_try" in |
| 8479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8480 | *) ac_try_echo=$ac_try;; |
| 8481 | esac |
| 8482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8483 | (eval "$ac_try") 2>&5 |
| 8484 | ac_status=$? |
| 8485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8486 | (exit $ac_status); }; } && |
| 8487 | { ac_try='test -s conftest$ac_exeext' |
| 8488 | { (case "(($ac_try" in |
| 8489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8490 | *) ac_try_echo=$ac_try;; |
| 8491 | esac |
| 8492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8493 | (eval "$ac_try") 2>&5 |
| 8494 | ac_status=$? |
| 8495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8496 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8497 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8498 | else |
| 8499 | echo "$as_me: failed program was:" >&5 |
| 8500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8501 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8502 | |
| 8503 | fi |
| 8504 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8505 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8506 | conftest$ac_exeext |
| 8507 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8508 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8509 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8510 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8511 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8512 | : |
| 8513 | else |
| 8514 | ac_cv_search_opendir=no |
| 8515 | fi |
| 8516 | rm conftest.$ac_ext |
| 8517 | LIBS=$ac_func_search_save_LIBS |
| 8518 | fi |
| 8519 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8520 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8521 | ac_res=$ac_cv_search_opendir |
| 8522 | if test "$ac_res" != no; then |
| 8523 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8524 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8525 | fi |
| 8526 | |
| 8527 | else |
| 8528 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8529 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8530 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8532 | else |
| 8533 | ac_func_search_save_LIBS=$LIBS |
| 8534 | cat >conftest.$ac_ext <<_ACEOF |
| 8535 | /* confdefs.h. */ |
| 8536 | _ACEOF |
| 8537 | cat confdefs.h >>conftest.$ac_ext |
| 8538 | cat >>conftest.$ac_ext <<_ACEOF |
| 8539 | /* end confdefs.h. */ |
| 8540 | |
| 8541 | /* Override any GCC internal prototype to avoid an error. |
| 8542 | Use char because int might match the return type of a GCC |
| 8543 | builtin and then its argument prototype would still apply. */ |
| 8544 | #ifdef __cplusplus |
| 8545 | extern "C" |
| 8546 | #endif |
| 8547 | char opendir (); |
| 8548 | int |
| 8549 | main () |
| 8550 | { |
| 8551 | return opendir (); |
| 8552 | ; |
| 8553 | return 0; |
| 8554 | } |
| 8555 | _ACEOF |
| 8556 | for ac_lib in '' x; do |
| 8557 | if test -z "$ac_lib"; then |
| 8558 | ac_res="none required" |
| 8559 | else |
| 8560 | ac_res=-l$ac_lib |
| 8561 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8562 | fi |
| 8563 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8564 | if { (ac_try="$ac_link" |
| 8565 | case "(($ac_try" in |
| 8566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8567 | *) ac_try_echo=$ac_try;; |
| 8568 | esac |
| 8569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8570 | (eval "$ac_link") 2>conftest.er1 |
| 8571 | ac_status=$? |
| 8572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8573 | rm -f conftest.er1 |
| 8574 | cat conftest.err >&5 |
| 8575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8576 | (exit $ac_status); } && |
| 8577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8578 | { (case "(($ac_try" in |
| 8579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8580 | *) ac_try_echo=$ac_try;; |
| 8581 | esac |
| 8582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8583 | (eval "$ac_try") 2>&5 |
| 8584 | ac_status=$? |
| 8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8586 | (exit $ac_status); }; } && |
| 8587 | { ac_try='test -s conftest$ac_exeext' |
| 8588 | { (case "(($ac_try" in |
| 8589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8590 | *) ac_try_echo=$ac_try;; |
| 8591 | esac |
| 8592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8593 | (eval "$ac_try") 2>&5 |
| 8594 | ac_status=$? |
| 8595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8596 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8597 | ac_cv_search_opendir=$ac_res |
| 8598 | else |
| 8599 | echo "$as_me: failed program was:" >&5 |
| 8600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8601 | |
| 8602 | |
| 8603 | fi |
| 8604 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8605 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8606 | conftest$ac_exeext |
| 8607 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8608 | break |
| 8609 | fi |
| 8610 | done |
| 8611 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8612 | : |
| 8613 | else |
| 8614 | ac_cv_search_opendir=no |
| 8615 | fi |
| 8616 | rm conftest.$ac_ext |
| 8617 | LIBS=$ac_func_search_save_LIBS |
| 8618 | fi |
| 8619 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8620 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8621 | ac_res=$ac_cv_search_opendir |
| 8622 | if test "$ac_res" != no; then |
| 8623 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8624 | |
| 8625 | fi |
| 8626 | |
| 8627 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8628 | |
| 8629 | |
| 8630 | for ac_header in dlfcn.h |
| 8631 | do |
| 8632 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8633 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8634 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8636 | 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] | 8637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8638 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8639 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8640 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8641 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8642 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8643 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8644 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8645 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8646 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8647 | /* confdefs.h. */ |
| 8648 | _ACEOF |
| 8649 | cat confdefs.h >>conftest.$ac_ext |
| 8650 | cat >>conftest.$ac_ext <<_ACEOF |
| 8651 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8652 | $ac_includes_default |
| 8653 | #include <$ac_header> |
| 8654 | _ACEOF |
| 8655 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8656 | if { (ac_try="$ac_compile" |
| 8657 | case "(($ac_try" in |
| 8658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8659 | *) ac_try_echo=$ac_try;; |
| 8660 | esac |
| 8661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8662 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8663 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8665 | rm -f conftest.er1 |
| 8666 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8668 | (exit $ac_status); } && |
| 8669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8670 | { (case "(($ac_try" in |
| 8671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8672 | *) ac_try_echo=$ac_try;; |
| 8673 | esac |
| 8674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8675 | (eval "$ac_try") 2>&5 |
| 8676 | ac_status=$? |
| 8677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8678 | (exit $ac_status); }; } && |
| 8679 | { ac_try='test -s conftest.$ac_objext' |
| 8680 | { (case "(($ac_try" in |
| 8681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8682 | *) ac_try_echo=$ac_try;; |
| 8683 | esac |
| 8684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8685 | (eval "$ac_try") 2>&5 |
| 8686 | ac_status=$? |
| 8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8688 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8689 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8690 | else |
| 8691 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8694 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8696 | |
| 8697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8698 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8699 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8700 | |
| 8701 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8702 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8703 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8704 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8705 | /* confdefs.h. */ |
| 8706 | _ACEOF |
| 8707 | cat confdefs.h >>conftest.$ac_ext |
| 8708 | cat >>conftest.$ac_ext <<_ACEOF |
| 8709 | /* end confdefs.h. */ |
| 8710 | #include <$ac_header> |
| 8711 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8712 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8713 | case "(($ac_try" in |
| 8714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8715 | *) ac_try_echo=$ac_try;; |
| 8716 | esac |
| 8717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8718 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8719 | ac_status=$? |
| 8720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8721 | rm -f conftest.er1 |
| 8722 | cat conftest.err >&5 |
| 8723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8724 | (exit $ac_status); } >/dev/null; then |
| 8725 | if test -s conftest.err; then |
| 8726 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8727 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8728 | else |
| 8729 | ac_cpp_err= |
| 8730 | fi |
| 8731 | else |
| 8732 | ac_cpp_err=yes |
| 8733 | fi |
| 8734 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8735 | ac_header_preproc=yes |
| 8736 | else |
| 8737 | echo "$as_me: failed program was:" >&5 |
| 8738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8739 | |
| 8740 | ac_header_preproc=no |
| 8741 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8742 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8743 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8744 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8745 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8746 | |
| 8747 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8748 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8749 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8750 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8751 | 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] | 8752 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8753 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8754 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8755 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8756 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8757 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8758 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8759 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8760 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8761 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8762 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8763 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8764 | 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] | 8765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8766 | 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] | 8767 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8768 | 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] | 8769 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8770 | ## ----------------------------------- ## |
| 8771 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8772 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8773 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8774 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8775 | ;; |
| 8776 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8777 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8779 | 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] | 8780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8781 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8782 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8783 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8784 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8785 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8786 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8787 | |
| 8788 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8789 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8790 | cat >>confdefs.h <<_ACEOF |
| 8791 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8792 | _ACEOF |
| 8793 | |
| 8794 | fi |
| 8795 | |
| 8796 | done |
| 8797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8798 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8799 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8800 | enableval=$enable_ltdl_install; |
| 8801 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8802 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8803 | |
Duncan Sands | 1eff704 | 2007-12-10 17:43:13 +0000 | [diff] [blame] | 8804 | |
| 8805 | |
| 8806 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8807 | INSTALL_LTDL_TRUE= |
| 8808 | INSTALL_LTDL_FALSE='#' |
| 8809 | else |
| 8810 | INSTALL_LTDL_TRUE='#' |
| 8811 | INSTALL_LTDL_FALSE= |
| 8812 | fi |
| 8813 | |
Duncan Sands | 1eff704 | 2007-12-10 17:43:13 +0000 | [diff] [blame] | 8814 | |
| 8815 | |
| 8816 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8817 | CONVENIENCE_LTDL_TRUE= |
| 8818 | CONVENIENCE_LTDL_FALSE='#' |
| 8819 | else |
| 8820 | CONVENIENCE_LTDL_TRUE='#' |
| 8821 | CONVENIENCE_LTDL_FALSE= |
| 8822 | fi |
| 8823 | |
| 8824 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8825 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8826 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8827 | library_names_spec= |
| 8828 | libname_spec='lib$name' |
| 8829 | soname_spec= |
| 8830 | shrext_cmds=".so" |
| 8831 | postinstall_cmds= |
| 8832 | postuninstall_cmds= |
| 8833 | finish_cmds= |
| 8834 | finish_eval= |
| 8835 | shlibpath_var= |
| 8836 | shlibpath_overrides_runpath=unknown |
| 8837 | version_type=none |
| 8838 | dynamic_linker="$host_os ld.so" |
| 8839 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8840 | if test "$GCC" = yes; then |
| 8841 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8842 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8843 | # if the path contains ";" then we assume it to be the separator |
| 8844 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8845 | # assumed that no part of a normal pathname contains ";" but that should |
| 8846 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8847 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8848 | else |
| 8849 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8850 | fi |
| 8851 | else |
| 8852 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8853 | fi |
| 8854 | need_lib_prefix=unknown |
| 8855 | hardcode_into_libs=no |
| 8856 | |
| 8857 | # when you set need_version to no, make sure it does not cause -set_version |
| 8858 | # flags to be left without arguments |
| 8859 | need_version=unknown |
| 8860 | |
| 8861 | case $host_os in |
| 8862 | aix3*) |
| 8863 | version_type=linux |
| 8864 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8865 | shlibpath_var=LIBPATH |
| 8866 | |
| 8867 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8868 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8869 | ;; |
| 8870 | |
| 8871 | aix4* | aix5*) |
| 8872 | version_type=linux |
| 8873 | need_lib_prefix=no |
| 8874 | need_version=no |
| 8875 | hardcode_into_libs=yes |
| 8876 | if test "$host_cpu" = ia64; then |
| 8877 | # AIX 5 supports IA64 |
| 8878 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8879 | shlibpath_var=LD_LIBRARY_PATH |
| 8880 | else |
| 8881 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8882 | # for dependence libraries. The import file would start with |
| 8883 | # the line `#! .'. This would cause the generated library to |
| 8884 | # depend on `.', always an invalid library. This was fixed in |
| 8885 | # development snapshots of GCC prior to 3.0. |
| 8886 | case $host_os in |
| 8887 | aix4 | aix4.[01] | aix4.[01].*) |
| 8888 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8889 | echo ' yes ' |
| 8890 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8891 | : |
| 8892 | else |
| 8893 | can_build_shared=no |
| 8894 | fi |
| 8895 | ;; |
| 8896 | esac |
| 8897 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8898 | # soname into executable. Probably we can add versioning support to |
| 8899 | # collect2, so additional links can be useful in future. |
| 8900 | if test "$aix_use_runtimelinking" = yes; then |
| 8901 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8902 | # instead of lib<name>.a to let people know that these are not |
| 8903 | # typical AIX shared libraries. |
| 8904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8905 | else |
| 8906 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8907 | # and later when we are not doing run time linking. |
| 8908 | library_names_spec='${libname}${release}.a $libname.a' |
| 8909 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8910 | fi |
| 8911 | shlibpath_var=LIBPATH |
| 8912 | fi |
| 8913 | ;; |
| 8914 | |
| 8915 | amigaos*) |
| 8916 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8917 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8918 | 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' |
| 8919 | ;; |
| 8920 | |
| 8921 | beos*) |
| 8922 | library_names_spec='${libname}${shared_ext}' |
| 8923 | dynamic_linker="$host_os ld.so" |
| 8924 | shlibpath_var=LIBRARY_PATH |
| 8925 | ;; |
| 8926 | |
| 8927 | bsdi[45]*) |
| 8928 | version_type=linux |
| 8929 | need_version=no |
| 8930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8931 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8932 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8933 | shlibpath_var=LD_LIBRARY_PATH |
| 8934 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8935 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8936 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8937 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8938 | # libtool to hard-code these into programs |
| 8939 | ;; |
| 8940 | |
| 8941 | cygwin* | mingw* | pw32*) |
| 8942 | version_type=windows |
| 8943 | shrext_cmds=".dll" |
| 8944 | need_version=no |
| 8945 | need_lib_prefix=no |
| 8946 | |
| 8947 | case $GCC,$host_os in |
| 8948 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8949 | library_names_spec='$libname.dll.a' |
| 8950 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8951 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8952 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8953 | dldir=$destdir/`dirname \$dlpath`~ |
| 8954 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8955 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8956 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8957 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8958 | dlpath=$dir/\$dldll~ |
| 8959 | $rm \$dlpath' |
| 8960 | shlibpath_overrides_runpath=yes |
| 8961 | |
| 8962 | case $host_os in |
| 8963 | cygwin*) |
| 8964 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8965 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8966 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8967 | ;; |
| 8968 | mingw*) |
| 8969 | # MinGW DLLs use traditional 'lib' prefix |
| 8970 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8971 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8972 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8973 | # It is most probably a Windows format PATH printed by |
| 8974 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8975 | # path with ; separators, and with drive letters. We can handle the |
| 8976 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8977 | # especially as we might pass files found there to a mingw objdump, |
| 8978 | # which wouldn't understand a cygwinified path. Ahh. |
| 8979 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8980 | else |
| 8981 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8982 | fi |
| 8983 | ;; |
| 8984 | pw32*) |
| 8985 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8986 | 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] | 8987 | ;; |
| 8988 | esac |
| 8989 | ;; |
| 8990 | |
| 8991 | *) |
| 8992 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8993 | ;; |
| 8994 | esac |
| 8995 | dynamic_linker='Win32 ld.exe' |
| 8996 | # FIXME: first we should search . and the directory the executable is in |
| 8997 | shlibpath_var=PATH |
| 8998 | ;; |
| 8999 | |
| 9000 | darwin* | rhapsody*) |
| 9001 | dynamic_linker="$host_os dyld" |
| 9002 | version_type=darwin |
| 9003 | need_lib_prefix=no |
| 9004 | need_version=no |
| 9005 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9006 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9007 | shlibpath_overrides_runpath=yes |
| 9008 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9009 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9010 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9011 | if test "$GCC" = yes; then |
| 9012 | 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"` |
| 9013 | else |
| 9014 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9015 | fi |
| 9016 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9017 | ;; |
| 9018 | |
| 9019 | dgux*) |
| 9020 | version_type=linux |
| 9021 | need_lib_prefix=no |
| 9022 | need_version=no |
| 9023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9024 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9025 | shlibpath_var=LD_LIBRARY_PATH |
| 9026 | ;; |
| 9027 | |
| 9028 | freebsd1*) |
| 9029 | dynamic_linker=no |
| 9030 | ;; |
| 9031 | |
| 9032 | kfreebsd*-gnu) |
| 9033 | version_type=linux |
| 9034 | need_lib_prefix=no |
| 9035 | need_version=no |
| 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 | shlibpath_overrides_runpath=no |
| 9040 | hardcode_into_libs=yes |
| 9041 | dynamic_linker='GNU ld.so' |
| 9042 | ;; |
| 9043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9044 | freebsd* | dragonfly*) |
| 9045 | # DragonFly does not have aout. When/if they implement a new |
| 9046 | # versioning mechanism, adjust this. |
| 9047 | if test -x /usr/bin/objformat; then |
| 9048 | objformat=`/usr/bin/objformat` |
| 9049 | else |
| 9050 | case $host_os in |
| 9051 | freebsd[123]*) objformat=aout ;; |
| 9052 | *) objformat=elf ;; |
| 9053 | esac |
| 9054 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9055 | version_type=freebsd-$objformat |
| 9056 | case $version_type in |
| 9057 | freebsd-elf*) |
| 9058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9059 | need_version=no |
| 9060 | need_lib_prefix=no |
| 9061 | ;; |
| 9062 | freebsd-*) |
| 9063 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9064 | need_version=yes |
| 9065 | ;; |
| 9066 | esac |
| 9067 | shlibpath_var=LD_LIBRARY_PATH |
| 9068 | case $host_os in |
| 9069 | freebsd2*) |
| 9070 | shlibpath_overrides_runpath=yes |
| 9071 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9072 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9073 | shlibpath_overrides_runpath=yes |
| 9074 | hardcode_into_libs=yes |
| 9075 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9076 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9077 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9078 | shlibpath_overrides_runpath=no |
| 9079 | hardcode_into_libs=yes |
| 9080 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9081 | freebsd*) # from 4.6 on |
| 9082 | shlibpath_overrides_runpath=yes |
| 9083 | hardcode_into_libs=yes |
| 9084 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9085 | esac |
| 9086 | ;; |
| 9087 | |
| 9088 | gnu*) |
| 9089 | version_type=linux |
| 9090 | need_lib_prefix=no |
| 9091 | need_version=no |
| 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 | hardcode_into_libs=yes |
| 9096 | ;; |
| 9097 | |
| 9098 | hpux9* | hpux10* | hpux11*) |
| 9099 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9100 | # link against other versions. |
| 9101 | version_type=sunos |
| 9102 | need_lib_prefix=no |
| 9103 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9104 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9105 | ia64*) |
| 9106 | shrext_cmds='.so' |
| 9107 | hardcode_into_libs=yes |
| 9108 | dynamic_linker="$host_os dld.so" |
| 9109 | shlibpath_var=LD_LIBRARY_PATH |
| 9110 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9112 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9113 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9114 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9115 | else |
| 9116 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9117 | fi |
| 9118 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9119 | ;; |
| 9120 | hppa*64*) |
| 9121 | shrext_cmds='.sl' |
| 9122 | hardcode_into_libs=yes |
| 9123 | dynamic_linker="$host_os dld.sl" |
| 9124 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9125 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9127 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9128 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9129 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9130 | ;; |
| 9131 | *) |
| 9132 | shrext_cmds='.sl' |
| 9133 | dynamic_linker="$host_os dld.sl" |
| 9134 | shlibpath_var=SHLIB_PATH |
| 9135 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9137 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9138 | ;; |
| 9139 | esac |
| 9140 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9141 | postinstall_cmds='chmod 555 $lib' |
| 9142 | ;; |
| 9143 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9144 | interix3*) |
| 9145 | version_type=linux |
| 9146 | need_lib_prefix=no |
| 9147 | need_version=no |
| 9148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9149 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9150 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9151 | shlibpath_var=LD_LIBRARY_PATH |
| 9152 | shlibpath_overrides_runpath=no |
| 9153 | hardcode_into_libs=yes |
| 9154 | ;; |
| 9155 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9156 | irix5* | irix6* | nonstopux*) |
| 9157 | case $host_os in |
| 9158 | nonstopux*) version_type=nonstopux ;; |
| 9159 | *) |
| 9160 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9161 | version_type=linux |
| 9162 | else |
| 9163 | version_type=irix |
| 9164 | fi ;; |
| 9165 | esac |
| 9166 | need_lib_prefix=no |
| 9167 | need_version=no |
| 9168 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9170 | case $host_os in |
| 9171 | irix5* | nonstopux*) |
| 9172 | libsuff= shlibsuff= |
| 9173 | ;; |
| 9174 | *) |
| 9175 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9176 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9177 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9178 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9179 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9180 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9181 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9182 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9183 | esac |
| 9184 | ;; |
| 9185 | esac |
| 9186 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9187 | shlibpath_overrides_runpath=no |
| 9188 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9189 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9190 | hardcode_into_libs=yes |
| 9191 | ;; |
| 9192 | |
| 9193 | # No shared lib support for Linux oldld, aout, or coff. |
| 9194 | linux*oldld* | linux*aout* | linux*coff*) |
| 9195 | dynamic_linker=no |
| 9196 | ;; |
| 9197 | |
| 9198 | # This must be Linux ELF. |
| 9199 | linux*) |
| 9200 | version_type=linux |
| 9201 | need_lib_prefix=no |
| 9202 | need_version=no |
| 9203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9204 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9205 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9206 | shlibpath_var=LD_LIBRARY_PATH |
| 9207 | shlibpath_overrides_runpath=no |
| 9208 | # This implies no fast_install, which is unacceptable. |
| 9209 | # Some rework will be needed to allow for fast_install |
| 9210 | # before this can be enabled. |
| 9211 | hardcode_into_libs=yes |
| 9212 | |
| 9213 | # Append ld.so.conf contents to the search path |
| 9214 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9215 | 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] | 9216 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9217 | fi |
| 9218 | |
| 9219 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9220 | # powerpc, because MkLinux only supported shared libraries with the |
| 9221 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9222 | # most powerpc-linux boxes support dynamic linking these days and |
| 9223 | # people can always --disable-shared, the test was removed, and we |
| 9224 | # assume the GNU/Linux dynamic linker is in use. |
| 9225 | dynamic_linker='GNU/Linux ld.so' |
| 9226 | ;; |
| 9227 | |
| 9228 | knetbsd*-gnu) |
| 9229 | version_type=linux |
| 9230 | need_lib_prefix=no |
| 9231 | need_version=no |
| 9232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9233 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9234 | shlibpath_var=LD_LIBRARY_PATH |
| 9235 | shlibpath_overrides_runpath=no |
| 9236 | hardcode_into_libs=yes |
| 9237 | dynamic_linker='GNU ld.so' |
| 9238 | ;; |
| 9239 | |
| 9240 | netbsd*) |
| 9241 | version_type=sunos |
| 9242 | need_lib_prefix=no |
| 9243 | need_version=no |
| 9244 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9246 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9247 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9248 | else |
| 9249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9250 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9251 | dynamic_linker='NetBSD ld.elf_so' |
| 9252 | fi |
| 9253 | shlibpath_var=LD_LIBRARY_PATH |
| 9254 | shlibpath_overrides_runpath=yes |
| 9255 | hardcode_into_libs=yes |
| 9256 | ;; |
| 9257 | |
| 9258 | newsos6) |
| 9259 | version_type=linux |
| 9260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9261 | shlibpath_var=LD_LIBRARY_PATH |
| 9262 | shlibpath_overrides_runpath=yes |
| 9263 | ;; |
| 9264 | |
| 9265 | nto-qnx*) |
| 9266 | version_type=linux |
| 9267 | need_lib_prefix=no |
| 9268 | need_version=no |
| 9269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9270 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9271 | shlibpath_var=LD_LIBRARY_PATH |
| 9272 | shlibpath_overrides_runpath=yes |
| 9273 | ;; |
| 9274 | |
| 9275 | openbsd*) |
| 9276 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9277 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9278 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9279 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9280 | case $host_os in |
| 9281 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9282 | *) need_version=no ;; |
| 9283 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9285 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9286 | shlibpath_var=LD_LIBRARY_PATH |
| 9287 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9288 | case $host_os in |
| 9289 | openbsd2.[89] | openbsd2.[89].*) |
| 9290 | shlibpath_overrides_runpath=no |
| 9291 | ;; |
| 9292 | *) |
| 9293 | shlibpath_overrides_runpath=yes |
| 9294 | ;; |
| 9295 | esac |
| 9296 | else |
| 9297 | shlibpath_overrides_runpath=yes |
| 9298 | fi |
| 9299 | ;; |
| 9300 | |
| 9301 | os2*) |
| 9302 | libname_spec='$name' |
| 9303 | shrext_cmds=".dll" |
| 9304 | need_lib_prefix=no |
| 9305 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9306 | dynamic_linker='OS/2 ld.exe' |
| 9307 | shlibpath_var=LIBPATH |
| 9308 | ;; |
| 9309 | |
| 9310 | osf3* | osf4* | osf5*) |
| 9311 | version_type=osf |
| 9312 | need_lib_prefix=no |
| 9313 | need_version=no |
| 9314 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9316 | shlibpath_var=LD_LIBRARY_PATH |
| 9317 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9318 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9319 | ;; |
| 9320 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9321 | solaris*) |
| 9322 | version_type=linux |
| 9323 | need_lib_prefix=no |
| 9324 | need_version=no |
| 9325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9326 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9327 | shlibpath_var=LD_LIBRARY_PATH |
| 9328 | shlibpath_overrides_runpath=yes |
| 9329 | hardcode_into_libs=yes |
| 9330 | # ldd complains unless libraries are executable |
| 9331 | postinstall_cmds='chmod +x $lib' |
| 9332 | ;; |
| 9333 | |
| 9334 | sunos4*) |
| 9335 | version_type=sunos |
| 9336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9337 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9338 | shlibpath_var=LD_LIBRARY_PATH |
| 9339 | shlibpath_overrides_runpath=yes |
| 9340 | if test "$with_gnu_ld" = yes; then |
| 9341 | need_lib_prefix=no |
| 9342 | fi |
| 9343 | need_version=yes |
| 9344 | ;; |
| 9345 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9346 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9347 | version_type=linux |
| 9348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9349 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9350 | shlibpath_var=LD_LIBRARY_PATH |
| 9351 | case $host_vendor in |
| 9352 | sni) |
| 9353 | shlibpath_overrides_runpath=no |
| 9354 | need_lib_prefix=no |
| 9355 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9356 | runpath_var=LD_RUN_PATH |
| 9357 | ;; |
| 9358 | siemens) |
| 9359 | need_lib_prefix=no |
| 9360 | ;; |
| 9361 | motorola) |
| 9362 | need_lib_prefix=no |
| 9363 | need_version=no |
| 9364 | shlibpath_overrides_runpath=no |
| 9365 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9366 | ;; |
| 9367 | esac |
| 9368 | ;; |
| 9369 | |
| 9370 | sysv4*MP*) |
| 9371 | if test -d /usr/nec ;then |
| 9372 | version_type=linux |
| 9373 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9374 | soname_spec='$libname${shared_ext}.$major' |
| 9375 | shlibpath_var=LD_LIBRARY_PATH |
| 9376 | fi |
| 9377 | ;; |
| 9378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9379 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9380 | version_type=freebsd-elf |
| 9381 | need_lib_prefix=no |
| 9382 | need_version=no |
| 9383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9384 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9385 | shlibpath_var=LD_LIBRARY_PATH |
| 9386 | hardcode_into_libs=yes |
| 9387 | if test "$with_gnu_ld" = yes; then |
| 9388 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9389 | shlibpath_overrides_runpath=no |
| 9390 | else |
| 9391 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9392 | shlibpath_overrides_runpath=yes |
| 9393 | case $host_os in |
| 9394 | sco3.2v5*) |
| 9395 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9396 | ;; |
| 9397 | esac |
| 9398 | fi |
| 9399 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9400 | ;; |
| 9401 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9402 | uts4*) |
| 9403 | version_type=linux |
| 9404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9405 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9406 | shlibpath_var=LD_LIBRARY_PATH |
| 9407 | ;; |
| 9408 | |
| 9409 | *) |
| 9410 | dynamic_linker=no |
| 9411 | ;; |
| 9412 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9413 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9414 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9415 | test "$dynamic_linker" = no && can_build_shared=no |
| 9416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9417 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9418 | if test "$GCC" = yes; then |
| 9419 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9420 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9422 | |
| 9423 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9424 | 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] | 9425 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9427 | else |
| 9428 | |
| 9429 | module=yes |
| 9430 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9431 | |
| 9432 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9433 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9434 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9435 | if test -n "$libltdl_cv_shlibext"; then |
| 9436 | |
| 9437 | cat >>confdefs.h <<_ACEOF |
| 9438 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9439 | _ACEOF |
| 9440 | |
| 9441 | fi |
| 9442 | |
| 9443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9444 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9445 | 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] | 9446 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9448 | else |
| 9449 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9450 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9451 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9452 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9453 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9454 | |
| 9455 | cat >>confdefs.h <<_ACEOF |
| 9456 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9457 | _ACEOF |
| 9458 | |
| 9459 | fi |
| 9460 | |
| 9461 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9462 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9463 | 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] | 9464 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9466 | else |
| 9467 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9468 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9469 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9470 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9471 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9472 | sys_search_path= |
| 9473 | for dir in $libltdl_cv_sys_search_path; do |
| 9474 | if test -z "$sys_search_path"; then |
| 9475 | sys_search_path="$dir" |
| 9476 | else |
| 9477 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9478 | fi |
| 9479 | done |
| 9480 | |
| 9481 | cat >>confdefs.h <<_ACEOF |
| 9482 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9483 | _ACEOF |
| 9484 | |
| 9485 | fi |
| 9486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9487 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9488 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9489 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9491 | else |
| 9492 | libltdl_cv_objdir="$objdir" |
| 9493 | if test -n "$objdir"; then |
| 9494 | : |
| 9495 | else |
| 9496 | rm -f .libs 2>/dev/null |
| 9497 | mkdir .libs 2>/dev/null |
| 9498 | if test -d .libs; then |
| 9499 | libltdl_cv_objdir=.libs |
| 9500 | else |
| 9501 | # MS-DOS does not allow filenames that begin with a dot. |
| 9502 | libltdl_cv_objdir=_libs |
| 9503 | fi |
| 9504 | rmdir .libs 2>/dev/null |
| 9505 | fi |
| 9506 | |
| 9507 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9508 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9509 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9510 | |
| 9511 | cat >>confdefs.h <<_ACEOF |
| 9512 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9513 | _ACEOF |
| 9514 | |
| 9515 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9516 | |
| 9517 | |
| 9518 | |
| 9519 | |
| 9520 | # 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] | 9521 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9522 | 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] | 9523 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9525 | else |
| 9526 | |
| 9527 | # These are sane defaults that work on at least a few old systems. |
| 9528 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9529 | |
| 9530 | # Character class describing NM global symbol codes. |
| 9531 | symcode='[BCDEGRST]' |
| 9532 | |
| 9533 | # Regexp to match symbols that can be accessed directly from C. |
| 9534 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9535 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9536 | # Transform an extracted symbol line into a proper C declaration |
| 9537 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9538 | |
| 9539 | # Transform an extracted symbol line into symbol name and symbol address |
| 9540 | 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'" |
| 9541 | |
| 9542 | # Define system-specific variables. |
| 9543 | case $host_os in |
| 9544 | aix*) |
| 9545 | symcode='[BCDT]' |
| 9546 | ;; |
| 9547 | cygwin* | mingw* | pw32*) |
| 9548 | symcode='[ABCDGISTW]' |
| 9549 | ;; |
| 9550 | hpux*) # Its linker distinguishes data from code symbols |
| 9551 | if test "$host_cpu" = ia64; then |
| 9552 | symcode='[ABCDEGRST]' |
| 9553 | fi |
| 9554 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9555 | 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'" |
| 9556 | ;; |
| 9557 | linux*) |
| 9558 | if test "$host_cpu" = ia64; then |
| 9559 | symcode='[ABCDGIRSTW]' |
| 9560 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9561 | 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'" |
| 9562 | fi |
| 9563 | ;; |
| 9564 | irix* | nonstopux*) |
| 9565 | symcode='[BCDEGRST]' |
| 9566 | ;; |
| 9567 | osf*) |
| 9568 | symcode='[BCDEGQRST]' |
| 9569 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9570 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9571 | symcode='[BDRT]' |
| 9572 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9573 | sco3.2v5*) |
| 9574 | symcode='[DT]' |
| 9575 | ;; |
| 9576 | sysv4.2uw2*) |
| 9577 | symcode='[DT]' |
| 9578 | ;; |
| 9579 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9580 | symcode='[ABDT]' |
| 9581 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9582 | sysv4) |
| 9583 | symcode='[DFNSTU]' |
| 9584 | ;; |
| 9585 | esac |
| 9586 | |
| 9587 | # Handle CRLF in mingw tool chain |
| 9588 | opt_cr= |
| 9589 | case $build_os in |
| 9590 | mingw*) |
| 9591 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9592 | ;; |
| 9593 | esac |
| 9594 | |
| 9595 | # If we're using GNU nm, then use its standard symbol codes. |
| 9596 | case `$NM -V 2>&1` in |
| 9597 | *GNU* | *'with BFD'*) |
| 9598 | symcode='[ABCDGIRSTW]' ;; |
| 9599 | esac |
| 9600 | |
| 9601 | # Try without a prefix undercore, then with it. |
| 9602 | for ac_symprfx in "" "_"; do |
| 9603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9604 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9605 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9606 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9607 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9608 | 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] | 9609 | |
| 9610 | # Check to see that the pipe works correctly. |
| 9611 | pipe_works=no |
| 9612 | |
| 9613 | rm -f conftest* |
| 9614 | cat > conftest.$ac_ext <<EOF |
| 9615 | #ifdef __cplusplus |
| 9616 | extern "C" { |
| 9617 | #endif |
| 9618 | char nm_test_var; |
| 9619 | void nm_test_func(){} |
| 9620 | #ifdef __cplusplus |
| 9621 | } |
| 9622 | #endif |
| 9623 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9624 | EOF |
| 9625 | |
| 9626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9627 | (eval $ac_compile) 2>&5 |
| 9628 | ac_status=$? |
| 9629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9630 | (exit $ac_status); }; then |
| 9631 | # Now try to grab the symbols. |
| 9632 | nlist=conftest.nm |
| 9633 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9634 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9635 | ac_status=$? |
| 9636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9637 | (exit $ac_status); } && test -s "$nlist"; then |
| 9638 | # Try sorting and uniquifying the output. |
| 9639 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9640 | mv -f "$nlist"T "$nlist" |
| 9641 | else |
| 9642 | rm -f "$nlist"T |
| 9643 | fi |
| 9644 | |
| 9645 | # Make sure that we snagged all the symbols we need. |
| 9646 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9647 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9648 | cat <<EOF > conftest.$ac_ext |
| 9649 | #ifdef __cplusplus |
| 9650 | extern "C" { |
| 9651 | #endif |
| 9652 | |
| 9653 | EOF |
| 9654 | # Now generate the symbol file. |
| 9655 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9656 | |
| 9657 | cat <<EOF >> conftest.$ac_ext |
| 9658 | #if defined (__STDC__) && __STDC__ |
| 9659 | # define lt_ptr_t void * |
| 9660 | #else |
| 9661 | # define lt_ptr_t char * |
| 9662 | # define const |
| 9663 | #endif |
| 9664 | |
| 9665 | /* The mapping between symbol names and symbols. */ |
| 9666 | const struct { |
| 9667 | const char *name; |
| 9668 | lt_ptr_t address; |
| 9669 | } |
| 9670 | lt_preloaded_symbols[] = |
| 9671 | { |
| 9672 | EOF |
| 9673 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9674 | cat <<\EOF >> conftest.$ac_ext |
| 9675 | {0, (lt_ptr_t) 0} |
| 9676 | }; |
| 9677 | |
| 9678 | #ifdef __cplusplus |
| 9679 | } |
| 9680 | #endif |
| 9681 | EOF |
| 9682 | # Now try linking the two files. |
| 9683 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9684 | lt_save_LIBS="$LIBS" |
| 9685 | lt_save_CFLAGS="$CFLAGS" |
| 9686 | LIBS="conftstm.$ac_objext" |
| 9687 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9689 | (eval $ac_link) 2>&5 |
| 9690 | ac_status=$? |
| 9691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9692 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9693 | pipe_works=yes |
| 9694 | fi |
| 9695 | LIBS="$lt_save_LIBS" |
| 9696 | CFLAGS="$lt_save_CFLAGS" |
| 9697 | else |
| 9698 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9699 | fi |
| 9700 | else |
| 9701 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9702 | fi |
| 9703 | else |
| 9704 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9705 | fi |
| 9706 | else |
| 9707 | echo "$progname: failed program was:" >&5 |
| 9708 | cat conftest.$ac_ext >&5 |
| 9709 | fi |
| 9710 | rm -f conftest* conftst* |
| 9711 | |
| 9712 | # Do not use the global_symbol_pipe unless it works. |
| 9713 | if test "$pipe_works" = yes; then |
| 9714 | break |
| 9715 | else |
| 9716 | lt_cv_sys_global_symbol_pipe= |
| 9717 | fi |
| 9718 | done |
| 9719 | |
| 9720 | fi |
| 9721 | |
| 9722 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9723 | lt_cv_sys_global_symbol_to_cdecl= |
| 9724 | fi |
| 9725 | 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] | 9726 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9727 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9728 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9729 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9730 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9731 | fi |
| 9732 | |
| 9733 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9734 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9735 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9736 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9738 | else |
| 9739 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9740 | libltdl_cv_preloaded_symbols=yes |
| 9741 | else |
| 9742 | libltdl_cv_preloaded_symbols=no |
| 9743 | fi |
| 9744 | |
| 9745 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9746 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9747 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9748 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9749 | |
| 9750 | cat >>confdefs.h <<\_ACEOF |
| 9751 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9752 | _ACEOF |
| 9753 | |
| 9754 | fi |
| 9755 | |
| 9756 | LIBADD_DL= |
| 9757 | |
| 9758 | ac_ext=c |
| 9759 | ac_cpp='$CPP $CPPFLAGS' |
| 9760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9763 | |
| 9764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9765 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9766 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9767 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9769 | else |
| 9770 | cat >conftest.$ac_ext <<_ACEOF |
| 9771 | /* confdefs.h. */ |
| 9772 | _ACEOF |
| 9773 | cat confdefs.h >>conftest.$ac_ext |
| 9774 | cat >>conftest.$ac_ext <<_ACEOF |
| 9775 | /* end confdefs.h. */ |
| 9776 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9778 | #define shl_load innocuous_shl_load |
| 9779 | |
| 9780 | /* System header to define __stub macros and hopefully few prototypes, |
| 9781 | which can conflict with char shl_load (); below. |
| 9782 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9783 | <limits.h> exists even on freestanding compilers. */ |
| 9784 | |
| 9785 | #ifdef __STDC__ |
| 9786 | # include <limits.h> |
| 9787 | #else |
| 9788 | # include <assert.h> |
| 9789 | #endif |
| 9790 | |
| 9791 | #undef shl_load |
| 9792 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9793 | /* Override any GCC internal prototype to avoid an error. |
| 9794 | Use char because int might match the return type of a GCC |
| 9795 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9796 | #ifdef __cplusplus |
| 9797 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9798 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9799 | char shl_load (); |
| 9800 | /* The GNU C library defines this for functions which it implements |
| 9801 | to always fail with ENOSYS. Some functions are actually named |
| 9802 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9803 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9804 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9805 | #endif |
| 9806 | |
| 9807 | int |
| 9808 | main () |
| 9809 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9810 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9811 | ; |
| 9812 | return 0; |
| 9813 | } |
| 9814 | _ACEOF |
| 9815 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9816 | if { (ac_try="$ac_link" |
| 9817 | case "(($ac_try" in |
| 9818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9819 | *) ac_try_echo=$ac_try;; |
| 9820 | esac |
| 9821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9822 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9823 | ac_status=$? |
| 9824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9825 | rm -f conftest.er1 |
| 9826 | cat conftest.err >&5 |
| 9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9828 | (exit $ac_status); } && |
| 9829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9830 | { (case "(($ac_try" in |
| 9831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9832 | *) ac_try_echo=$ac_try;; |
| 9833 | esac |
| 9834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9835 | (eval "$ac_try") 2>&5 |
| 9836 | ac_status=$? |
| 9837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9838 | (exit $ac_status); }; } && |
| 9839 | { ac_try='test -s conftest$ac_exeext' |
| 9840 | { (case "(($ac_try" in |
| 9841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9842 | *) ac_try_echo=$ac_try;; |
| 9843 | esac |
| 9844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9845 | (eval "$ac_try") 2>&5 |
| 9846 | ac_status=$? |
| 9847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9848 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9849 | ac_cv_func_shl_load=yes |
| 9850 | else |
| 9851 | echo "$as_me: failed program was:" >&5 |
| 9852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9854 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9855 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9856 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9857 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9858 | conftest$ac_exeext conftest.$ac_ext |
| 9859 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9860 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9861 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9862 | if test $ac_cv_func_shl_load = yes; then |
| 9863 | |
| 9864 | cat >>confdefs.h <<\_ACEOF |
| 9865 | #define HAVE_SHL_LOAD 1 |
| 9866 | _ACEOF |
| 9867 | |
| 9868 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9869 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9870 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9871 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9873 | else |
| 9874 | ac_check_lib_save_LIBS=$LIBS |
| 9875 | LIBS="-ldld $LIBS" |
| 9876 | cat >conftest.$ac_ext <<_ACEOF |
| 9877 | /* confdefs.h. */ |
| 9878 | _ACEOF |
| 9879 | cat confdefs.h >>conftest.$ac_ext |
| 9880 | cat >>conftest.$ac_ext <<_ACEOF |
| 9881 | /* end confdefs.h. */ |
| 9882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9883 | /* Override any GCC internal prototype to avoid an error. |
| 9884 | Use char because int might match the return type of a GCC |
| 9885 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9886 | #ifdef __cplusplus |
| 9887 | extern "C" |
| 9888 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9889 | char shl_load (); |
| 9890 | int |
| 9891 | main () |
| 9892 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9893 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9894 | ; |
| 9895 | return 0; |
| 9896 | } |
| 9897 | _ACEOF |
| 9898 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9899 | if { (ac_try="$ac_link" |
| 9900 | case "(($ac_try" in |
| 9901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9902 | *) ac_try_echo=$ac_try;; |
| 9903 | esac |
| 9904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9905 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9906 | ac_status=$? |
| 9907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9908 | rm -f conftest.er1 |
| 9909 | cat conftest.err >&5 |
| 9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9911 | (exit $ac_status); } && |
| 9912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9913 | { (case "(($ac_try" in |
| 9914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9915 | *) ac_try_echo=$ac_try;; |
| 9916 | esac |
| 9917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9918 | (eval "$ac_try") 2>&5 |
| 9919 | ac_status=$? |
| 9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9921 | (exit $ac_status); }; } && |
| 9922 | { ac_try='test -s conftest$ac_exeext' |
| 9923 | { (case "(($ac_try" in |
| 9924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9925 | *) ac_try_echo=$ac_try;; |
| 9926 | esac |
| 9927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9928 | (eval "$ac_try") 2>&5 |
| 9929 | ac_status=$? |
| 9930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9931 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9932 | ac_cv_lib_dld_shl_load=yes |
| 9933 | else |
| 9934 | echo "$as_me: failed program was:" >&5 |
| 9935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9937 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9938 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9939 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9940 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9941 | conftest$ac_exeext conftest.$ac_ext |
| 9942 | LIBS=$ac_check_lib_save_LIBS |
| 9943 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9944 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9945 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9946 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9947 | |
| 9948 | cat >>confdefs.h <<\_ACEOF |
| 9949 | #define HAVE_SHL_LOAD 1 |
| 9950 | _ACEOF |
| 9951 | |
| 9952 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9953 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9954 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9955 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9956 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9958 | else |
| 9959 | ac_check_lib_save_LIBS=$LIBS |
| 9960 | LIBS="-ldl $LIBS" |
| 9961 | cat >conftest.$ac_ext <<_ACEOF |
| 9962 | /* confdefs.h. */ |
| 9963 | _ACEOF |
| 9964 | cat confdefs.h >>conftest.$ac_ext |
| 9965 | cat >>conftest.$ac_ext <<_ACEOF |
| 9966 | /* end confdefs.h. */ |
| 9967 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9968 | /* Override any GCC internal prototype to avoid an error. |
| 9969 | Use char because int might match the return type of a GCC |
| 9970 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9971 | #ifdef __cplusplus |
| 9972 | extern "C" |
| 9973 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9974 | char dlopen (); |
| 9975 | int |
| 9976 | main () |
| 9977 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9978 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9979 | ; |
| 9980 | return 0; |
| 9981 | } |
| 9982 | _ACEOF |
| 9983 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9984 | if { (ac_try="$ac_link" |
| 9985 | case "(($ac_try" in |
| 9986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9987 | *) ac_try_echo=$ac_try;; |
| 9988 | esac |
| 9989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9990 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9991 | ac_status=$? |
| 9992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9993 | rm -f conftest.er1 |
| 9994 | cat conftest.err >&5 |
| 9995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9996 | (exit $ac_status); } && |
| 9997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9998 | { (case "(($ac_try" in |
| 9999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10000 | *) ac_try_echo=$ac_try;; |
| 10001 | esac |
| 10002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10003 | (eval "$ac_try") 2>&5 |
| 10004 | ac_status=$? |
| 10005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10006 | (exit $ac_status); }; } && |
| 10007 | { ac_try='test -s conftest$ac_exeext' |
| 10008 | { (case "(($ac_try" in |
| 10009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10010 | *) ac_try_echo=$ac_try;; |
| 10011 | esac |
| 10012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10013 | (eval "$ac_try") 2>&5 |
| 10014 | ac_status=$? |
| 10015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10016 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10017 | ac_cv_lib_dl_dlopen=yes |
| 10018 | else |
| 10019 | echo "$as_me: failed program was:" >&5 |
| 10020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10021 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10022 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10023 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10024 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10025 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10026 | conftest$ac_exeext conftest.$ac_ext |
| 10027 | LIBS=$ac_check_lib_save_LIBS |
| 10028 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10029 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10030 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10031 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10032 | |
| 10033 | cat >>confdefs.h <<\_ACEOF |
| 10034 | #define HAVE_LIBDL 1 |
| 10035 | _ACEOF |
| 10036 | |
| 10037 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10038 | else |
| 10039 | cat >conftest.$ac_ext <<_ACEOF |
| 10040 | /* confdefs.h. */ |
| 10041 | _ACEOF |
| 10042 | cat confdefs.h >>conftest.$ac_ext |
| 10043 | cat >>conftest.$ac_ext <<_ACEOF |
| 10044 | /* end confdefs.h. */ |
| 10045 | #if HAVE_DLFCN_H |
| 10046 | # include <dlfcn.h> |
| 10047 | #endif |
| 10048 | |
| 10049 | int |
| 10050 | main () |
| 10051 | { |
| 10052 | dlopen(0, 0); |
| 10053 | ; |
| 10054 | return 0; |
| 10055 | } |
| 10056 | _ACEOF |
| 10057 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10058 | if { (ac_try="$ac_link" |
| 10059 | case "(($ac_try" in |
| 10060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10061 | *) ac_try_echo=$ac_try;; |
| 10062 | esac |
| 10063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10064 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10065 | ac_status=$? |
| 10066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10067 | rm -f conftest.er1 |
| 10068 | cat conftest.err >&5 |
| 10069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10070 | (exit $ac_status); } && |
| 10071 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10072 | { (case "(($ac_try" in |
| 10073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10074 | *) ac_try_echo=$ac_try;; |
| 10075 | esac |
| 10076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10077 | (eval "$ac_try") 2>&5 |
| 10078 | ac_status=$? |
| 10079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10080 | (exit $ac_status); }; } && |
| 10081 | { ac_try='test -s conftest$ac_exeext' |
| 10082 | { (case "(($ac_try" in |
| 10083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10084 | *) ac_try_echo=$ac_try;; |
| 10085 | esac |
| 10086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10087 | (eval "$ac_try") 2>&5 |
| 10088 | ac_status=$? |
| 10089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10090 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10091 | |
| 10092 | cat >>confdefs.h <<\_ACEOF |
| 10093 | #define HAVE_LIBDL 1 |
| 10094 | _ACEOF |
| 10095 | libltdl_cv_func_dlopen="yes" |
| 10096 | else |
| 10097 | echo "$as_me: failed program was:" >&5 |
| 10098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10100 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10101 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10102 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10104 | else |
| 10105 | ac_check_lib_save_LIBS=$LIBS |
| 10106 | LIBS="-lsvld $LIBS" |
| 10107 | cat >conftest.$ac_ext <<_ACEOF |
| 10108 | /* confdefs.h. */ |
| 10109 | _ACEOF |
| 10110 | cat confdefs.h >>conftest.$ac_ext |
| 10111 | cat >>conftest.$ac_ext <<_ACEOF |
| 10112 | /* end confdefs.h. */ |
| 10113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10114 | /* Override any GCC internal prototype to avoid an error. |
| 10115 | Use char because int might match the return type of a GCC |
| 10116 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10117 | #ifdef __cplusplus |
| 10118 | extern "C" |
| 10119 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10120 | char dlopen (); |
| 10121 | int |
| 10122 | main () |
| 10123 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10124 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10125 | ; |
| 10126 | return 0; |
| 10127 | } |
| 10128 | _ACEOF |
| 10129 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10130 | if { (ac_try="$ac_link" |
| 10131 | case "(($ac_try" in |
| 10132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10133 | *) ac_try_echo=$ac_try;; |
| 10134 | esac |
| 10135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10136 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10137 | ac_status=$? |
| 10138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10139 | rm -f conftest.er1 |
| 10140 | cat conftest.err >&5 |
| 10141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10142 | (exit $ac_status); } && |
| 10143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 10150 | ac_status=$? |
| 10151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10152 | (exit $ac_status); }; } && |
| 10153 | { ac_try='test -s conftest$ac_exeext' |
| 10154 | { (case "(($ac_try" in |
| 10155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10156 | *) ac_try_echo=$ac_try;; |
| 10157 | esac |
| 10158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10159 | (eval "$ac_try") 2>&5 |
| 10160 | ac_status=$? |
| 10161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10162 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10163 | ac_cv_lib_svld_dlopen=yes |
| 10164 | else |
| 10165 | echo "$as_me: failed program was:" >&5 |
| 10166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10168 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10169 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10170 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10171 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10172 | conftest$ac_exeext conftest.$ac_ext |
| 10173 | LIBS=$ac_check_lib_save_LIBS |
| 10174 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10175 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10176 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10177 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10178 | |
| 10179 | cat >>confdefs.h <<\_ACEOF |
| 10180 | #define HAVE_LIBDL 1 |
| 10181 | _ACEOF |
| 10182 | |
| 10183 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10184 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10185 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10186 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10187 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10189 | else |
| 10190 | ac_check_lib_save_LIBS=$LIBS |
| 10191 | LIBS="-ldld $LIBS" |
| 10192 | cat >conftest.$ac_ext <<_ACEOF |
| 10193 | /* confdefs.h. */ |
| 10194 | _ACEOF |
| 10195 | cat confdefs.h >>conftest.$ac_ext |
| 10196 | cat >>conftest.$ac_ext <<_ACEOF |
| 10197 | /* end confdefs.h. */ |
| 10198 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10199 | /* Override any GCC internal prototype to avoid an error. |
| 10200 | Use char because int might match the return type of a GCC |
| 10201 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10202 | #ifdef __cplusplus |
| 10203 | extern "C" |
| 10204 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10205 | char dld_link (); |
| 10206 | int |
| 10207 | main () |
| 10208 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10209 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10210 | ; |
| 10211 | return 0; |
| 10212 | } |
| 10213 | _ACEOF |
| 10214 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10215 | if { (ac_try="$ac_link" |
| 10216 | case "(($ac_try" in |
| 10217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10218 | *) ac_try_echo=$ac_try;; |
| 10219 | esac |
| 10220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10221 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10222 | ac_status=$? |
| 10223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10224 | rm -f conftest.er1 |
| 10225 | cat conftest.err >&5 |
| 10226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10227 | (exit $ac_status); } && |
| 10228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10229 | { (case "(($ac_try" in |
| 10230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10231 | *) ac_try_echo=$ac_try;; |
| 10232 | esac |
| 10233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10234 | (eval "$ac_try") 2>&5 |
| 10235 | ac_status=$? |
| 10236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10237 | (exit $ac_status); }; } && |
| 10238 | { ac_try='test -s conftest$ac_exeext' |
| 10239 | { (case "(($ac_try" in |
| 10240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10241 | *) ac_try_echo=$ac_try;; |
| 10242 | esac |
| 10243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10244 | (eval "$ac_try") 2>&5 |
| 10245 | ac_status=$? |
| 10246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10247 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10248 | ac_cv_lib_dld_dld_link=yes |
| 10249 | else |
| 10250 | echo "$as_me: failed program was:" >&5 |
| 10251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10252 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10253 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10254 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10255 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10256 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10257 | conftest$ac_exeext conftest.$ac_ext |
| 10258 | LIBS=$ac_check_lib_save_LIBS |
| 10259 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10260 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10261 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10262 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10263 | |
| 10264 | cat >>confdefs.h <<\_ACEOF |
| 10265 | #define HAVE_DLD 1 |
| 10266 | _ACEOF |
| 10267 | |
| 10268 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10269 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10270 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10271 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10272 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10274 | else |
| 10275 | cat >conftest.$ac_ext <<_ACEOF |
| 10276 | /* confdefs.h. */ |
| 10277 | _ACEOF |
| 10278 | cat confdefs.h >>conftest.$ac_ext |
| 10279 | cat >>conftest.$ac_ext <<_ACEOF |
| 10280 | /* end confdefs.h. */ |
| 10281 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10283 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10284 | |
| 10285 | /* System header to define __stub macros and hopefully few prototypes, |
| 10286 | which can conflict with char _dyld_func_lookup (); below. |
| 10287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10288 | <limits.h> exists even on freestanding compilers. */ |
| 10289 | |
| 10290 | #ifdef __STDC__ |
| 10291 | # include <limits.h> |
| 10292 | #else |
| 10293 | # include <assert.h> |
| 10294 | #endif |
| 10295 | |
| 10296 | #undef _dyld_func_lookup |
| 10297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10298 | /* Override any GCC internal prototype to avoid an error. |
| 10299 | Use char because int might match the return type of a GCC |
| 10300 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10301 | #ifdef __cplusplus |
| 10302 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10303 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10304 | char _dyld_func_lookup (); |
| 10305 | /* The GNU C library defines this for functions which it implements |
| 10306 | to always fail with ENOSYS. Some functions are actually named |
| 10307 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10308 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10309 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10310 | #endif |
| 10311 | |
| 10312 | int |
| 10313 | main () |
| 10314 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10315 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10316 | ; |
| 10317 | return 0; |
| 10318 | } |
| 10319 | _ACEOF |
| 10320 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10321 | if { (ac_try="$ac_link" |
| 10322 | case "(($ac_try" in |
| 10323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10324 | *) ac_try_echo=$ac_try;; |
| 10325 | esac |
| 10326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10327 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10328 | ac_status=$? |
| 10329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10330 | rm -f conftest.er1 |
| 10331 | cat conftest.err >&5 |
| 10332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10333 | (exit $ac_status); } && |
| 10334 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10335 | { (case "(($ac_try" in |
| 10336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10337 | *) ac_try_echo=$ac_try;; |
| 10338 | esac |
| 10339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10340 | (eval "$ac_try") 2>&5 |
| 10341 | ac_status=$? |
| 10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10343 | (exit $ac_status); }; } && |
| 10344 | { ac_try='test -s conftest$ac_exeext' |
| 10345 | { (case "(($ac_try" in |
| 10346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10347 | *) ac_try_echo=$ac_try;; |
| 10348 | esac |
| 10349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10350 | (eval "$ac_try") 2>&5 |
| 10351 | ac_status=$? |
| 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10353 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10354 | ac_cv_func__dyld_func_lookup=yes |
| 10355 | else |
| 10356 | echo "$as_me: failed program was:" >&5 |
| 10357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10359 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10360 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10361 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10362 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10363 | conftest$ac_exeext conftest.$ac_ext |
| 10364 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10365 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10366 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10367 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10368 | |
| 10369 | cat >>confdefs.h <<\_ACEOF |
| 10370 | #define HAVE_DYLD 1 |
| 10371 | _ACEOF |
| 10372 | |
| 10373 | fi |
| 10374 | |
| 10375 | |
| 10376 | fi |
| 10377 | |
| 10378 | |
| 10379 | fi |
| 10380 | |
| 10381 | |
| 10382 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10383 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10384 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10385 | conftest$ac_exeext conftest.$ac_ext |
| 10386 | |
| 10387 | fi |
| 10388 | |
| 10389 | |
| 10390 | fi |
| 10391 | |
| 10392 | |
| 10393 | fi |
| 10394 | |
| 10395 | |
| 10396 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10397 | then |
| 10398 | lt_save_LIBS="$LIBS" |
| 10399 | LIBS="$LIBS $LIBADD_DL" |
| 10400 | |
| 10401 | for ac_func in dlerror |
| 10402 | do |
| 10403 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10404 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10405 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10406 | 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] | 10407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10408 | else |
| 10409 | cat >conftest.$ac_ext <<_ACEOF |
| 10410 | /* confdefs.h. */ |
| 10411 | _ACEOF |
| 10412 | cat confdefs.h >>conftest.$ac_ext |
| 10413 | cat >>conftest.$ac_ext <<_ACEOF |
| 10414 | /* end confdefs.h. */ |
| 10415 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10417 | #define $ac_func innocuous_$ac_func |
| 10418 | |
| 10419 | /* System header to define __stub macros and hopefully few prototypes, |
| 10420 | which can conflict with char $ac_func (); below. |
| 10421 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10422 | <limits.h> exists even on freestanding compilers. */ |
| 10423 | |
| 10424 | #ifdef __STDC__ |
| 10425 | # include <limits.h> |
| 10426 | #else |
| 10427 | # include <assert.h> |
| 10428 | #endif |
| 10429 | |
| 10430 | #undef $ac_func |
| 10431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10432 | /* Override any GCC internal prototype to avoid an error. |
| 10433 | Use char because int might match the return type of a GCC |
| 10434 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10435 | #ifdef __cplusplus |
| 10436 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10437 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10438 | char $ac_func (); |
| 10439 | /* The GNU C library defines this for functions which it implements |
| 10440 | to always fail with ENOSYS. Some functions are actually named |
| 10441 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10442 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10443 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10444 | #endif |
| 10445 | |
| 10446 | int |
| 10447 | main () |
| 10448 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10449 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10450 | ; |
| 10451 | return 0; |
| 10452 | } |
| 10453 | _ACEOF |
| 10454 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10455 | if { (ac_try="$ac_link" |
| 10456 | case "(($ac_try" in |
| 10457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10458 | *) ac_try_echo=$ac_try;; |
| 10459 | esac |
| 10460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10461 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10462 | ac_status=$? |
| 10463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10464 | rm -f conftest.er1 |
| 10465 | cat conftest.err >&5 |
| 10466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10467 | (exit $ac_status); } && |
| 10468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10469 | { (case "(($ac_try" in |
| 10470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10471 | *) ac_try_echo=$ac_try;; |
| 10472 | esac |
| 10473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10474 | (eval "$ac_try") 2>&5 |
| 10475 | ac_status=$? |
| 10476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10477 | (exit $ac_status); }; } && |
| 10478 | { ac_try='test -s conftest$ac_exeext' |
| 10479 | { (case "(($ac_try" in |
| 10480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10481 | *) ac_try_echo=$ac_try;; |
| 10482 | esac |
| 10483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10484 | (eval "$ac_try") 2>&5 |
| 10485 | ac_status=$? |
| 10486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10487 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10488 | eval "$as_ac_var=yes" |
| 10489 | else |
| 10490 | echo "$as_me: failed program was:" >&5 |
| 10491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10493 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10494 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10495 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10496 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10497 | conftest$ac_exeext conftest.$ac_ext |
| 10498 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10499 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10500 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10501 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10502 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10503 | cat >>confdefs.h <<_ACEOF |
| 10504 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10505 | _ACEOF |
| 10506 | |
| 10507 | fi |
| 10508 | done |
| 10509 | |
| 10510 | LIBS="$lt_save_LIBS" |
| 10511 | fi |
| 10512 | ac_ext=c |
| 10513 | ac_cpp='$CPP $CPPFLAGS' |
| 10514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10517 | |
| 10518 | |
| 10519 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10520 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10521 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10522 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10524 | else |
| 10525 | ac_cv_sys_symbol_underscore=no |
| 10526 | cat > conftest.$ac_ext <<EOF |
| 10527 | void nm_test_func(){} |
| 10528 | int main(){nm_test_func;return 0;} |
| 10529 | EOF |
| 10530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10531 | (eval $ac_compile) 2>&5 |
| 10532 | ac_status=$? |
| 10533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10534 | (exit $ac_status); }; then |
| 10535 | # Now try to grab the symbols. |
| 10536 | ac_nlist=conftest.nm |
| 10537 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10538 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10539 | ac_status=$? |
| 10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10541 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10542 | # See whether the symbols have a leading underscore. |
| 10543 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10544 | ac_cv_sys_symbol_underscore=yes |
| 10545 | else |
| 10546 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10547 | : |
| 10548 | else |
| 10549 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10550 | fi |
| 10551 | fi |
| 10552 | else |
| 10553 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10554 | fi |
| 10555 | else |
| 10556 | echo "configure: failed program was:" >&5 |
| 10557 | cat conftest.c >&5 |
| 10558 | fi |
| 10559 | rm -rf conftest* |
| 10560 | |
| 10561 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10562 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10563 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10564 | |
| 10565 | |
| 10566 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10567 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10568 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10569 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10570 | 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] | 10571 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10573 | else |
| 10574 | libltdl_cv_need_uscore=unknown |
| 10575 | save_LIBS="$LIBS" |
| 10576 | LIBS="$LIBS $LIBADD_DL" |
| 10577 | if test "$cross_compiling" = yes; then : |
| 10578 | libltdl_cv_need_uscore=cross |
| 10579 | else |
| 10580 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10581 | lt_status=$lt_dlunknown |
| 10582 | cat > conftest.$ac_ext <<EOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10583 | #line 10583 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10584 | #include "confdefs.h" |
| 10585 | |
| 10586 | #if HAVE_DLFCN_H |
| 10587 | #include <dlfcn.h> |
| 10588 | #endif |
| 10589 | |
| 10590 | #include <stdio.h> |
| 10591 | |
| 10592 | #ifdef RTLD_GLOBAL |
| 10593 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10594 | #else |
| 10595 | # ifdef DL_GLOBAL |
| 10596 | # define LT_DLGLOBAL DL_GLOBAL |
| 10597 | # else |
| 10598 | # define LT_DLGLOBAL 0 |
| 10599 | # endif |
| 10600 | #endif |
| 10601 | |
| 10602 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10603 | find out it does not work in some platform. */ |
| 10604 | #ifndef LT_DLLAZY_OR_NOW |
| 10605 | # ifdef RTLD_LAZY |
| 10606 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10607 | # else |
| 10608 | # ifdef DL_LAZY |
| 10609 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10610 | # else |
| 10611 | # ifdef RTLD_NOW |
| 10612 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10613 | # else |
| 10614 | # ifdef DL_NOW |
| 10615 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10616 | # else |
| 10617 | # define LT_DLLAZY_OR_NOW 0 |
| 10618 | # endif |
| 10619 | # endif |
| 10620 | # endif |
| 10621 | # endif |
| 10622 | #endif |
| 10623 | |
| 10624 | #ifdef __cplusplus |
| 10625 | extern "C" void exit (int); |
| 10626 | #endif |
| 10627 | |
| 10628 | void fnord() { int i=42;} |
| 10629 | int main () |
| 10630 | { |
| 10631 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10632 | int status = $lt_dlunknown; |
| 10633 | |
| 10634 | if (self) |
| 10635 | { |
| 10636 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10637 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10638 | /* dlclose (self); */ |
| 10639 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10640 | else |
| 10641 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10642 | |
| 10643 | exit (status); |
| 10644 | } |
| 10645 | EOF |
| 10646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10647 | (eval $ac_link) 2>&5 |
| 10648 | ac_status=$? |
| 10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10650 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10651 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10652 | lt_status=$? |
| 10653 | case x$lt_status in |
| 10654 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10655 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10656 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10657 | esac |
| 10658 | else : |
| 10659 | # compilation failed |
| 10660 | |
| 10661 | fi |
| 10662 | fi |
| 10663 | rm -fr conftest* |
| 10664 | |
| 10665 | LIBS="$save_LIBS" |
| 10666 | |
| 10667 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10668 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10669 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10670 | fi |
| 10671 | fi |
| 10672 | |
| 10673 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10674 | |
| 10675 | cat >>confdefs.h <<\_ACEOF |
| 10676 | #define NEED_USCORE 1 |
| 10677 | _ACEOF |
| 10678 | |
| 10679 | fi |
| 10680 | |
| 10681 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10682 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10683 | 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] | 10684 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10686 | else |
| 10687 | # PORTME does your system automatically load deplibs for dlopen? |
| 10688 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10689 | # For now, we just catch OSes we know something about -- in the |
| 10690 | # future, we'll try test this programmatically. |
| 10691 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10692 | case "$host_os" in |
| 10693 | aix3*|aix4.1.*|aix4.2.*) |
| 10694 | # Unknown whether this is true for these versions of AIX, but |
| 10695 | # we want this `case' here to explicitly catch those versions. |
| 10696 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10697 | ;; |
| 10698 | aix[45]*) |
| 10699 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10700 | ;; |
| 10701 | darwin*) |
| 10702 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10703 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10704 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10705 | ;; |
| 10706 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10707 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10708 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10709 | ;; |
| 10710 | hpux10*|hpux11*) |
| 10711 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10712 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10713 | interix*) |
| 10714 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10715 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10716 | irix[12345]*|irix6.[01]*) |
| 10717 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10718 | # know how it worked for any of those versions. |
| 10719 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10720 | ;; |
| 10721 | irix*) |
| 10722 | # The case above catches anything before 6.2, and it's known that |
| 10723 | # at 6.2 and later dlopen does load deplibs. |
| 10724 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10725 | ;; |
| 10726 | netbsd*) |
| 10727 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10728 | ;; |
| 10729 | openbsd*) |
| 10730 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10731 | ;; |
| 10732 | osf[1234]*) |
| 10733 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10734 | # it did *not* use an RPATH in a shared library to find objects the |
| 10735 | # library depends on, so we explictly say `no'. |
| 10736 | libltdl_cv_sys_dlopen_deplibs=no |
| 10737 | ;; |
| 10738 | osf5.0|osf5.0a|osf5.1) |
| 10739 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10740 | # it even uses RPATH in a shared library to search for shared objects |
| 10741 | # that the library depends on, but there's no easy way to know if that |
| 10742 | # patch is installed. Since this is the case, all we can really |
| 10743 | # say is unknown -- it depends on the patch being installed. If |
| 10744 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10745 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10746 | ;; |
| 10747 | osf*) |
| 10748 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10749 | # the comments above for what we know about them. |
| 10750 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10751 | # is used to find them so we can finally say `yes'. |
| 10752 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10753 | ;; |
| 10754 | solaris*) |
| 10755 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10756 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10757 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10758 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10759 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10760 | esac |
| 10761 | |
| 10762 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10763 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10764 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10765 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10766 | |
| 10767 | cat >>confdefs.h <<\_ACEOF |
| 10768 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10769 | _ACEOF |
| 10770 | |
| 10771 | fi |
| 10772 | |
| 10773 | |
| 10774 | for ac_header in argz.h |
| 10775 | do |
| 10776 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10777 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10778 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10780 | 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] | 10781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10783 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10784 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10785 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10786 | else |
| 10787 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10788 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10789 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10790 | cat >conftest.$ac_ext <<_ACEOF |
| 10791 | /* confdefs.h. */ |
| 10792 | _ACEOF |
| 10793 | cat confdefs.h >>conftest.$ac_ext |
| 10794 | cat >>conftest.$ac_ext <<_ACEOF |
| 10795 | /* end confdefs.h. */ |
| 10796 | $ac_includes_default |
| 10797 | #include <$ac_header> |
| 10798 | _ACEOF |
| 10799 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10800 | if { (ac_try="$ac_compile" |
| 10801 | case "(($ac_try" in |
| 10802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10803 | *) ac_try_echo=$ac_try;; |
| 10804 | esac |
| 10805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10806 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10807 | ac_status=$? |
| 10808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10809 | rm -f conftest.er1 |
| 10810 | cat conftest.err >&5 |
| 10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10812 | (exit $ac_status); } && |
| 10813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10814 | { (case "(($ac_try" in |
| 10815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10816 | *) ac_try_echo=$ac_try;; |
| 10817 | esac |
| 10818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10819 | (eval "$ac_try") 2>&5 |
| 10820 | ac_status=$? |
| 10821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10822 | (exit $ac_status); }; } && |
| 10823 | { ac_try='test -s conftest.$ac_objext' |
| 10824 | { (case "(($ac_try" in |
| 10825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10826 | *) ac_try_echo=$ac_try;; |
| 10827 | esac |
| 10828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10829 | (eval "$ac_try") 2>&5 |
| 10830 | ac_status=$? |
| 10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10832 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10833 | ac_header_compiler=yes |
| 10834 | else |
| 10835 | echo "$as_me: failed program was:" >&5 |
| 10836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10838 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10839 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10840 | |
| 10841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10842 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10843 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10844 | |
| 10845 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10846 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10847 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10848 | cat >conftest.$ac_ext <<_ACEOF |
| 10849 | /* confdefs.h. */ |
| 10850 | _ACEOF |
| 10851 | cat confdefs.h >>conftest.$ac_ext |
| 10852 | cat >>conftest.$ac_ext <<_ACEOF |
| 10853 | /* end confdefs.h. */ |
| 10854 | #include <$ac_header> |
| 10855 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10857 | case "(($ac_try" in |
| 10858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10859 | *) ac_try_echo=$ac_try;; |
| 10860 | esac |
| 10861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10862 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10863 | ac_status=$? |
| 10864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10865 | rm -f conftest.er1 |
| 10866 | cat conftest.err >&5 |
| 10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10868 | (exit $ac_status); } >/dev/null; then |
| 10869 | if test -s conftest.err; then |
| 10870 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10871 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10872 | else |
| 10873 | ac_cpp_err= |
| 10874 | fi |
| 10875 | else |
| 10876 | ac_cpp_err=yes |
| 10877 | fi |
| 10878 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10879 | ac_header_preproc=yes |
| 10880 | else |
| 10881 | echo "$as_me: failed program was:" >&5 |
| 10882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10883 | |
| 10884 | ac_header_preproc=no |
| 10885 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10886 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10887 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10888 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10889 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10890 | |
| 10891 | # So? What about this header? |
| 10892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10893 | yes:no: ) |
| 10894 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10895 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10897 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10898 | ac_header_preproc=yes |
| 10899 | ;; |
| 10900 | no:yes:* ) |
| 10901 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10902 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10903 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10904 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10905 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10906 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10907 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10908 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10909 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10910 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10911 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10912 | 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] | 10913 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10914 | ## ----------------------------------- ## |
| 10915 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10916 | ## ----------------------------------- ## |
| 10917 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10918 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10919 | ;; |
| 10920 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10921 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10923 | 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] | 10924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10925 | else |
| 10926 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10928 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10929 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10930 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10931 | |
| 10932 | fi |
| 10933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10934 | cat >>confdefs.h <<_ACEOF |
| 10935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10936 | _ACEOF |
| 10937 | |
| 10938 | fi |
| 10939 | |
| 10940 | done |
| 10941 | |
| 10942 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10943 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10944 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10945 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10947 | else |
| 10948 | cat >conftest.$ac_ext <<_ACEOF |
| 10949 | /* confdefs.h. */ |
| 10950 | _ACEOF |
| 10951 | cat confdefs.h >>conftest.$ac_ext |
| 10952 | cat >>conftest.$ac_ext <<_ACEOF |
| 10953 | /* end confdefs.h. */ |
| 10954 | #if HAVE_ARGZ_H |
| 10955 | # include <argz.h> |
| 10956 | #endif |
| 10957 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10958 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10959 | int |
| 10960 | main () |
| 10961 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10962 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10963 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10964 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10965 | return 0; |
| 10966 | ; |
| 10967 | return 0; |
| 10968 | } |
| 10969 | _ACEOF |
| 10970 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10971 | if { (ac_try="$ac_compile" |
| 10972 | case "(($ac_try" in |
| 10973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10974 | *) ac_try_echo=$ac_try;; |
| 10975 | esac |
| 10976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10977 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10978 | ac_status=$? |
| 10979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10980 | rm -f conftest.er1 |
| 10981 | cat conftest.err >&5 |
| 10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10983 | (exit $ac_status); } && |
| 10984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10985 | { (case "(($ac_try" in |
| 10986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10987 | *) ac_try_echo=$ac_try;; |
| 10988 | esac |
| 10989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10990 | (eval "$ac_try") 2>&5 |
| 10991 | ac_status=$? |
| 10992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10993 | (exit $ac_status); }; } && |
| 10994 | { ac_try='test -s conftest.$ac_objext' |
| 10995 | { (case "(($ac_try" in |
| 10996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10997 | *) ac_try_echo=$ac_try;; |
| 10998 | esac |
| 10999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11000 | (eval "$ac_try") 2>&5 |
| 11001 | ac_status=$? |
| 11002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11003 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11004 | ac_cv_type_error_t=yes |
| 11005 | else |
| 11006 | echo "$as_me: failed program was:" >&5 |
| 11007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11009 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11010 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11011 | |
| 11012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11014 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11015 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11016 | if test $ac_cv_type_error_t = yes; then |
| 11017 | |
| 11018 | cat >>confdefs.h <<_ACEOF |
| 11019 | #define HAVE_ERROR_T 1 |
| 11020 | _ACEOF |
| 11021 | |
| 11022 | |
| 11023 | else |
| 11024 | |
| 11025 | cat >>confdefs.h <<\_ACEOF |
| 11026 | #define error_t int |
| 11027 | _ACEOF |
| 11028 | |
| 11029 | fi |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | |
| 11035 | |
| 11036 | |
| 11037 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11038 | do |
| 11039 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11040 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11041 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11042 | 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] | 11043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11044 | else |
| 11045 | cat >conftest.$ac_ext <<_ACEOF |
| 11046 | /* confdefs.h. */ |
| 11047 | _ACEOF |
| 11048 | cat confdefs.h >>conftest.$ac_ext |
| 11049 | cat >>conftest.$ac_ext <<_ACEOF |
| 11050 | /* end confdefs.h. */ |
| 11051 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11052 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11053 | #define $ac_func innocuous_$ac_func |
| 11054 | |
| 11055 | /* System header to define __stub macros and hopefully few prototypes, |
| 11056 | which can conflict with char $ac_func (); below. |
| 11057 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11058 | <limits.h> exists even on freestanding compilers. */ |
| 11059 | |
| 11060 | #ifdef __STDC__ |
| 11061 | # include <limits.h> |
| 11062 | #else |
| 11063 | # include <assert.h> |
| 11064 | #endif |
| 11065 | |
| 11066 | #undef $ac_func |
| 11067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11068 | /* Override any GCC internal prototype to avoid an error. |
| 11069 | Use char because int might match the return type of a GCC |
| 11070 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11071 | #ifdef __cplusplus |
| 11072 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11073 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11074 | char $ac_func (); |
| 11075 | /* The GNU C library defines this for functions which it implements |
| 11076 | to always fail with ENOSYS. Some functions are actually named |
| 11077 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11078 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11079 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11080 | #endif |
| 11081 | |
| 11082 | int |
| 11083 | main () |
| 11084 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11085 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11086 | ; |
| 11087 | return 0; |
| 11088 | } |
| 11089 | _ACEOF |
| 11090 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11091 | if { (ac_try="$ac_link" |
| 11092 | case "(($ac_try" in |
| 11093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11094 | *) ac_try_echo=$ac_try;; |
| 11095 | esac |
| 11096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11097 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11098 | ac_status=$? |
| 11099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11100 | rm -f conftest.er1 |
| 11101 | cat conftest.err >&5 |
| 11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11103 | (exit $ac_status); } && |
| 11104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11105 | { (case "(($ac_try" in |
| 11106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11107 | *) ac_try_echo=$ac_try;; |
| 11108 | esac |
| 11109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11110 | (eval "$ac_try") 2>&5 |
| 11111 | ac_status=$? |
| 11112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11113 | (exit $ac_status); }; } && |
| 11114 | { ac_try='test -s conftest$ac_exeext' |
| 11115 | { (case "(($ac_try" in |
| 11116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11117 | *) ac_try_echo=$ac_try;; |
| 11118 | esac |
| 11119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11120 | (eval "$ac_try") 2>&5 |
| 11121 | ac_status=$? |
| 11122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11123 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11124 | eval "$as_ac_var=yes" |
| 11125 | else |
| 11126 | echo "$as_me: failed program was:" >&5 |
| 11127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11129 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11130 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11131 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11132 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11133 | conftest$ac_exeext conftest.$ac_ext |
| 11134 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11135 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11136 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11137 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11138 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11139 | cat >>confdefs.h <<_ACEOF |
| 11140 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11141 | _ACEOF |
| 11142 | |
| 11143 | fi |
| 11144 | done |
| 11145 | |
| 11146 | |
| 11147 | |
| 11148 | |
| 11149 | |
| 11150 | |
| 11151 | |
| 11152 | |
| 11153 | |
| 11154 | |
| 11155 | |
| 11156 | |
| 11157 | |
| 11158 | |
| 11159 | |
| 11160 | |
| 11161 | |
| 11162 | |
| 11163 | |
| 11164 | |
| 11165 | |
| 11166 | |
| 11167 | |
| 11168 | |
| 11169 | |
| 11170 | |
| 11171 | |
| 11172 | |
| 11173 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11174 | stdio.h unistd.h |
| 11175 | do |
| 11176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11177 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11178 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11180 | 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] | 11181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11183 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11184 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11185 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11186 | else |
| 11187 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11188 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11190 | cat >conftest.$ac_ext <<_ACEOF |
| 11191 | /* confdefs.h. */ |
| 11192 | _ACEOF |
| 11193 | cat confdefs.h >>conftest.$ac_ext |
| 11194 | cat >>conftest.$ac_ext <<_ACEOF |
| 11195 | /* end confdefs.h. */ |
| 11196 | $ac_includes_default |
| 11197 | #include <$ac_header> |
| 11198 | _ACEOF |
| 11199 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11200 | if { (ac_try="$ac_compile" |
| 11201 | case "(($ac_try" in |
| 11202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11203 | *) ac_try_echo=$ac_try;; |
| 11204 | esac |
| 11205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11206 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11207 | ac_status=$? |
| 11208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11209 | rm -f conftest.er1 |
| 11210 | cat conftest.err >&5 |
| 11211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11212 | (exit $ac_status); } && |
| 11213 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11214 | { (case "(($ac_try" in |
| 11215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11216 | *) ac_try_echo=$ac_try;; |
| 11217 | esac |
| 11218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11219 | (eval "$ac_try") 2>&5 |
| 11220 | ac_status=$? |
| 11221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11222 | (exit $ac_status); }; } && |
| 11223 | { ac_try='test -s conftest.$ac_objext' |
| 11224 | { (case "(($ac_try" in |
| 11225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11226 | *) ac_try_echo=$ac_try;; |
| 11227 | esac |
| 11228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11229 | (eval "$ac_try") 2>&5 |
| 11230 | ac_status=$? |
| 11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11232 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11233 | ac_header_compiler=yes |
| 11234 | else |
| 11235 | echo "$as_me: failed program was:" >&5 |
| 11236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11238 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11239 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11240 | |
| 11241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11242 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11243 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11244 | |
| 11245 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11246 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11248 | cat >conftest.$ac_ext <<_ACEOF |
| 11249 | /* confdefs.h. */ |
| 11250 | _ACEOF |
| 11251 | cat confdefs.h >>conftest.$ac_ext |
| 11252 | cat >>conftest.$ac_ext <<_ACEOF |
| 11253 | /* end confdefs.h. */ |
| 11254 | #include <$ac_header> |
| 11255 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11257 | case "(($ac_try" in |
| 11258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11259 | *) ac_try_echo=$ac_try;; |
| 11260 | esac |
| 11261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11262 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11263 | ac_status=$? |
| 11264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11265 | rm -f conftest.er1 |
| 11266 | cat conftest.err >&5 |
| 11267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11268 | (exit $ac_status); } >/dev/null; then |
| 11269 | if test -s conftest.err; then |
| 11270 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11271 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11272 | else |
| 11273 | ac_cpp_err= |
| 11274 | fi |
| 11275 | else |
| 11276 | ac_cpp_err=yes |
| 11277 | fi |
| 11278 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11279 | ac_header_preproc=yes |
| 11280 | else |
| 11281 | echo "$as_me: failed program was:" >&5 |
| 11282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11283 | |
| 11284 | ac_header_preproc=no |
| 11285 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11286 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11287 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11288 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11289 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11290 | |
| 11291 | # So? What about this header? |
| 11292 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11293 | yes:no: ) |
| 11294 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11295 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11296 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11297 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11298 | ac_header_preproc=yes |
| 11299 | ;; |
| 11300 | no:yes:* ) |
| 11301 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11302 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11303 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11304 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11305 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11306 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11307 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11308 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11309 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11310 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11311 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11312 | 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] | 11313 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11314 | ## ----------------------------------- ## |
| 11315 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11316 | ## ----------------------------------- ## |
| 11317 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11318 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11319 | ;; |
| 11320 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11321 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11322 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11323 | 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] | 11324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11325 | else |
| 11326 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11327 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11328 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11329 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11330 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11331 | |
| 11332 | fi |
| 11333 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11334 | cat >>confdefs.h <<_ACEOF |
| 11335 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11336 | _ACEOF |
| 11337 | |
| 11338 | fi |
| 11339 | |
| 11340 | done |
| 11341 | |
| 11342 | |
| 11343 | |
| 11344 | |
| 11345 | |
| 11346 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11347 | do |
| 11348 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11349 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11350 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11352 | 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] | 11353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11354 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11355 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11357 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11358 | else |
| 11359 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11360 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11361 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11362 | cat >conftest.$ac_ext <<_ACEOF |
| 11363 | /* confdefs.h. */ |
| 11364 | _ACEOF |
| 11365 | cat confdefs.h >>conftest.$ac_ext |
| 11366 | cat >>conftest.$ac_ext <<_ACEOF |
| 11367 | /* end confdefs.h. */ |
| 11368 | $ac_includes_default |
| 11369 | #include <$ac_header> |
| 11370 | _ACEOF |
| 11371 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11372 | if { (ac_try="$ac_compile" |
| 11373 | case "(($ac_try" in |
| 11374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11375 | *) ac_try_echo=$ac_try;; |
| 11376 | esac |
| 11377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11378 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11379 | ac_status=$? |
| 11380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11381 | rm -f conftest.er1 |
| 11382 | cat conftest.err >&5 |
| 11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11384 | (exit $ac_status); } && |
| 11385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11386 | { (case "(($ac_try" in |
| 11387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11388 | *) ac_try_echo=$ac_try;; |
| 11389 | esac |
| 11390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11391 | (eval "$ac_try") 2>&5 |
| 11392 | ac_status=$? |
| 11393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11394 | (exit $ac_status); }; } && |
| 11395 | { ac_try='test -s conftest.$ac_objext' |
| 11396 | { (case "(($ac_try" in |
| 11397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11398 | *) ac_try_echo=$ac_try;; |
| 11399 | esac |
| 11400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11401 | (eval "$ac_try") 2>&5 |
| 11402 | ac_status=$? |
| 11403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11404 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11405 | ac_header_compiler=yes |
| 11406 | else |
| 11407 | echo "$as_me: failed program was:" >&5 |
| 11408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11409 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11410 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11411 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11412 | |
| 11413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11414 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11415 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11416 | |
| 11417 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11418 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11420 | cat >conftest.$ac_ext <<_ACEOF |
| 11421 | /* confdefs.h. */ |
| 11422 | _ACEOF |
| 11423 | cat confdefs.h >>conftest.$ac_ext |
| 11424 | cat >>conftest.$ac_ext <<_ACEOF |
| 11425 | /* end confdefs.h. */ |
| 11426 | #include <$ac_header> |
| 11427 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11428 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11429 | case "(($ac_try" in |
| 11430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11431 | *) ac_try_echo=$ac_try;; |
| 11432 | esac |
| 11433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11434 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11435 | ac_status=$? |
| 11436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11437 | rm -f conftest.er1 |
| 11438 | cat conftest.err >&5 |
| 11439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11440 | (exit $ac_status); } >/dev/null; then |
| 11441 | if test -s conftest.err; then |
| 11442 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11443 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11444 | else |
| 11445 | ac_cpp_err= |
| 11446 | fi |
| 11447 | else |
| 11448 | ac_cpp_err=yes |
| 11449 | fi |
| 11450 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11451 | ac_header_preproc=yes |
| 11452 | else |
| 11453 | echo "$as_me: failed program was:" >&5 |
| 11454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11455 | |
| 11456 | ac_header_preproc=no |
| 11457 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11458 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11459 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11460 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11461 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11462 | |
| 11463 | # So? What about this header? |
| 11464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11465 | yes:no: ) |
| 11466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11469 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11470 | ac_header_preproc=yes |
| 11471 | ;; |
| 11472 | no:yes:* ) |
| 11473 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11474 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11475 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11476 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11477 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11478 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11479 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11480 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11482 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11483 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11484 | 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] | 11485 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11486 | ## ----------------------------------- ## |
| 11487 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11488 | ## ----------------------------------- ## |
| 11489 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11490 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11491 | ;; |
| 11492 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11493 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11495 | 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] | 11496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11497 | else |
| 11498 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11499 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11500 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11501 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11502 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11503 | |
| 11504 | fi |
| 11505 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11506 | cat >>confdefs.h <<_ACEOF |
| 11507 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11508 | _ACEOF |
| 11509 | |
| 11510 | fi |
| 11511 | |
| 11512 | done |
| 11513 | |
| 11514 | |
| 11515 | |
| 11516 | for ac_header in string.h strings.h |
| 11517 | do |
| 11518 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11519 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11520 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11521 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11522 | 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] | 11523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11524 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11525 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11526 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11527 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11528 | else |
| 11529 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11530 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11531 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11532 | cat >conftest.$ac_ext <<_ACEOF |
| 11533 | /* confdefs.h. */ |
| 11534 | _ACEOF |
| 11535 | cat confdefs.h >>conftest.$ac_ext |
| 11536 | cat >>conftest.$ac_ext <<_ACEOF |
| 11537 | /* end confdefs.h. */ |
| 11538 | $ac_includes_default |
| 11539 | #include <$ac_header> |
| 11540 | _ACEOF |
| 11541 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11542 | if { (ac_try="$ac_compile" |
| 11543 | case "(($ac_try" in |
| 11544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11545 | *) ac_try_echo=$ac_try;; |
| 11546 | esac |
| 11547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11548 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11549 | ac_status=$? |
| 11550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11551 | rm -f conftest.er1 |
| 11552 | cat conftest.err >&5 |
| 11553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11554 | (exit $ac_status); } && |
| 11555 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11556 | { (case "(($ac_try" in |
| 11557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11558 | *) ac_try_echo=$ac_try;; |
| 11559 | esac |
| 11560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11561 | (eval "$ac_try") 2>&5 |
| 11562 | ac_status=$? |
| 11563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11564 | (exit $ac_status); }; } && |
| 11565 | { ac_try='test -s conftest.$ac_objext' |
| 11566 | { (case "(($ac_try" in |
| 11567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11568 | *) ac_try_echo=$ac_try;; |
| 11569 | esac |
| 11570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11571 | (eval "$ac_try") 2>&5 |
| 11572 | ac_status=$? |
| 11573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11574 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11575 | ac_header_compiler=yes |
| 11576 | else |
| 11577 | echo "$as_me: failed program was:" >&5 |
| 11578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11580 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11581 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11582 | |
| 11583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11584 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11585 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11586 | |
| 11587 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11588 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11589 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11590 | cat >conftest.$ac_ext <<_ACEOF |
| 11591 | /* confdefs.h. */ |
| 11592 | _ACEOF |
| 11593 | cat confdefs.h >>conftest.$ac_ext |
| 11594 | cat >>conftest.$ac_ext <<_ACEOF |
| 11595 | /* end confdefs.h. */ |
| 11596 | #include <$ac_header> |
| 11597 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11598 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11599 | case "(($ac_try" in |
| 11600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11601 | *) ac_try_echo=$ac_try;; |
| 11602 | esac |
| 11603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11604 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11605 | ac_status=$? |
| 11606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11607 | rm -f conftest.er1 |
| 11608 | cat conftest.err >&5 |
| 11609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11610 | (exit $ac_status); } >/dev/null; then |
| 11611 | if test -s conftest.err; then |
| 11612 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11614 | else |
| 11615 | ac_cpp_err= |
| 11616 | fi |
| 11617 | else |
| 11618 | ac_cpp_err=yes |
| 11619 | fi |
| 11620 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11621 | ac_header_preproc=yes |
| 11622 | else |
| 11623 | echo "$as_me: failed program was:" >&5 |
| 11624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11625 | |
| 11626 | ac_header_preproc=no |
| 11627 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11628 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11629 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11630 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11631 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11632 | |
| 11633 | # So? What about this header? |
| 11634 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11635 | yes:no: ) |
| 11636 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11637 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11638 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11639 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11640 | ac_header_preproc=yes |
| 11641 | ;; |
| 11642 | no:yes:* ) |
| 11643 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11644 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11645 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11646 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11647 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11648 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11649 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11650 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11651 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11652 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11653 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11654 | 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] | 11655 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11656 | ## ----------------------------------- ## |
| 11657 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11658 | ## ----------------------------------- ## |
| 11659 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11660 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11661 | ;; |
| 11662 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11663 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11664 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11665 | 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] | 11666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11667 | else |
| 11668 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11669 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11670 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11671 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11672 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11673 | |
| 11674 | fi |
| 11675 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11676 | cat >>confdefs.h <<_ACEOF |
| 11677 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11678 | _ACEOF |
| 11679 | break |
| 11680 | fi |
| 11681 | |
| 11682 | done |
| 11683 | |
| 11684 | |
| 11685 | |
| 11686 | |
| 11687 | for ac_func in strchr index |
| 11688 | do |
| 11689 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11690 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11691 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11692 | 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] | 11693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11694 | else |
| 11695 | cat >conftest.$ac_ext <<_ACEOF |
| 11696 | /* confdefs.h. */ |
| 11697 | _ACEOF |
| 11698 | cat confdefs.h >>conftest.$ac_ext |
| 11699 | cat >>conftest.$ac_ext <<_ACEOF |
| 11700 | /* end confdefs.h. */ |
| 11701 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11702 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11703 | #define $ac_func innocuous_$ac_func |
| 11704 | |
| 11705 | /* System header to define __stub macros and hopefully few prototypes, |
| 11706 | which can conflict with char $ac_func (); below. |
| 11707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11708 | <limits.h> exists even on freestanding compilers. */ |
| 11709 | |
| 11710 | #ifdef __STDC__ |
| 11711 | # include <limits.h> |
| 11712 | #else |
| 11713 | # include <assert.h> |
| 11714 | #endif |
| 11715 | |
| 11716 | #undef $ac_func |
| 11717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11718 | /* Override any GCC internal prototype to avoid an error. |
| 11719 | Use char because int might match the return type of a GCC |
| 11720 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11721 | #ifdef __cplusplus |
| 11722 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11723 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11724 | char $ac_func (); |
| 11725 | /* The GNU C library defines this for functions which it implements |
| 11726 | to always fail with ENOSYS. Some functions are actually named |
| 11727 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11728 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11729 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11730 | #endif |
| 11731 | |
| 11732 | int |
| 11733 | main () |
| 11734 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11735 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11736 | ; |
| 11737 | return 0; |
| 11738 | } |
| 11739 | _ACEOF |
| 11740 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11741 | if { (ac_try="$ac_link" |
| 11742 | case "(($ac_try" in |
| 11743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11744 | *) ac_try_echo=$ac_try;; |
| 11745 | esac |
| 11746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11747 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11748 | ac_status=$? |
| 11749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11750 | rm -f conftest.er1 |
| 11751 | cat conftest.err >&5 |
| 11752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11753 | (exit $ac_status); } && |
| 11754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11755 | { (case "(($ac_try" in |
| 11756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11757 | *) ac_try_echo=$ac_try;; |
| 11758 | esac |
| 11759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11760 | (eval "$ac_try") 2>&5 |
| 11761 | ac_status=$? |
| 11762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11763 | (exit $ac_status); }; } && |
| 11764 | { ac_try='test -s conftest$ac_exeext' |
| 11765 | { (case "(($ac_try" in |
| 11766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11767 | *) ac_try_echo=$ac_try;; |
| 11768 | esac |
| 11769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11770 | (eval "$ac_try") 2>&5 |
| 11771 | ac_status=$? |
| 11772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11773 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11774 | eval "$as_ac_var=yes" |
| 11775 | else |
| 11776 | echo "$as_me: failed program was:" >&5 |
| 11777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11778 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11779 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11780 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11781 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11782 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11783 | conftest$ac_exeext conftest.$ac_ext |
| 11784 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11785 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11787 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11788 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11789 | cat >>confdefs.h <<_ACEOF |
| 11790 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11791 | _ACEOF |
| 11792 | break |
| 11793 | fi |
| 11794 | done |
| 11795 | |
| 11796 | |
| 11797 | |
| 11798 | for ac_func in strrchr rindex |
| 11799 | do |
| 11800 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11801 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11802 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11803 | 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] | 11804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11805 | else |
| 11806 | cat >conftest.$ac_ext <<_ACEOF |
| 11807 | /* confdefs.h. */ |
| 11808 | _ACEOF |
| 11809 | cat confdefs.h >>conftest.$ac_ext |
| 11810 | cat >>conftest.$ac_ext <<_ACEOF |
| 11811 | /* end confdefs.h. */ |
| 11812 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11813 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11814 | #define $ac_func innocuous_$ac_func |
| 11815 | |
| 11816 | /* System header to define __stub macros and hopefully few prototypes, |
| 11817 | which can conflict with char $ac_func (); below. |
| 11818 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11819 | <limits.h> exists even on freestanding compilers. */ |
| 11820 | |
| 11821 | #ifdef __STDC__ |
| 11822 | # include <limits.h> |
| 11823 | #else |
| 11824 | # include <assert.h> |
| 11825 | #endif |
| 11826 | |
| 11827 | #undef $ac_func |
| 11828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11829 | /* Override any GCC internal prototype to avoid an error. |
| 11830 | Use char because int might match the return type of a GCC |
| 11831 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11832 | #ifdef __cplusplus |
| 11833 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11834 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11835 | char $ac_func (); |
| 11836 | /* The GNU C library defines this for functions which it implements |
| 11837 | to always fail with ENOSYS. Some functions are actually named |
| 11838 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11839 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11840 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11841 | #endif |
| 11842 | |
| 11843 | int |
| 11844 | main () |
| 11845 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11846 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11847 | ; |
| 11848 | return 0; |
| 11849 | } |
| 11850 | _ACEOF |
| 11851 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11852 | if { (ac_try="$ac_link" |
| 11853 | case "(($ac_try" in |
| 11854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11855 | *) ac_try_echo=$ac_try;; |
| 11856 | esac |
| 11857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11858 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11859 | ac_status=$? |
| 11860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11861 | rm -f conftest.er1 |
| 11862 | cat conftest.err >&5 |
| 11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11864 | (exit $ac_status); } && |
| 11865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11866 | { (case "(($ac_try" in |
| 11867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11868 | *) ac_try_echo=$ac_try;; |
| 11869 | esac |
| 11870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11871 | (eval "$ac_try") 2>&5 |
| 11872 | ac_status=$? |
| 11873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11874 | (exit $ac_status); }; } && |
| 11875 | { ac_try='test -s conftest$ac_exeext' |
| 11876 | { (case "(($ac_try" in |
| 11877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11878 | *) ac_try_echo=$ac_try;; |
| 11879 | esac |
| 11880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11881 | (eval "$ac_try") 2>&5 |
| 11882 | ac_status=$? |
| 11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11884 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11885 | eval "$as_ac_var=yes" |
| 11886 | else |
| 11887 | echo "$as_me: failed program was:" >&5 |
| 11888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11889 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11890 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11891 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11892 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11893 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11894 | conftest$ac_exeext conftest.$ac_ext |
| 11895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11896 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11897 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11898 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11899 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11900 | cat >>confdefs.h <<_ACEOF |
| 11901 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11902 | _ACEOF |
| 11903 | break |
| 11904 | fi |
| 11905 | done |
| 11906 | |
| 11907 | |
| 11908 | |
| 11909 | for ac_func in memcpy bcopy |
| 11910 | do |
| 11911 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11912 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11913 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11914 | 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] | 11915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11916 | else |
| 11917 | cat >conftest.$ac_ext <<_ACEOF |
| 11918 | /* confdefs.h. */ |
| 11919 | _ACEOF |
| 11920 | cat confdefs.h >>conftest.$ac_ext |
| 11921 | cat >>conftest.$ac_ext <<_ACEOF |
| 11922 | /* end confdefs.h. */ |
| 11923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11925 | #define $ac_func innocuous_$ac_func |
| 11926 | |
| 11927 | /* System header to define __stub macros and hopefully few prototypes, |
| 11928 | which can conflict with char $ac_func (); below. |
| 11929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11930 | <limits.h> exists even on freestanding compilers. */ |
| 11931 | |
| 11932 | #ifdef __STDC__ |
| 11933 | # include <limits.h> |
| 11934 | #else |
| 11935 | # include <assert.h> |
| 11936 | #endif |
| 11937 | |
| 11938 | #undef $ac_func |
| 11939 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11940 | /* Override any GCC internal prototype to avoid an error. |
| 11941 | Use char because int might match the return type of a GCC |
| 11942 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11943 | #ifdef __cplusplus |
| 11944 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11945 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11946 | char $ac_func (); |
| 11947 | /* The GNU C library defines this for functions which it implements |
| 11948 | to always fail with ENOSYS. Some functions are actually named |
| 11949 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11950 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11951 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11952 | #endif |
| 11953 | |
| 11954 | int |
| 11955 | main () |
| 11956 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11957 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11958 | ; |
| 11959 | return 0; |
| 11960 | } |
| 11961 | _ACEOF |
| 11962 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11963 | if { (ac_try="$ac_link" |
| 11964 | case "(($ac_try" in |
| 11965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11966 | *) ac_try_echo=$ac_try;; |
| 11967 | esac |
| 11968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11969 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11970 | ac_status=$? |
| 11971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11972 | rm -f conftest.er1 |
| 11973 | cat conftest.err >&5 |
| 11974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11975 | (exit $ac_status); } && |
| 11976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11977 | { (case "(($ac_try" in |
| 11978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11979 | *) ac_try_echo=$ac_try;; |
| 11980 | esac |
| 11981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11982 | (eval "$ac_try") 2>&5 |
| 11983 | ac_status=$? |
| 11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11985 | (exit $ac_status); }; } && |
| 11986 | { ac_try='test -s conftest$ac_exeext' |
| 11987 | { (case "(($ac_try" in |
| 11988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11989 | *) ac_try_echo=$ac_try;; |
| 11990 | esac |
| 11991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11992 | (eval "$ac_try") 2>&5 |
| 11993 | ac_status=$? |
| 11994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11995 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11996 | eval "$as_ac_var=yes" |
| 11997 | else |
| 11998 | echo "$as_me: failed program was:" >&5 |
| 11999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12001 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12002 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12003 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12004 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12005 | conftest$ac_exeext conftest.$ac_ext |
| 12006 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12007 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12008 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12009 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12010 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12011 | cat >>confdefs.h <<_ACEOF |
| 12012 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12013 | _ACEOF |
| 12014 | break |
| 12015 | fi |
| 12016 | done |
| 12017 | |
| 12018 | |
| 12019 | |
| 12020 | for ac_func in memmove strcmp |
| 12021 | do |
| 12022 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12023 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12024 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12025 | 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] | 12026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12027 | else |
| 12028 | cat >conftest.$ac_ext <<_ACEOF |
| 12029 | /* confdefs.h. */ |
| 12030 | _ACEOF |
| 12031 | cat confdefs.h >>conftest.$ac_ext |
| 12032 | cat >>conftest.$ac_ext <<_ACEOF |
| 12033 | /* end confdefs.h. */ |
| 12034 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12035 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12036 | #define $ac_func innocuous_$ac_func |
| 12037 | |
| 12038 | /* System header to define __stub macros and hopefully few prototypes, |
| 12039 | which can conflict with char $ac_func (); below. |
| 12040 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12041 | <limits.h> exists even on freestanding compilers. */ |
| 12042 | |
| 12043 | #ifdef __STDC__ |
| 12044 | # include <limits.h> |
| 12045 | #else |
| 12046 | # include <assert.h> |
| 12047 | #endif |
| 12048 | |
| 12049 | #undef $ac_func |
| 12050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12051 | /* Override any GCC internal prototype to avoid an error. |
| 12052 | Use char because int might match the return type of a GCC |
| 12053 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12054 | #ifdef __cplusplus |
| 12055 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12056 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12057 | char $ac_func (); |
| 12058 | /* The GNU C library defines this for functions which it implements |
| 12059 | to always fail with ENOSYS. Some functions are actually named |
| 12060 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12061 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12062 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12063 | #endif |
| 12064 | |
| 12065 | int |
| 12066 | main () |
| 12067 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12068 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12069 | ; |
| 12070 | return 0; |
| 12071 | } |
| 12072 | _ACEOF |
| 12073 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12074 | if { (ac_try="$ac_link" |
| 12075 | case "(($ac_try" in |
| 12076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12077 | *) ac_try_echo=$ac_try;; |
| 12078 | esac |
| 12079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12080 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12081 | ac_status=$? |
| 12082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12083 | rm -f conftest.er1 |
| 12084 | cat conftest.err >&5 |
| 12085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12086 | (exit $ac_status); } && |
| 12087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12088 | { (case "(($ac_try" in |
| 12089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12090 | *) ac_try_echo=$ac_try;; |
| 12091 | esac |
| 12092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12093 | (eval "$ac_try") 2>&5 |
| 12094 | ac_status=$? |
| 12095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12096 | (exit $ac_status); }; } && |
| 12097 | { ac_try='test -s conftest$ac_exeext' |
| 12098 | { (case "(($ac_try" in |
| 12099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12100 | *) ac_try_echo=$ac_try;; |
| 12101 | esac |
| 12102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12103 | (eval "$ac_try") 2>&5 |
| 12104 | ac_status=$? |
| 12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12106 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12107 | eval "$as_ac_var=yes" |
| 12108 | else |
| 12109 | echo "$as_me: failed program was:" >&5 |
| 12110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12111 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12112 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12113 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12114 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12115 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12116 | conftest$ac_exeext conftest.$ac_ext |
| 12117 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12118 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12119 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12120 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12121 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12122 | cat >>confdefs.h <<_ACEOF |
| 12123 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12124 | _ACEOF |
| 12125 | |
| 12126 | fi |
| 12127 | done |
| 12128 | |
| 12129 | |
| 12130 | |
| 12131 | |
| 12132 | for ac_func in closedir opendir readdir |
| 12133 | do |
| 12134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12135 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12137 | 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] | 12138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12139 | else |
| 12140 | cat >conftest.$ac_ext <<_ACEOF |
| 12141 | /* confdefs.h. */ |
| 12142 | _ACEOF |
| 12143 | cat confdefs.h >>conftest.$ac_ext |
| 12144 | cat >>conftest.$ac_ext <<_ACEOF |
| 12145 | /* end confdefs.h. */ |
| 12146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12148 | #define $ac_func innocuous_$ac_func |
| 12149 | |
| 12150 | /* System header to define __stub macros and hopefully few prototypes, |
| 12151 | which can conflict with char $ac_func (); below. |
| 12152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12153 | <limits.h> exists even on freestanding compilers. */ |
| 12154 | |
| 12155 | #ifdef __STDC__ |
| 12156 | # include <limits.h> |
| 12157 | #else |
| 12158 | # include <assert.h> |
| 12159 | #endif |
| 12160 | |
| 12161 | #undef $ac_func |
| 12162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12163 | /* Override any GCC internal prototype to avoid an error. |
| 12164 | Use char because int might match the return type of a GCC |
| 12165 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12166 | #ifdef __cplusplus |
| 12167 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12168 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12169 | char $ac_func (); |
| 12170 | /* The GNU C library defines this for functions which it implements |
| 12171 | to always fail with ENOSYS. Some functions are actually named |
| 12172 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12173 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12174 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12175 | #endif |
| 12176 | |
| 12177 | int |
| 12178 | main () |
| 12179 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12180 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12181 | ; |
| 12182 | return 0; |
| 12183 | } |
| 12184 | _ACEOF |
| 12185 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12186 | if { (ac_try="$ac_link" |
| 12187 | case "(($ac_try" in |
| 12188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12189 | *) ac_try_echo=$ac_try;; |
| 12190 | esac |
| 12191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12192 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12193 | ac_status=$? |
| 12194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12195 | rm -f conftest.er1 |
| 12196 | cat conftest.err >&5 |
| 12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12198 | (exit $ac_status); } && |
| 12199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12200 | { (case "(($ac_try" in |
| 12201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12202 | *) ac_try_echo=$ac_try;; |
| 12203 | esac |
| 12204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12205 | (eval "$ac_try") 2>&5 |
| 12206 | ac_status=$? |
| 12207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12208 | (exit $ac_status); }; } && |
| 12209 | { ac_try='test -s conftest$ac_exeext' |
| 12210 | { (case "(($ac_try" in |
| 12211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12212 | *) ac_try_echo=$ac_try;; |
| 12213 | esac |
| 12214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12215 | (eval "$ac_try") 2>&5 |
| 12216 | ac_status=$? |
| 12217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12218 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12219 | eval "$as_ac_var=yes" |
| 12220 | else |
| 12221 | echo "$as_me: failed program was:" >&5 |
| 12222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12224 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12225 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12226 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12227 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12228 | conftest$ac_exeext conftest.$ac_ext |
| 12229 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12230 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12231 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12232 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12233 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12234 | cat >>confdefs.h <<_ACEOF |
| 12235 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12236 | _ACEOF |
| 12237 | |
| 12238 | fi |
| 12239 | done |
| 12240 | |
| 12241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12242 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12243 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12244 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12245 | case $enableval in |
| 12246 | yes) enable_shared=yes ;; |
| 12247 | no) enable_shared=no ;; |
| 12248 | *) |
| 12249 | enable_shared=no |
| 12250 | # Look at the argument we got. We use all the common list separators. |
| 12251 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12252 | for pkg in $enableval; do |
| 12253 | IFS="$lt_save_ifs" |
| 12254 | if test "X$pkg" = "X$p"; then |
| 12255 | enable_shared=yes |
| 12256 | fi |
| 12257 | done |
| 12258 | IFS="$lt_save_ifs" |
| 12259 | ;; |
| 12260 | esac |
| 12261 | else |
| 12262 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12263 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12265 | |
| 12266 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12267 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12268 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12269 | case $enableval in |
| 12270 | yes) enable_static=yes ;; |
| 12271 | no) enable_static=no ;; |
| 12272 | *) |
| 12273 | enable_static=no |
| 12274 | # Look at the argument we got. We use all the common list separators. |
| 12275 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12276 | for pkg in $enableval; do |
| 12277 | IFS="$lt_save_ifs" |
| 12278 | if test "X$pkg" = "X$p"; then |
| 12279 | enable_static=yes |
| 12280 | fi |
| 12281 | done |
| 12282 | IFS="$lt_save_ifs" |
| 12283 | ;; |
| 12284 | esac |
| 12285 | else |
| 12286 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12287 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12289 | |
| 12290 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12291 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12292 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12293 | case $enableval in |
| 12294 | yes) enable_fast_install=yes ;; |
| 12295 | no) enable_fast_install=no ;; |
| 12296 | *) |
| 12297 | enable_fast_install=no |
| 12298 | # Look at the argument we got. We use all the common list separators. |
| 12299 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12300 | for pkg in $enableval; do |
| 12301 | IFS="$lt_save_ifs" |
| 12302 | if test "X$pkg" = "X$p"; then |
| 12303 | enable_fast_install=yes |
| 12304 | fi |
| 12305 | done |
| 12306 | IFS="$lt_save_ifs" |
| 12307 | ;; |
| 12308 | esac |
| 12309 | else |
| 12310 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12311 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12313 | |
| 12314 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12315 | 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] | 12316 | if test "${lt_cv_path_SED+set}" = set; then |
| 12317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12318 | else |
| 12319 | # Loop through the user's path and test for sed and gsed. |
| 12320 | # Then use that list of sed's as ones to test for truncation. |
| 12321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12322 | for as_dir in $PATH |
| 12323 | do |
| 12324 | IFS=$as_save_IFS |
| 12325 | test -z "$as_dir" && as_dir=. |
| 12326 | for lt_ac_prog in sed gsed; do |
| 12327 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12328 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12329 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12330 | fi |
| 12331 | done |
| 12332 | done |
| 12333 | done |
| 12334 | lt_ac_max=0 |
| 12335 | lt_ac_count=0 |
| 12336 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12337 | # along with /bin/sed that truncates output. |
| 12338 | 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] | 12339 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12340 | cat /dev/null > conftest.in |
| 12341 | lt_ac_count=0 |
| 12342 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12343 | # Check for GNU sed and select it if it is found. |
| 12344 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12345 | lt_cv_path_SED=$lt_ac_sed |
| 12346 | break |
| 12347 | fi |
| 12348 | while true; do |
| 12349 | cat conftest.in conftest.in >conftest.tmp |
| 12350 | mv conftest.tmp conftest.in |
| 12351 | cp conftest.in conftest.nl |
| 12352 | echo >>conftest.nl |
| 12353 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12354 | cmp -s conftest.out conftest.nl || break |
| 12355 | # 10000 chars as input seems more than enough |
| 12356 | test $lt_ac_count -gt 10 && break |
| 12357 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12358 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12359 | lt_ac_max=$lt_ac_count |
| 12360 | lt_cv_path_SED=$lt_ac_sed |
| 12361 | fi |
| 12362 | done |
| 12363 | done |
| 12364 | |
| 12365 | fi |
| 12366 | |
| 12367 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12368 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12369 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12370 | |
| 12371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12372 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12373 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12374 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12375 | else |
| 12376 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12377 | fi |
| 12378 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12379 | ac_prog=ld |
| 12380 | if test "$GCC" = yes; then |
| 12381 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12382 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12383 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12384 | case $host in |
| 12385 | *-*-mingw*) |
| 12386 | # gcc leaves a trailing carriage return which upsets mingw |
| 12387 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12388 | *) |
| 12389 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12390 | esac |
| 12391 | case $ac_prog in |
| 12392 | # Accept absolute paths. |
| 12393 | [\\/]* | ?:[\\/]*) |
| 12394 | re_direlt='/[^/][^/]*/\.\./' |
| 12395 | # Canonicalize the pathname of ld |
| 12396 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12397 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12398 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12399 | done |
| 12400 | test -z "$LD" && LD="$ac_prog" |
| 12401 | ;; |
| 12402 | "") |
| 12403 | # If it fails, then pretend we aren't using GCC. |
| 12404 | ac_prog=ld |
| 12405 | ;; |
| 12406 | *) |
| 12407 | # If it is relative, then search for the first ld in PATH. |
| 12408 | with_gnu_ld=unknown |
| 12409 | ;; |
| 12410 | esac |
| 12411 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12412 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12413 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12414 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12415 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12416 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12417 | fi |
| 12418 | if test "${lt_cv_path_LD+set}" = set; then |
| 12419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12420 | else |
| 12421 | if test -z "$LD"; then |
| 12422 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12423 | for ac_dir in $PATH; do |
| 12424 | IFS="$lt_save_ifs" |
| 12425 | test -z "$ac_dir" && ac_dir=. |
| 12426 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12427 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12428 | # 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] | 12429 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12430 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12431 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12432 | *GNU* | *'with BFD'*) |
| 12433 | test "$with_gnu_ld" != no && break |
| 12434 | ;; |
| 12435 | *) |
| 12436 | test "$with_gnu_ld" != yes && break |
| 12437 | ;; |
| 12438 | esac |
| 12439 | fi |
| 12440 | done |
| 12441 | IFS="$lt_save_ifs" |
| 12442 | else |
| 12443 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12444 | fi |
| 12445 | fi |
| 12446 | |
| 12447 | LD="$lt_cv_path_LD" |
| 12448 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12449 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12450 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12451 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12452 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12453 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12454 | fi |
| 12455 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12456 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12457 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12458 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12459 | 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] | 12460 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12462 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12463 | # 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] | 12464 | case `$LD -v 2>&1 </dev/null` in |
| 12465 | *GNU* | *'with BFD'*) |
| 12466 | lt_cv_prog_gnu_ld=yes |
| 12467 | ;; |
| 12468 | *) |
| 12469 | lt_cv_prog_gnu_ld=no |
| 12470 | ;; |
| 12471 | esac |
| 12472 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12473 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12474 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12475 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12476 | |
| 12477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12478 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12479 | 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] | 12480 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12482 | else |
| 12483 | lt_cv_ld_reload_flag='-r' |
| 12484 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12485 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12486 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12487 | reload_flag=$lt_cv_ld_reload_flag |
| 12488 | case $reload_flag in |
| 12489 | "" | " "*) ;; |
| 12490 | *) reload_flag=" $reload_flag" ;; |
| 12491 | esac |
| 12492 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12493 | case $host_os in |
| 12494 | darwin*) |
| 12495 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12496 | 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] | 12497 | else |
| 12498 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12499 | fi |
| 12500 | ;; |
| 12501 | esac |
| 12502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12503 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12504 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12505 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12507 | else |
| 12508 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12509 | lt_cv_file_magic_test_file= |
| 12510 | lt_cv_deplibs_check_method='unknown' |
| 12511 | # Need to set the preceding variable on all platforms that support |
| 12512 | # interlibrary dependencies. |
| 12513 | # 'none' -- dependencies not supported. |
| 12514 | # `unknown' -- same as none, but documents that we really don't know. |
| 12515 | # 'pass_all' -- all dependencies passed with no checks. |
| 12516 | # 'test_compile' -- check by making test program. |
| 12517 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12518 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12519 | # If you have `file' or equivalent on your system and you're not sure |
| 12520 | # whether `pass_all' will *always* work, you probably want this one. |
| 12521 | |
| 12522 | case $host_os in |
| 12523 | aix4* | aix5*) |
| 12524 | lt_cv_deplibs_check_method=pass_all |
| 12525 | ;; |
| 12526 | |
| 12527 | beos*) |
| 12528 | lt_cv_deplibs_check_method=pass_all |
| 12529 | ;; |
| 12530 | |
| 12531 | bsdi[45]*) |
| 12532 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12533 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12534 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12535 | ;; |
| 12536 | |
| 12537 | cygwin*) |
| 12538 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12539 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12540 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12541 | ;; |
| 12542 | |
| 12543 | mingw* | pw32*) |
| 12544 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12545 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12546 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12547 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12548 | ;; |
| 12549 | |
| 12550 | darwin* | rhapsody*) |
| 12551 | lt_cv_deplibs_check_method=pass_all |
| 12552 | ;; |
| 12553 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12554 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12555 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12556 | case $host_cpu in |
| 12557 | i*86 ) |
| 12558 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12559 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12560 | 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] | 12561 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12562 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12563 | ;; |
| 12564 | esac |
| 12565 | else |
| 12566 | lt_cv_deplibs_check_method=pass_all |
| 12567 | fi |
| 12568 | ;; |
| 12569 | |
| 12570 | gnu*) |
| 12571 | lt_cv_deplibs_check_method=pass_all |
| 12572 | ;; |
| 12573 | |
| 12574 | hpux10.20* | hpux11*) |
| 12575 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12576 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12577 | ia64*) |
| 12578 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12579 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12580 | ;; |
| 12581 | hppa*64*) |
| 12582 | 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]' |
| 12583 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12584 | ;; |
| 12585 | *) |
| 12586 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12587 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12588 | ;; |
| 12589 | esac |
| 12590 | ;; |
| 12591 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12592 | interix3*) |
| 12593 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12594 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12595 | ;; |
| 12596 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12597 | irix5* | irix6* | nonstopux*) |
| 12598 | case $LD in |
| 12599 | *-32|*"-32 ") libmagic=32-bit;; |
| 12600 | *-n32|*"-n32 ") libmagic=N32;; |
| 12601 | *-64|*"-64 ") libmagic=64-bit;; |
| 12602 | *) libmagic=never-match;; |
| 12603 | esac |
| 12604 | lt_cv_deplibs_check_method=pass_all |
| 12605 | ;; |
| 12606 | |
| 12607 | # This must be Linux ELF. |
| 12608 | linux*) |
| 12609 | lt_cv_deplibs_check_method=pass_all |
| 12610 | ;; |
| 12611 | |
| 12612 | netbsd*) |
| 12613 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12614 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12615 | else |
| 12616 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12617 | fi |
| 12618 | ;; |
| 12619 | |
| 12620 | newos6*) |
| 12621 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12622 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12623 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12624 | ;; |
| 12625 | |
| 12626 | nto-qnx*) |
| 12627 | lt_cv_deplibs_check_method=unknown |
| 12628 | ;; |
| 12629 | |
| 12630 | openbsd*) |
| 12631 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12632 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12633 | else |
| 12634 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12635 | fi |
| 12636 | ;; |
| 12637 | |
| 12638 | osf3* | osf4* | osf5*) |
| 12639 | lt_cv_deplibs_check_method=pass_all |
| 12640 | ;; |
| 12641 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12642 | solaris*) |
| 12643 | lt_cv_deplibs_check_method=pass_all |
| 12644 | ;; |
| 12645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12646 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12647 | case $host_vendor in |
| 12648 | motorola) |
| 12649 | 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]' |
| 12650 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12651 | ;; |
| 12652 | ncr) |
| 12653 | lt_cv_deplibs_check_method=pass_all |
| 12654 | ;; |
| 12655 | sequent) |
| 12656 | lt_cv_file_magic_cmd='/bin/file' |
| 12657 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12658 | ;; |
| 12659 | sni) |
| 12660 | lt_cv_file_magic_cmd='/bin/file' |
| 12661 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12662 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12663 | ;; |
| 12664 | siemens) |
| 12665 | lt_cv_deplibs_check_method=pass_all |
| 12666 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12667 | pc) |
| 12668 | lt_cv_deplibs_check_method=pass_all |
| 12669 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12670 | esac |
| 12671 | ;; |
| 12672 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12673 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12674 | lt_cv_deplibs_check_method=pass_all |
| 12675 | ;; |
| 12676 | esac |
| 12677 | |
| 12678 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12679 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12680 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12681 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12682 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12683 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12684 | |
| 12685 | |
| 12686 | |
| 12687 | # If no C compiler was specified, use CC. |
| 12688 | LTCC=${LTCC-"$CC"} |
| 12689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12690 | # If no C compiler flags were specified, use CFLAGS. |
| 12691 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12692 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12693 | # Allow CC to be a program name with arguments. |
| 12694 | compiler=$CC |
| 12695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12696 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12697 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12698 | enableval=$enable_libtool_lock; |
| 12699 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12700 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12701 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12702 | |
| 12703 | # Some flags need to be propagated to the compiler or linker for good |
| 12704 | # libtool support. |
| 12705 | case $host in |
| 12706 | ia64-*-hpux*) |
| 12707 | # Find out which ABI we are using. |
| 12708 | echo 'int i;' > conftest.$ac_ext |
| 12709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12710 | (eval $ac_compile) 2>&5 |
| 12711 | ac_status=$? |
| 12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12713 | (exit $ac_status); }; then |
| 12714 | case `/usr/bin/file conftest.$ac_objext` in |
| 12715 | *ELF-32*) |
| 12716 | HPUX_IA64_MODE="32" |
| 12717 | ;; |
| 12718 | *ELF-64*) |
| 12719 | HPUX_IA64_MODE="64" |
| 12720 | ;; |
| 12721 | esac |
| 12722 | fi |
| 12723 | rm -rf conftest* |
| 12724 | ;; |
| 12725 | *-*-irix6*) |
| 12726 | # Find out which ABI we are using. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12727 | echo '#line 12727 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12729 | (eval $ac_compile) 2>&5 |
| 12730 | ac_status=$? |
| 12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12732 | (exit $ac_status); }; then |
| 12733 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12734 | case `/usr/bin/file conftest.$ac_objext` in |
| 12735 | *32-bit*) |
| 12736 | LD="${LD-ld} -melf32bsmip" |
| 12737 | ;; |
| 12738 | *N32*) |
| 12739 | LD="${LD-ld} -melf32bmipn32" |
| 12740 | ;; |
| 12741 | *64-bit*) |
| 12742 | LD="${LD-ld} -melf64bmip" |
| 12743 | ;; |
| 12744 | esac |
| 12745 | else |
| 12746 | case `/usr/bin/file conftest.$ac_objext` in |
| 12747 | *32-bit*) |
| 12748 | LD="${LD-ld} -32" |
| 12749 | ;; |
| 12750 | *N32*) |
| 12751 | LD="${LD-ld} -n32" |
| 12752 | ;; |
| 12753 | *64-bit*) |
| 12754 | LD="${LD-ld} -64" |
| 12755 | ;; |
| 12756 | esac |
| 12757 | fi |
| 12758 | fi |
| 12759 | rm -rf conftest* |
| 12760 | ;; |
| 12761 | |
| 12762 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 12763 | # Find out which ABI we are using. |
| 12764 | echo 'int i;' > conftest.$ac_ext |
| 12765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12766 | (eval $ac_compile) 2>&5 |
| 12767 | ac_status=$? |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12770 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12771 | *32-bit*) |
| 12772 | case $host in |
| 12773 | x86_64-*linux*) |
| 12774 | LD="${LD-ld} -m elf_i386" |
| 12775 | ;; |
| 12776 | ppc64-*linux*|powerpc64-*linux*) |
| 12777 | LD="${LD-ld} -m elf32ppclinux" |
| 12778 | ;; |
| 12779 | s390x-*linux*) |
| 12780 | LD="${LD-ld} -m elf_s390" |
| 12781 | ;; |
| 12782 | sparc64-*linux*) |
| 12783 | LD="${LD-ld} -m elf32_sparc" |
| 12784 | ;; |
| 12785 | esac |
| 12786 | ;; |
| 12787 | *64-bit*) |
| 12788 | case $host in |
| 12789 | x86_64-*linux*) |
| 12790 | LD="${LD-ld} -m elf_x86_64" |
| 12791 | ;; |
| 12792 | ppc*-*linux*|powerpc*-*linux*) |
| 12793 | LD="${LD-ld} -m elf64ppc" |
| 12794 | ;; |
| 12795 | s390*-*linux*) |
| 12796 | LD="${LD-ld} -m elf64_s390" |
| 12797 | ;; |
| 12798 | sparc*-*linux*) |
| 12799 | LD="${LD-ld} -m elf64_sparc" |
| 12800 | ;; |
| 12801 | esac |
| 12802 | ;; |
| 12803 | esac |
| 12804 | fi |
| 12805 | rm -rf conftest* |
| 12806 | ;; |
| 12807 | |
| 12808 | *-*-sco3.2v5*) |
| 12809 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12810 | SAVE_CFLAGS="$CFLAGS" |
| 12811 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12812 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 12813 | 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] | 12814 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 12815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12816 | else |
| 12817 | ac_ext=c |
| 12818 | ac_cpp='$CPP $CPPFLAGS' |
| 12819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12822 | |
| 12823 | cat >conftest.$ac_ext <<_ACEOF |
| 12824 | /* confdefs.h. */ |
| 12825 | _ACEOF |
| 12826 | cat confdefs.h >>conftest.$ac_ext |
| 12827 | cat >>conftest.$ac_ext <<_ACEOF |
| 12828 | /* end confdefs.h. */ |
| 12829 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12830 | int |
| 12831 | main () |
| 12832 | { |
| 12833 | |
| 12834 | ; |
| 12835 | return 0; |
| 12836 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12837 | _ACEOF |
| 12838 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12839 | if { (ac_try="$ac_link" |
| 12840 | case "(($ac_try" in |
| 12841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12842 | *) ac_try_echo=$ac_try;; |
| 12843 | esac |
| 12844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12845 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12846 | ac_status=$? |
| 12847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12848 | rm -f conftest.er1 |
| 12849 | cat conftest.err >&5 |
| 12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12851 | (exit $ac_status); } && |
| 12852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12853 | { (case "(($ac_try" in |
| 12854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12855 | *) ac_try_echo=$ac_try;; |
| 12856 | esac |
| 12857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12858 | (eval "$ac_try") 2>&5 |
| 12859 | ac_status=$? |
| 12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12861 | (exit $ac_status); }; } && |
| 12862 | { ac_try='test -s conftest$ac_exeext' |
| 12863 | { (case "(($ac_try" in |
| 12864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12865 | *) ac_try_echo=$ac_try;; |
| 12866 | esac |
| 12867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12868 | (eval "$ac_try") 2>&5 |
| 12869 | ac_status=$? |
| 12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12871 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12872 | lt_cv_cc_needs_belf=yes |
| 12873 | else |
| 12874 | echo "$as_me: failed program was:" >&5 |
| 12875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12876 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12877 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12878 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12879 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12880 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12881 | conftest$ac_exeext conftest.$ac_ext |
| 12882 | ac_ext=c |
| 12883 | ac_cpp='$CPP $CPPFLAGS' |
| 12884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12887 | |
| 12888 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12889 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 12890 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12891 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12892 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12893 | CFLAGS="$SAVE_CFLAGS" |
| 12894 | fi |
| 12895 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12896 | sparc*-*solaris*) |
| 12897 | # Find out which ABI we are using. |
| 12898 | echo 'int i;' > conftest.$ac_ext |
| 12899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12900 | (eval $ac_compile) 2>&5 |
| 12901 | ac_status=$? |
| 12902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12903 | (exit $ac_status); }; then |
| 12904 | case `/usr/bin/file conftest.o` in |
| 12905 | *64-bit*) |
| 12906 | case $lt_cv_prog_gnu_ld in |
| 12907 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 12908 | *) LD="${LD-ld} -64" ;; |
| 12909 | esac |
| 12910 | ;; |
| 12911 | esac |
| 12912 | fi |
| 12913 | rm -rf conftest* |
| 12914 | ;; |
| 12915 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12916 | |
| 12917 | esac |
| 12918 | |
| 12919 | need_locks="$enable_libtool_lock" |
| 12920 | |
| 12921 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12922 | |
| 12923 | |
| 12924 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12925 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12926 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12927 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12928 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12929 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12930 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12931 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12932 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12933 | 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] | 12934 | if test -z "$CXXCPP"; then |
| 12935 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12937 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12938 | # Double quotes because CXXCPP needs to be expanded |
| 12939 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12940 | do |
| 12941 | ac_preproc_ok=false |
| 12942 | for ac_cxx_preproc_warn_flag in '' yes |
| 12943 | do |
| 12944 | # Use a header file that comes with gcc, so configuring glibc |
| 12945 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12946 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12947 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12948 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12949 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12950 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12951 | /* confdefs.h. */ |
| 12952 | _ACEOF |
| 12953 | cat confdefs.h >>conftest.$ac_ext |
| 12954 | cat >>conftest.$ac_ext <<_ACEOF |
| 12955 | /* end confdefs.h. */ |
| 12956 | #ifdef __STDC__ |
| 12957 | # include <limits.h> |
| 12958 | #else |
| 12959 | # include <assert.h> |
| 12960 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12961 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12962 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12963 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12964 | case "(($ac_try" in |
| 12965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12966 | *) ac_try_echo=$ac_try;; |
| 12967 | esac |
| 12968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12969 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12970 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12971 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12972 | rm -f conftest.er1 |
| 12973 | cat conftest.err >&5 |
| 12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12975 | (exit $ac_status); } >/dev/null; then |
| 12976 | if test -s conftest.err; then |
| 12977 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 12978 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 12979 | else |
| 12980 | ac_cpp_err= |
| 12981 | fi |
| 12982 | else |
| 12983 | ac_cpp_err=yes |
| 12984 | fi |
| 12985 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12986 | : |
| 12987 | else |
| 12988 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12990 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12991 | # Broken: fails on valid input. |
| 12992 | continue |
| 12993 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12994 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12995 | rm -f conftest.err conftest.$ac_ext |
| 12996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12997 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12998 | # can be detected and how. |
| 12999 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13000 | /* confdefs.h. */ |
| 13001 | _ACEOF |
| 13002 | cat confdefs.h >>conftest.$ac_ext |
| 13003 | cat >>conftest.$ac_ext <<_ACEOF |
| 13004 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13005 | #include <ac_nonexistent.h> |
| 13006 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13007 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13008 | case "(($ac_try" in |
| 13009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13010 | *) ac_try_echo=$ac_try;; |
| 13011 | esac |
| 13012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13013 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13014 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13015 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13016 | rm -f conftest.er1 |
| 13017 | cat conftest.err >&5 |
| 13018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13019 | (exit $ac_status); } >/dev/null; then |
| 13020 | if test -s conftest.err; then |
| 13021 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13022 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13023 | else |
| 13024 | ac_cpp_err= |
| 13025 | fi |
| 13026 | else |
| 13027 | ac_cpp_err=yes |
| 13028 | fi |
| 13029 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13030 | # Broken: success on invalid input. |
| 13031 | continue |
| 13032 | else |
| 13033 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13035 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13036 | # Passes both tests. |
| 13037 | ac_preproc_ok=: |
| 13038 | break |
| 13039 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13040 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13041 | rm -f conftest.err conftest.$ac_ext |
| 13042 | |
| 13043 | done |
| 13044 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13045 | rm -f conftest.err conftest.$ac_ext |
| 13046 | if $ac_preproc_ok; then |
| 13047 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13048 | fi |
| 13049 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13050 | done |
| 13051 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13052 | |
| 13053 | fi |
| 13054 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13055 | else |
| 13056 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13057 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13058 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13059 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13060 | ac_preproc_ok=false |
| 13061 | for ac_cxx_preproc_warn_flag in '' yes |
| 13062 | do |
| 13063 | # Use a header file that comes with gcc, so configuring glibc |
| 13064 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13065 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13066 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13067 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13068 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13069 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13070 | /* confdefs.h. */ |
| 13071 | _ACEOF |
| 13072 | cat confdefs.h >>conftest.$ac_ext |
| 13073 | cat >>conftest.$ac_ext <<_ACEOF |
| 13074 | /* end confdefs.h. */ |
| 13075 | #ifdef __STDC__ |
| 13076 | # include <limits.h> |
| 13077 | #else |
| 13078 | # include <assert.h> |
| 13079 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13080 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13081 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13082 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13083 | case "(($ac_try" in |
| 13084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13085 | *) ac_try_echo=$ac_try;; |
| 13086 | esac |
| 13087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13088 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13089 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13090 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13091 | rm -f conftest.er1 |
| 13092 | cat conftest.err >&5 |
| 13093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13094 | (exit $ac_status); } >/dev/null; then |
| 13095 | if test -s conftest.err; then |
| 13096 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13097 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13098 | else |
| 13099 | ac_cpp_err= |
| 13100 | fi |
| 13101 | else |
| 13102 | ac_cpp_err=yes |
| 13103 | fi |
| 13104 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13105 | : |
| 13106 | else |
| 13107 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13109 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13110 | # Broken: fails on valid input. |
| 13111 | continue |
| 13112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13113 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13114 | rm -f conftest.err conftest.$ac_ext |
| 13115 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13116 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13117 | # can be detected and how. |
| 13118 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13119 | /* confdefs.h. */ |
| 13120 | _ACEOF |
| 13121 | cat confdefs.h >>conftest.$ac_ext |
| 13122 | cat >>conftest.$ac_ext <<_ACEOF |
| 13123 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13124 | #include <ac_nonexistent.h> |
| 13125 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13126 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13127 | case "(($ac_try" in |
| 13128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13129 | *) ac_try_echo=$ac_try;; |
| 13130 | esac |
| 13131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13132 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13133 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13134 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13135 | rm -f conftest.er1 |
| 13136 | cat conftest.err >&5 |
| 13137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13138 | (exit $ac_status); } >/dev/null; then |
| 13139 | if test -s conftest.err; then |
| 13140 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13141 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13142 | else |
| 13143 | ac_cpp_err= |
| 13144 | fi |
| 13145 | else |
| 13146 | ac_cpp_err=yes |
| 13147 | fi |
| 13148 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13149 | # Broken: success on invalid input. |
| 13150 | continue |
| 13151 | else |
| 13152 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13154 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13155 | # Passes both tests. |
| 13156 | ac_preproc_ok=: |
| 13157 | break |
| 13158 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13159 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13160 | rm -f conftest.err conftest.$ac_ext |
| 13161 | |
| 13162 | done |
| 13163 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13164 | rm -f conftest.err conftest.$ac_ext |
| 13165 | if $ac_preproc_ok; then |
| 13166 | : |
| 13167 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13168 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13169 | See \`config.log' for more details." >&5 |
| 13170 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13171 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13172 | { (exit 1); exit 1; }; } |
| 13173 | fi |
| 13174 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13175 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13176 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13177 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13178 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13179 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13180 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13181 | fi |
| 13182 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13183 | |
| 13184 | ac_ext=f |
| 13185 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13186 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13187 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13188 | if test -n "$ac_tool_prefix"; then |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13189 | 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] | 13190 | do |
| 13191 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13192 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13195 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13197 | else |
| 13198 | if test -n "$F77"; then |
| 13199 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13200 | else |
| 13201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13202 | for as_dir in $PATH |
| 13203 | do |
| 13204 | IFS=$as_save_IFS |
| 13205 | test -z "$as_dir" && as_dir=. |
| 13206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13207 | 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] | 13208 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13210 | break 2 |
| 13211 | fi |
| 13212 | done |
| 13213 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13214 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13215 | |
| 13216 | fi |
| 13217 | fi |
| 13218 | F77=$ac_cv_prog_F77 |
| 13219 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13220 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13221 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13222 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13223 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13224 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13225 | fi |
| 13226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13227 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13228 | test -n "$F77" && break |
| 13229 | done |
| 13230 | fi |
| 13231 | if test -z "$F77"; then |
| 13232 | ac_ct_F77=$F77 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13233 | 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] | 13234 | do |
| 13235 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13236 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13237 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13239 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13241 | else |
| 13242 | if test -n "$ac_ct_F77"; then |
| 13243 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13244 | else |
| 13245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13246 | for as_dir in $PATH |
| 13247 | do |
| 13248 | IFS=$as_save_IFS |
| 13249 | test -z "$as_dir" && as_dir=. |
| 13250 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13251 | 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] | 13252 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13254 | break 2 |
| 13255 | fi |
| 13256 | done |
| 13257 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13258 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13259 | |
| 13260 | fi |
| 13261 | fi |
| 13262 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13263 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13264 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13265 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13266 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13268 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13269 | fi |
| 13270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13271 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13272 | test -n "$ac_ct_F77" && break |
| 13273 | done |
| 13274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13275 | if test "x$ac_ct_F77" = x; then |
| 13276 | F77="" |
| 13277 | else |
| 13278 | case $cross_compiling:$ac_tool_warned in |
| 13279 | yes:) |
| 13280 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13281 | whose name does not start with the host triplet. If you think this |
| 13282 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13283 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13284 | whose name does not start with the host triplet. If you think this |
| 13285 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13286 | ac_tool_warned=yes ;; |
| 13287 | esac |
| 13288 | F77=$ac_ct_F77 |
| 13289 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13290 | fi |
| 13291 | |
| 13292 | |
| 13293 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13294 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13295 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13296 | { (ac_try="$ac_compiler --version >&5" |
| 13297 | case "(($ac_try" in |
| 13298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13299 | *) ac_try_echo=$ac_try;; |
| 13300 | esac |
| 13301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13302 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13303 | ac_status=$? |
| 13304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13305 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13306 | { (ac_try="$ac_compiler -v >&5" |
| 13307 | case "(($ac_try" in |
| 13308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13309 | *) ac_try_echo=$ac_try;; |
| 13310 | esac |
| 13311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13312 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13313 | ac_status=$? |
| 13314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13315 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13316 | { (ac_try="$ac_compiler -V >&5" |
| 13317 | case "(($ac_try" in |
| 13318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13319 | *) ac_try_echo=$ac_try;; |
| 13320 | esac |
| 13321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13322 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13323 | ac_status=$? |
| 13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13325 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13326 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13327 | |
| 13328 | # 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] | 13329 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13330 | ac_save_ext=$ac_ext |
| 13331 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13332 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13333 | 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] | 13334 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13336 | else |
| 13337 | cat >conftest.$ac_ext <<_ACEOF |
| 13338 | program main |
| 13339 | #ifndef __GNUC__ |
| 13340 | choke me |
| 13341 | #endif |
| 13342 | |
| 13343 | end |
| 13344 | _ACEOF |
| 13345 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13346 | if { (ac_try="$ac_compile" |
| 13347 | case "(($ac_try" in |
| 13348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13349 | *) ac_try_echo=$ac_try;; |
| 13350 | esac |
| 13351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13352 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13353 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13355 | rm -f conftest.er1 |
| 13356 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13358 | (exit $ac_status); } && |
| 13359 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13360 | { (case "(($ac_try" in |
| 13361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13362 | *) ac_try_echo=$ac_try;; |
| 13363 | esac |
| 13364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13365 | (eval "$ac_try") 2>&5 |
| 13366 | ac_status=$? |
| 13367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13368 | (exit $ac_status); }; } && |
| 13369 | { ac_try='test -s conftest.$ac_objext' |
| 13370 | { (case "(($ac_try" in |
| 13371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13372 | *) ac_try_echo=$ac_try;; |
| 13373 | esac |
| 13374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13375 | (eval "$ac_try") 2>&5 |
| 13376 | ac_status=$? |
| 13377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13378 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13379 | ac_compiler_gnu=yes |
| 13380 | else |
| 13381 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13384 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13386 | |
| 13387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13388 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13389 | |
| 13390 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13391 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13392 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13393 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13394 | ac_test_FFLAGS=${FFLAGS+set} |
| 13395 | ac_save_FFLAGS=$FFLAGS |
| 13396 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13397 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13398 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13399 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13401 | else |
| 13402 | FFLAGS=-g |
| 13403 | cat >conftest.$ac_ext <<_ACEOF |
| 13404 | program main |
| 13405 | |
| 13406 | end |
| 13407 | _ACEOF |
| 13408 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13409 | if { (ac_try="$ac_compile" |
| 13410 | case "(($ac_try" in |
| 13411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13412 | *) ac_try_echo=$ac_try;; |
| 13413 | esac |
| 13414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13415 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13416 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13418 | rm -f conftest.er1 |
| 13419 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13421 | (exit $ac_status); } && |
| 13422 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13423 | { (case "(($ac_try" in |
| 13424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13425 | *) ac_try_echo=$ac_try;; |
| 13426 | esac |
| 13427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13428 | (eval "$ac_try") 2>&5 |
| 13429 | ac_status=$? |
| 13430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13431 | (exit $ac_status); }; } && |
| 13432 | { ac_try='test -s conftest.$ac_objext' |
| 13433 | { (case "(($ac_try" in |
| 13434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13435 | *) ac_try_echo=$ac_try;; |
| 13436 | esac |
| 13437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13438 | (eval "$ac_try") 2>&5 |
| 13439 | ac_status=$? |
| 13440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13441 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13442 | ac_cv_prog_f77_g=yes |
| 13443 | else |
| 13444 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13446 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13447 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13448 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13449 | |
| 13450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13451 | |
| 13452 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13453 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13454 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13455 | if test "$ac_test_FFLAGS" = set; then |
| 13456 | FFLAGS=$ac_save_FFLAGS |
| 13457 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13458 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13459 | FFLAGS="-g -O2" |
| 13460 | else |
| 13461 | FFLAGS="-g" |
| 13462 | fi |
| 13463 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13464 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13465 | FFLAGS="-O2" |
| 13466 | else |
| 13467 | FFLAGS= |
| 13468 | fi |
| 13469 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13470 | |
| 13471 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13472 | ac_ext=c |
| 13473 | ac_cpp='$CPP $CPPFLAGS' |
| 13474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13477 | |
| 13478 | |
| 13479 | |
| 13480 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13481 | |
| 13482 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13483 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13484 | 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] | 13485 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13487 | else |
| 13488 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13489 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13490 | |
| 13491 | case $build_os in |
| 13492 | msdosdjgpp*) |
| 13493 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13494 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13495 | # during glob expansion). Even if it were fixed, the result of this |
| 13496 | # check would be larger than it should be. |
| 13497 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13498 | ;; |
| 13499 | |
| 13500 | gnu*) |
| 13501 | # Under GNU Hurd, this test is not required because there is |
| 13502 | # no limit to the length of command line arguments. |
| 13503 | # Libtool will interpret -1 as no limit whatsoever |
| 13504 | lt_cv_sys_max_cmd_len=-1; |
| 13505 | ;; |
| 13506 | |
| 13507 | cygwin* | mingw*) |
| 13508 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13509 | # about 5 minutes as the teststring grows exponentially. |
| 13510 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13511 | # you end up with a "frozen" computer, even though with patience |
| 13512 | # the test eventually succeeds (with a max line length of 256k). |
| 13513 | # Instead, let's just punt: use the minimum linelength reported by |
| 13514 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13515 | lt_cv_sys_max_cmd_len=8192; |
| 13516 | ;; |
| 13517 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13518 | amigaos*) |
| 13519 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13520 | # So we just punt and use a minimum line length of 8192. |
| 13521 | lt_cv_sys_max_cmd_len=8192; |
| 13522 | ;; |
| 13523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13524 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13525 | # This has been around since 386BSD, at least. Likely further. |
| 13526 | if test -x /sbin/sysctl; then |
| 13527 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13528 | elif test -x /usr/sbin/sysctl; then |
| 13529 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13530 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13531 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13532 | fi |
| 13533 | # And add a safety zone |
| 13534 | 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] | 13535 | 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] | 13536 | ;; |
| 13537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13538 | interix*) |
| 13539 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13540 | lt_cv_sys_max_cmd_len=196608 |
| 13541 | ;; |
| 13542 | |
| 13543 | osf*) |
| 13544 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13545 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13546 | # nice to cause kernel panics so lets avoid the loop below. |
| 13547 | # First set a reasonable default. |
| 13548 | lt_cv_sys_max_cmd_len=16384 |
| 13549 | # |
| 13550 | if test -x /sbin/sysconfig; then |
| 13551 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13552 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13553 | esac |
| 13554 | fi |
| 13555 | ;; |
| 13556 | sco3.2v5*) |
| 13557 | lt_cv_sys_max_cmd_len=102400 |
| 13558 | ;; |
| 13559 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13560 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13561 | if test -n "$kargmax"; then |
| 13562 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13563 | else |
| 13564 | lt_cv_sys_max_cmd_len=32768 |
| 13565 | fi |
| 13566 | ;; |
| 13567 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13568 | # If test is not a shell built-in, we'll probably end up computing a |
| 13569 | # maximum length that is only half of the actual maximum length, but |
| 13570 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13571 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13572 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13573 | = "XX$teststring") >/dev/null 2>&1 && |
| 13574 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13575 | lt_cv_sys_max_cmd_len=$new_result && |
| 13576 | test $i != 17 # 1/2 MB should be enough |
| 13577 | do |
| 13578 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13579 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13580 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13581 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13582 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13583 | # amounts of additional arguments before passing them to the linker. |
| 13584 | # It appears as though 1/2 is a usable value. |
| 13585 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13586 | ;; |
| 13587 | esac |
| 13588 | |
| 13589 | fi |
| 13590 | |
| 13591 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13592 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13593 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13594 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13595 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13596 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13597 | fi |
| 13598 | |
| 13599 | |
| 13600 | |
| 13601 | |
| 13602 | # 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] | 13603 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13604 | 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] | 13605 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13607 | else |
| 13608 | |
| 13609 | # These are sane defaults that work on at least a few old systems. |
| 13610 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13611 | |
| 13612 | # Character class describing NM global symbol codes. |
| 13613 | symcode='[BCDEGRST]' |
| 13614 | |
| 13615 | # Regexp to match symbols that can be accessed directly from C. |
| 13616 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13617 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13618 | # Transform an extracted symbol line into a proper C declaration |
| 13619 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13620 | |
| 13621 | # Transform an extracted symbol line into symbol name and symbol address |
| 13622 | 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'" |
| 13623 | |
| 13624 | # Define system-specific variables. |
| 13625 | case $host_os in |
| 13626 | aix*) |
| 13627 | symcode='[BCDT]' |
| 13628 | ;; |
| 13629 | cygwin* | mingw* | pw32*) |
| 13630 | symcode='[ABCDGISTW]' |
| 13631 | ;; |
| 13632 | hpux*) # Its linker distinguishes data from code symbols |
| 13633 | if test "$host_cpu" = ia64; then |
| 13634 | symcode='[ABCDEGRST]' |
| 13635 | fi |
| 13636 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13637 | 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'" |
| 13638 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13639 | linux*) |
| 13640 | if test "$host_cpu" = ia64; then |
| 13641 | symcode='[ABCDGIRSTW]' |
| 13642 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13643 | 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'" |
| 13644 | fi |
| 13645 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13646 | irix* | nonstopux*) |
| 13647 | symcode='[BCDEGRST]' |
| 13648 | ;; |
| 13649 | osf*) |
| 13650 | symcode='[BCDEGQRST]' |
| 13651 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13652 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13653 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13654 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13655 | sco3.2v5*) |
| 13656 | symcode='[DT]' |
| 13657 | ;; |
| 13658 | sysv4.2uw2*) |
| 13659 | symcode='[DT]' |
| 13660 | ;; |
| 13661 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13662 | symcode='[ABDT]' |
| 13663 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13664 | sysv4) |
| 13665 | symcode='[DFNSTU]' |
| 13666 | ;; |
| 13667 | esac |
| 13668 | |
| 13669 | # Handle CRLF in mingw tool chain |
| 13670 | opt_cr= |
| 13671 | case $build_os in |
| 13672 | mingw*) |
| 13673 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13674 | ;; |
| 13675 | esac |
| 13676 | |
| 13677 | # If we're using GNU nm, then use its standard symbol codes. |
| 13678 | case `$NM -V 2>&1` in |
| 13679 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13680 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13681 | esac |
| 13682 | |
| 13683 | # Try without a prefix undercore, then with it. |
| 13684 | for ac_symprfx in "" "_"; do |
| 13685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13686 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13687 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13688 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13689 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13690 | 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] | 13691 | |
| 13692 | # Check to see that the pipe works correctly. |
| 13693 | pipe_works=no |
| 13694 | |
| 13695 | rm -f conftest* |
| 13696 | cat > conftest.$ac_ext <<EOF |
| 13697 | #ifdef __cplusplus |
| 13698 | extern "C" { |
| 13699 | #endif |
| 13700 | char nm_test_var; |
| 13701 | void nm_test_func(){} |
| 13702 | #ifdef __cplusplus |
| 13703 | } |
| 13704 | #endif |
| 13705 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13706 | EOF |
| 13707 | |
| 13708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13709 | (eval $ac_compile) 2>&5 |
| 13710 | ac_status=$? |
| 13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13712 | (exit $ac_status); }; then |
| 13713 | # Now try to grab the symbols. |
| 13714 | nlist=conftest.nm |
| 13715 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13716 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13717 | ac_status=$? |
| 13718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13719 | (exit $ac_status); } && test -s "$nlist"; then |
| 13720 | # Try sorting and uniquifying the output. |
| 13721 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13722 | mv -f "$nlist"T "$nlist" |
| 13723 | else |
| 13724 | rm -f "$nlist"T |
| 13725 | fi |
| 13726 | |
| 13727 | # Make sure that we snagged all the symbols we need. |
| 13728 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13729 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13730 | cat <<EOF > conftest.$ac_ext |
| 13731 | #ifdef __cplusplus |
| 13732 | extern "C" { |
| 13733 | #endif |
| 13734 | |
| 13735 | EOF |
| 13736 | # Now generate the symbol file. |
| 13737 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13738 | |
| 13739 | cat <<EOF >> conftest.$ac_ext |
| 13740 | #if defined (__STDC__) && __STDC__ |
| 13741 | # define lt_ptr_t void * |
| 13742 | #else |
| 13743 | # define lt_ptr_t char * |
| 13744 | # define const |
| 13745 | #endif |
| 13746 | |
| 13747 | /* The mapping between symbol names and symbols. */ |
| 13748 | const struct { |
| 13749 | const char *name; |
| 13750 | lt_ptr_t address; |
| 13751 | } |
| 13752 | lt_preloaded_symbols[] = |
| 13753 | { |
| 13754 | EOF |
| 13755 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 13756 | cat <<\EOF >> conftest.$ac_ext |
| 13757 | {0, (lt_ptr_t) 0} |
| 13758 | }; |
| 13759 | |
| 13760 | #ifdef __cplusplus |
| 13761 | } |
| 13762 | #endif |
| 13763 | EOF |
| 13764 | # Now try linking the two files. |
| 13765 | mv conftest.$ac_objext conftstm.$ac_objext |
| 13766 | lt_save_LIBS="$LIBS" |
| 13767 | lt_save_CFLAGS="$CFLAGS" |
| 13768 | LIBS="conftstm.$ac_objext" |
| 13769 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 13770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13771 | (eval $ac_link) 2>&5 |
| 13772 | ac_status=$? |
| 13773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13774 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 13775 | pipe_works=yes |
| 13776 | fi |
| 13777 | LIBS="$lt_save_LIBS" |
| 13778 | CFLAGS="$lt_save_CFLAGS" |
| 13779 | else |
| 13780 | echo "cannot find nm_test_func in $nlist" >&5 |
| 13781 | fi |
| 13782 | else |
| 13783 | echo "cannot find nm_test_var in $nlist" >&5 |
| 13784 | fi |
| 13785 | else |
| 13786 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 13787 | fi |
| 13788 | else |
| 13789 | echo "$progname: failed program was:" >&5 |
| 13790 | cat conftest.$ac_ext >&5 |
| 13791 | fi |
| 13792 | rm -f conftest* conftst* |
| 13793 | |
| 13794 | # Do not use the global_symbol_pipe unless it works. |
| 13795 | if test "$pipe_works" = yes; then |
| 13796 | break |
| 13797 | else |
| 13798 | lt_cv_sys_global_symbol_pipe= |
| 13799 | fi |
| 13800 | done |
| 13801 | |
| 13802 | fi |
| 13803 | |
| 13804 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 13805 | lt_cv_sys_global_symbol_to_cdecl= |
| 13806 | fi |
| 13807 | 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] | 13808 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 13809 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13810 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13811 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13812 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13813 | fi |
| 13814 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13815 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 13816 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13817 | if test "${lt_cv_objdir+set}" = set; then |
| 13818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13819 | else |
| 13820 | rm -f .libs 2>/dev/null |
| 13821 | mkdir .libs 2>/dev/null |
| 13822 | if test -d .libs; then |
| 13823 | lt_cv_objdir=.libs |
| 13824 | else |
| 13825 | # MS-DOS does not allow filenames that begin with a dot. |
| 13826 | lt_cv_objdir=_libs |
| 13827 | fi |
| 13828 | rmdir .libs 2>/dev/null |
| 13829 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13830 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 13831 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13832 | objdir=$lt_cv_objdir |
| 13833 | |
| 13834 | |
| 13835 | |
| 13836 | |
| 13837 | |
| 13838 | case $host_os in |
| 13839 | aix3*) |
| 13840 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13841 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13842 | # vanish in a puff of smoke. |
| 13843 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13844 | COLLECT_NAMES= |
| 13845 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13846 | fi |
| 13847 | ;; |
| 13848 | esac |
| 13849 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13850 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13851 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13852 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13853 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 13854 | |
| 13855 | # Same as above, but do not quote variable references. |
| 13856 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 13857 | |
| 13858 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13859 | # double_quote_subst'ed string. |
| 13860 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13861 | |
| 13862 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13863 | no_glob_subst='s/\*/\\\*/g' |
| 13864 | |
| 13865 | # Constants: |
| 13866 | rm="rm -f" |
| 13867 | |
| 13868 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 13869 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13870 | can_build_shared=yes |
| 13871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13872 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13873 | # which needs '.lib'). |
| 13874 | libext=a |
| 13875 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13876 | ofile="$default_ofile" |
| 13877 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13878 | |
| 13879 | if test -n "$ac_tool_prefix"; then |
| 13880 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 13881 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13882 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13884 | if test "${ac_cv_prog_AR+set}" = set; then |
| 13885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13886 | else |
| 13887 | if test -n "$AR"; then |
| 13888 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 13889 | else |
| 13890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13891 | for as_dir in $PATH |
| 13892 | do |
| 13893 | IFS=$as_save_IFS |
| 13894 | test -z "$as_dir" && as_dir=. |
| 13895 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13896 | 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] | 13897 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 13898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13899 | break 2 |
| 13900 | fi |
| 13901 | done |
| 13902 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13903 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13904 | |
| 13905 | fi |
| 13906 | fi |
| 13907 | AR=$ac_cv_prog_AR |
| 13908 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13909 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13910 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13911 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13913 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13914 | fi |
| 13915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13916 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13917 | fi |
| 13918 | if test -z "$ac_cv_prog_AR"; then |
| 13919 | ac_ct_AR=$AR |
| 13920 | # Extract the first word of "ar", so it can be a program name with args. |
| 13921 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13922 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13924 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 13925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13926 | else |
| 13927 | if test -n "$ac_ct_AR"; then |
| 13928 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 13929 | else |
| 13930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13931 | for as_dir in $PATH |
| 13932 | do |
| 13933 | IFS=$as_save_IFS |
| 13934 | test -z "$as_dir" && as_dir=. |
| 13935 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13936 | 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] | 13937 | ac_cv_prog_ac_ct_AR="ar" |
| 13938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13939 | break 2 |
| 13940 | fi |
| 13941 | done |
| 13942 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13943 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13944 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13945 | fi |
| 13946 | fi |
| 13947 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 13948 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13949 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 13950 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13951 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13952 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13953 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13954 | fi |
| 13955 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13956 | if test "x$ac_ct_AR" = x; then |
| 13957 | AR="false" |
| 13958 | else |
| 13959 | case $cross_compiling:$ac_tool_warned in |
| 13960 | yes:) |
| 13961 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13962 | whose name does not start with the host triplet. If you think this |
| 13963 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13964 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13965 | whose name does not start with the host triplet. If you think this |
| 13966 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13967 | ac_tool_warned=yes ;; |
| 13968 | esac |
| 13969 | AR=$ac_ct_AR |
| 13970 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13971 | else |
| 13972 | AR="$ac_cv_prog_AR" |
| 13973 | fi |
| 13974 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13975 | if test -n "$ac_tool_prefix"; then |
| 13976 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 13977 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13978 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13980 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 13981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13982 | else |
| 13983 | if test -n "$RANLIB"; then |
| 13984 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 13985 | else |
| 13986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13987 | for as_dir in $PATH |
| 13988 | do |
| 13989 | IFS=$as_save_IFS |
| 13990 | test -z "$as_dir" && as_dir=. |
| 13991 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13992 | 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] | 13993 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 13994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13995 | break 2 |
| 13996 | fi |
| 13997 | done |
| 13998 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13999 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14000 | |
| 14001 | fi |
| 14002 | fi |
| 14003 | RANLIB=$ac_cv_prog_RANLIB |
| 14004 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14005 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 14006 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14007 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14008 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14009 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14010 | fi |
| 14011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14012 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14013 | fi |
| 14014 | if test -z "$ac_cv_prog_RANLIB"; then |
| 14015 | ac_ct_RANLIB=$RANLIB |
| 14016 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 14017 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14018 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14020 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 14021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14022 | else |
| 14023 | if test -n "$ac_ct_RANLIB"; then |
| 14024 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 14025 | else |
| 14026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14027 | for as_dir in $PATH |
| 14028 | do |
| 14029 | IFS=$as_save_IFS |
| 14030 | test -z "$as_dir" && as_dir=. |
| 14031 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14032 | 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] | 14033 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 14034 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14035 | break 2 |
| 14036 | fi |
| 14037 | done |
| 14038 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14039 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14041 | fi |
| 14042 | fi |
| 14043 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14044 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14045 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14046 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14047 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14048 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14049 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14050 | fi |
| 14051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14052 | if test "x$ac_ct_RANLIB" = x; then |
| 14053 | RANLIB=":" |
| 14054 | else |
| 14055 | case $cross_compiling:$ac_tool_warned in |
| 14056 | yes:) |
| 14057 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14058 | whose name does not start with the host triplet. If you think this |
| 14059 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14060 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14061 | whose name does not start with the host triplet. If you think this |
| 14062 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14063 | ac_tool_warned=yes ;; |
| 14064 | esac |
| 14065 | RANLIB=$ac_ct_RANLIB |
| 14066 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14067 | else |
| 14068 | RANLIB="$ac_cv_prog_RANLIB" |
| 14069 | fi |
| 14070 | |
| 14071 | if test -n "$ac_tool_prefix"; then |
| 14072 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14073 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14074 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14076 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14078 | else |
| 14079 | if test -n "$STRIP"; then |
| 14080 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14081 | else |
| 14082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14083 | for as_dir in $PATH |
| 14084 | do |
| 14085 | IFS=$as_save_IFS |
| 14086 | test -z "$as_dir" && as_dir=. |
| 14087 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14088 | 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] | 14089 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14091 | break 2 |
| 14092 | fi |
| 14093 | done |
| 14094 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14095 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14096 | |
| 14097 | fi |
| 14098 | fi |
| 14099 | STRIP=$ac_cv_prog_STRIP |
| 14100 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14101 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14102 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14103 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14104 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14105 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14106 | fi |
| 14107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14108 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14109 | fi |
| 14110 | if test -z "$ac_cv_prog_STRIP"; then |
| 14111 | ac_ct_STRIP=$STRIP |
| 14112 | # Extract the first word of "strip", so it can be a program name with args. |
| 14113 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14114 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14116 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14118 | else |
| 14119 | if test -n "$ac_ct_STRIP"; then |
| 14120 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14121 | else |
| 14122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14123 | for as_dir in $PATH |
| 14124 | do |
| 14125 | IFS=$as_save_IFS |
| 14126 | test -z "$as_dir" && as_dir=. |
| 14127 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14128 | 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] | 14129 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14131 | break 2 |
| 14132 | fi |
| 14133 | done |
| 14134 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14135 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14136 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14137 | fi |
| 14138 | fi |
| 14139 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14140 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14141 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14142 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14143 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14144 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14145 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14146 | fi |
| 14147 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14148 | if test "x$ac_ct_STRIP" = x; then |
| 14149 | STRIP=":" |
| 14150 | else |
| 14151 | case $cross_compiling:$ac_tool_warned in |
| 14152 | yes:) |
| 14153 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14154 | whose name does not start with the host triplet. If you think this |
| 14155 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14156 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14157 | whose name does not start with the host triplet. If you think this |
| 14158 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14159 | ac_tool_warned=yes ;; |
| 14160 | esac |
| 14161 | STRIP=$ac_ct_STRIP |
| 14162 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14163 | else |
| 14164 | STRIP="$ac_cv_prog_STRIP" |
| 14165 | fi |
| 14166 | |
| 14167 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14168 | old_CC="$CC" |
| 14169 | old_CFLAGS="$CFLAGS" |
| 14170 | |
| 14171 | # Set sane defaults for various variables |
| 14172 | test -z "$AR" && AR=ar |
| 14173 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14174 | test -z "$AS" && AS=as |
| 14175 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14176 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14177 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14178 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14179 | test -z "$LD" && LD=ld |
| 14180 | test -z "$LN_S" && LN_S="ln -s" |
| 14181 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14182 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14183 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14184 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14185 | test -z "$RANLIB" && RANLIB=: |
| 14186 | test -z "$STRIP" && STRIP=: |
| 14187 | test -z "$ac_objext" && ac_objext=o |
| 14188 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14189 | # Determine commands to create old-style static archives. |
| 14190 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14191 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14192 | old_postuninstall_cmds= |
| 14193 | |
| 14194 | if test -n "$RANLIB"; then |
| 14195 | case $host_os in |
| 14196 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14197 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14198 | ;; |
| 14199 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14200 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14201 | ;; |
| 14202 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14203 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14204 | fi |
| 14205 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14206 | for cc_temp in $compiler""; do |
| 14207 | case $cc_temp in |
| 14208 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14209 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14210 | \-*) ;; |
| 14211 | *) break;; |
| 14212 | esac |
| 14213 | done |
| 14214 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14215 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14216 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14217 | # Only perform the check for file, if the check method requires it |
| 14218 | case $deplibs_check_method in |
| 14219 | file_magic*) |
| 14220 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14221 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14222 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14223 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14225 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14226 | case $MAGIC_CMD in |
| 14227 | [\\/*] | ?:[\\/]*) |
| 14228 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14229 | ;; |
| 14230 | *) |
| 14231 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14232 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14233 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14234 | for ac_dir in $ac_dummy; do |
| 14235 | IFS="$lt_save_ifs" |
| 14236 | test -z "$ac_dir" && ac_dir=. |
| 14237 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14238 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14239 | if test -n "$file_magic_test_file"; then |
| 14240 | case $deplibs_check_method in |
| 14241 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14242 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14243 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14244 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14245 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14246 | : |
| 14247 | else |
| 14248 | cat <<EOF 1>&2 |
| 14249 | |
| 14250 | *** Warning: the command libtool uses to detect shared libraries, |
| 14251 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14252 | *** The result is that libtool may fail to recognize shared libraries |
| 14253 | *** as such. This will affect the creation of libtool libraries that |
| 14254 | *** depend on shared libraries, but programs linked with such libtool |
| 14255 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14256 | *** may want to report the problem to your system manager and/or to |
| 14257 | *** bug-libtool@gnu.org |
| 14258 | |
| 14259 | EOF |
| 14260 | fi ;; |
| 14261 | esac |
| 14262 | fi |
| 14263 | break |
| 14264 | fi |
| 14265 | done |
| 14266 | IFS="$lt_save_ifs" |
| 14267 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14268 | ;; |
| 14269 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14270 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14271 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14272 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14273 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14274 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14275 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14276 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14277 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14278 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14279 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14280 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14281 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14282 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14283 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14284 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14285 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14287 | else |
| 14288 | case $MAGIC_CMD in |
| 14289 | [\\/*] | ?:[\\/]*) |
| 14290 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14291 | ;; |
| 14292 | *) |
| 14293 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14294 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14295 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14296 | for ac_dir in $ac_dummy; do |
| 14297 | IFS="$lt_save_ifs" |
| 14298 | test -z "$ac_dir" && ac_dir=. |
| 14299 | if test -f $ac_dir/file; then |
| 14300 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14301 | if test -n "$file_magic_test_file"; then |
| 14302 | case $deplibs_check_method in |
| 14303 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14304 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14305 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14306 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14307 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14308 | : |
| 14309 | else |
| 14310 | cat <<EOF 1>&2 |
| 14311 | |
| 14312 | *** Warning: the command libtool uses to detect shared libraries, |
| 14313 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14314 | *** The result is that libtool may fail to recognize shared libraries |
| 14315 | *** as such. This will affect the creation of libtool libraries that |
| 14316 | *** depend on shared libraries, but programs linked with such libtool |
| 14317 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14318 | *** may want to report the problem to your system manager and/or to |
| 14319 | *** bug-libtool@gnu.org |
| 14320 | |
| 14321 | EOF |
| 14322 | fi ;; |
| 14323 | esac |
| 14324 | fi |
| 14325 | break |
| 14326 | fi |
| 14327 | done |
| 14328 | IFS="$lt_save_ifs" |
| 14329 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14330 | ;; |
| 14331 | esac |
| 14332 | fi |
| 14333 | |
| 14334 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14335 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14336 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14337 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14338 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14339 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14340 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14341 | fi |
| 14342 | |
| 14343 | else |
| 14344 | MAGIC_CMD=: |
| 14345 | fi |
| 14346 | fi |
| 14347 | |
| 14348 | fi |
| 14349 | ;; |
| 14350 | esac |
| 14351 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14352 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14353 | enable_win32_dll=no |
| 14354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14355 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14356 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14357 | enableval=$enable_libtool_lock; |
| 14358 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14359 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14360 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14361 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14363 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14364 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14365 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14366 | else |
| 14367 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14368 | fi |
| 14369 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14370 | test -z "$pic_mode" && pic_mode=default |
| 14371 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14372 | # Use C for the default configuration in the libtool script |
| 14373 | tagname= |
| 14374 | lt_save_CC="$CC" |
| 14375 | ac_ext=c |
| 14376 | ac_cpp='$CPP $CPPFLAGS' |
| 14377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14380 | |
| 14381 | |
| 14382 | # Source file extension for C test sources. |
| 14383 | ac_ext=c |
| 14384 | |
| 14385 | # Object file extension for compiled C test sources. |
| 14386 | objext=o |
| 14387 | objext=$objext |
| 14388 | |
| 14389 | # Code to be used in simple compile tests |
| 14390 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14391 | |
| 14392 | # Code to be used in simple link tests |
| 14393 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14394 | |
| 14395 | |
| 14396 | # If no C compiler was specified, use CC. |
| 14397 | LTCC=${LTCC-"$CC"} |
| 14398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14399 | # If no C compiler flags were specified, use CFLAGS. |
| 14400 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14401 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14402 | # Allow CC to be a program name with arguments. |
| 14403 | compiler=$CC |
| 14404 | |
| 14405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14406 | # save warnings/boilerplate of simple test code |
| 14407 | ac_outfile=conftest.$ac_objext |
| 14408 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14409 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14410 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14411 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14413 | ac_outfile=conftest.$ac_objext |
| 14414 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14415 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14416 | _lt_linker_boilerplate=`cat conftest.err` |
| 14417 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14418 | |
| 14419 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14420 | |
| 14421 | lt_prog_compiler_no_builtin_flag= |
| 14422 | |
| 14423 | if test "$GCC" = yes; then |
| 14424 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14425 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14427 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14428 | 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] | 14429 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14431 | else |
| 14432 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14433 | ac_outfile=conftest.$ac_objext |
| 14434 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14435 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14436 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14437 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14438 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14439 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14440 | # The option is referenced via a variable to avoid confusing sed. |
| 14441 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14442 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14443 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14444 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14445 | (eval echo "\"\$as_me:14445: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14446 | (eval "$lt_compile" 2>conftest.err) |
| 14447 | ac_status=$? |
| 14448 | cat conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14449 | echo "$as_me:14449: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14450 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14451 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14452 | # So say no if there are warnings other than the usual output. |
| 14453 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14454 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14455 | 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] | 14456 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14457 | fi |
| 14458 | fi |
| 14459 | $rm conftest* |
| 14460 | |
| 14461 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14462 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14463 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14464 | |
| 14465 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14466 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14467 | else |
| 14468 | : |
| 14469 | fi |
| 14470 | |
| 14471 | fi |
| 14472 | |
| 14473 | lt_prog_compiler_wl= |
| 14474 | lt_prog_compiler_pic= |
| 14475 | lt_prog_compiler_static= |
| 14476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14477 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14478 | 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] | 14479 | |
| 14480 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14481 | lt_prog_compiler_wl='-Wl,' |
| 14482 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14483 | |
| 14484 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14485 | aix*) |
| 14486 | # All AIX code is PIC. |
| 14487 | if test "$host_cpu" = ia64; then |
| 14488 | # AIX 5 now supports IA64 processor |
| 14489 | lt_prog_compiler_static='-Bstatic' |
| 14490 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14491 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14492 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14493 | amigaos*) |
| 14494 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14495 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14496 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14497 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14498 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14499 | |
| 14500 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14501 | # PIC is the default for these OSes. |
| 14502 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14503 | |
| 14504 | mingw* | pw32* | os2*) |
| 14505 | # This hack is so that the source file can tell whether it is being |
| 14506 | # built for inclusion in a dll (and should export symbols for example). |
| 14507 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14508 | ;; |
| 14509 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14510 | darwin* | rhapsody*) |
| 14511 | # PIC is the default on this platform |
| 14512 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14513 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14514 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14515 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14516 | interix3*) |
| 14517 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14518 | # Instead, we relocate shared libraries at runtime. |
| 14519 | ;; |
| 14520 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14521 | msdosdjgpp*) |
| 14522 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14523 | # on systems that don't support them. |
| 14524 | lt_prog_compiler_can_build_shared=no |
| 14525 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14526 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14527 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14528 | sysv4*MP*) |
| 14529 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14530 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14531 | fi |
| 14532 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14533 | |
| 14534 | hpux*) |
| 14535 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14536 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14537 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14538 | hppa*64*|ia64*) |
| 14539 | # +Z the default |
| 14540 | ;; |
| 14541 | *) |
| 14542 | lt_prog_compiler_pic='-fPIC' |
| 14543 | ;; |
| 14544 | esac |
| 14545 | ;; |
| 14546 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14547 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14548 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14549 | ;; |
| 14550 | esac |
| 14551 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14552 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14553 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14554 | aix*) |
| 14555 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14556 | if test "$host_cpu" = ia64; then |
| 14557 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14558 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14559 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14560 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14561 | fi |
| 14562 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14563 | darwin*) |
| 14564 | # PIC is the default on this platform |
| 14565 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14566 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14567 | xlc*) |
| 14568 | lt_prog_compiler_pic='-qnocommon' |
| 14569 | lt_prog_compiler_wl='-Wl,' |
| 14570 | ;; |
| 14571 | esac |
| 14572 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14573 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14574 | mingw* | pw32* | os2*) |
| 14575 | # This hack is so that the source file can tell whether it is being |
| 14576 | # built for inclusion in a dll (and should export symbols for example). |
| 14577 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14578 | ;; |
| 14579 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14580 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14581 | lt_prog_compiler_wl='-Wl,' |
| 14582 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14583 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14584 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14585 | hppa*64*|ia64*) |
| 14586 | # +Z the default |
| 14587 | ;; |
| 14588 | *) |
| 14589 | lt_prog_compiler_pic='+Z' |
| 14590 | ;; |
| 14591 | esac |
| 14592 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14593 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14594 | ;; |
| 14595 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14596 | irix5* | irix6* | nonstopux*) |
| 14597 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14598 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14599 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14600 | ;; |
| 14601 | |
| 14602 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14603 | lt_prog_compiler_pic='-KPIC' |
| 14604 | lt_prog_compiler_static='-Bstatic' |
| 14605 | ;; |
| 14606 | |
| 14607 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14608 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14609 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14610 | lt_prog_compiler_wl='-Wl,' |
| 14611 | lt_prog_compiler_pic='-KPIC' |
| 14612 | lt_prog_compiler_static='-static' |
| 14613 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14614 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14615 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14616 | # which looks to be a dead project) |
| 14617 | lt_prog_compiler_wl='-Wl,' |
| 14618 | lt_prog_compiler_pic='-fpic' |
| 14619 | lt_prog_compiler_static='-Bstatic' |
| 14620 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14621 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14622 | lt_prog_compiler_wl='-Wl,' |
| 14623 | # All Alpha code is PIC. |
| 14624 | lt_prog_compiler_static='-non_shared' |
| 14625 | ;; |
| 14626 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14627 | ;; |
| 14628 | |
| 14629 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14630 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14631 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14632 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14633 | ;; |
| 14634 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14635 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14636 | lt_prog_compiler_pic='-KPIC' |
| 14637 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14638 | case $cc_basename in |
| 14639 | f77* | f90* | f95*) |
| 14640 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14641 | *) |
| 14642 | lt_prog_compiler_wl='-Wl,';; |
| 14643 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14644 | ;; |
| 14645 | |
| 14646 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14647 | lt_prog_compiler_wl='-Qoption ld ' |
| 14648 | lt_prog_compiler_pic='-PIC' |
| 14649 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14650 | ;; |
| 14651 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14652 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14653 | lt_prog_compiler_wl='-Wl,' |
| 14654 | lt_prog_compiler_pic='-KPIC' |
| 14655 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14656 | ;; |
| 14657 | |
| 14658 | sysv4*MP*) |
| 14659 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14660 | lt_prog_compiler_pic='-Kconform_pic' |
| 14661 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14662 | fi |
| 14663 | ;; |
| 14664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14665 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14666 | lt_prog_compiler_wl='-Wl,' |
| 14667 | lt_prog_compiler_pic='-KPIC' |
| 14668 | lt_prog_compiler_static='-Bstatic' |
| 14669 | ;; |
| 14670 | |
| 14671 | unicos*) |
| 14672 | lt_prog_compiler_wl='-Wl,' |
| 14673 | lt_prog_compiler_can_build_shared=no |
| 14674 | ;; |
| 14675 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14676 | uts4*) |
| 14677 | lt_prog_compiler_pic='-pic' |
| 14678 | lt_prog_compiler_static='-Bstatic' |
| 14679 | ;; |
| 14680 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14681 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14682 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14683 | ;; |
| 14684 | esac |
| 14685 | fi |
| 14686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14687 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14688 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14689 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14690 | # |
| 14691 | # Check to make sure the PIC flag actually works. |
| 14692 | # |
| 14693 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14695 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14696 | 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] | 14697 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14699 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14700 | lt_prog_compiler_pic_works=no |
| 14701 | ac_outfile=conftest.$ac_objext |
| 14702 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14703 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14704 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14705 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14706 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14707 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14708 | # The option is referenced via a variable to avoid confusing sed. |
| 14709 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14710 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14711 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14712 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14713 | (eval echo "\"\$as_me:14713: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14714 | (eval "$lt_compile" 2>conftest.err) |
| 14715 | ac_status=$? |
| 14716 | cat conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14717 | echo "$as_me:14717: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14718 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14719 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14720 | # So say no if there are warnings other than the usual output. |
| 14721 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14722 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14723 | 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] | 14724 | lt_prog_compiler_pic_works=yes |
| 14725 | fi |
| 14726 | fi |
| 14727 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14728 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14729 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14730 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14731 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14732 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14733 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14734 | case $lt_prog_compiler_pic in |
| 14735 | "" | " "*) ;; |
| 14736 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14737 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14738 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14739 | lt_prog_compiler_pic= |
| 14740 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14741 | fi |
| 14742 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14743 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14744 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14745 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14746 | *djgpp*) |
| 14747 | lt_prog_compiler_pic= |
| 14748 | ;; |
| 14749 | *) |
| 14750 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14751 | ;; |
| 14752 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14753 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14754 | # |
| 14755 | # Check to make sure the static flag actually works. |
| 14756 | # |
| 14757 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14758 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14759 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14760 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 14761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14762 | else |
| 14763 | lt_prog_compiler_static_works=no |
| 14764 | save_LDFLAGS="$LDFLAGS" |
| 14765 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14766 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14767 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14768 | # The linker can only warn and ignore the option if not recognized |
| 14769 | # So say no if there are warnings |
| 14770 | if test -s conftest.err; then |
| 14771 | # Append any errors to the config.log. |
| 14772 | cat conftest.err 1>&5 |
| 14773 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14774 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14775 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14776 | lt_prog_compiler_static_works=yes |
| 14777 | fi |
| 14778 | else |
| 14779 | lt_prog_compiler_static_works=yes |
| 14780 | fi |
| 14781 | fi |
| 14782 | $rm conftest* |
| 14783 | LDFLAGS="$save_LDFLAGS" |
| 14784 | |
| 14785 | fi |
| 14786 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 14787 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 14788 | |
| 14789 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 14790 | : |
| 14791 | else |
| 14792 | lt_prog_compiler_static= |
| 14793 | fi |
| 14794 | |
| 14795 | |
| 14796 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14797 | 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] | 14798 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14800 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14801 | lt_cv_prog_compiler_c_o=no |
| 14802 | $rm -r conftest 2>/dev/null |
| 14803 | mkdir conftest |
| 14804 | cd conftest |
| 14805 | mkdir out |
| 14806 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14807 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14808 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14809 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14810 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14811 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14812 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14813 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14814 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14815 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14816 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14817 | (eval echo "\"\$as_me:14817: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14818 | (eval "$lt_compile" 2>out/conftest.err) |
| 14819 | ac_status=$? |
| 14820 | cat out/conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14821 | echo "$as_me:14821: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14822 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14823 | then |
| 14824 | # The compiler can only warn and ignore the option if not recognized |
| 14825 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14826 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14827 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14828 | 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] | 14829 | lt_cv_prog_compiler_c_o=yes |
| 14830 | fi |
| 14831 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14832 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14833 | $rm conftest* |
| 14834 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14835 | # template instantiation |
| 14836 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14837 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14838 | cd .. |
| 14839 | rmdir conftest |
| 14840 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14841 | |
| 14842 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14843 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14844 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14845 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14846 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14847 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14848 | 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] | 14849 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14850 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14851 | 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] | 14852 | hard_links=yes |
| 14853 | $rm conftest* |
| 14854 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14855 | touch conftest.a |
| 14856 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14857 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14858 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14859 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14860 | if test "$hard_links" = no; then |
| 14861 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14862 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14863 | need_locks=warn |
| 14864 | fi |
| 14865 | else |
| 14866 | need_locks=no |
| 14867 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14868 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14869 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14870 | 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] | 14871 | |
| 14872 | runpath_var= |
| 14873 | allow_undefined_flag= |
| 14874 | enable_shared_with_static_runtimes=no |
| 14875 | archive_cmds= |
| 14876 | archive_expsym_cmds= |
| 14877 | old_archive_From_new_cmds= |
| 14878 | old_archive_from_expsyms_cmds= |
| 14879 | export_dynamic_flag_spec= |
| 14880 | whole_archive_flag_spec= |
| 14881 | thread_safe_flag_spec= |
| 14882 | hardcode_libdir_flag_spec= |
| 14883 | hardcode_libdir_flag_spec_ld= |
| 14884 | hardcode_libdir_separator= |
| 14885 | hardcode_direct=no |
| 14886 | hardcode_minus_L=no |
| 14887 | hardcode_shlibpath_var=unsupported |
| 14888 | link_all_deplibs=unknown |
| 14889 | hardcode_automatic=no |
| 14890 | module_cmds= |
| 14891 | module_expsym_cmds= |
| 14892 | always_export_symbols=no |
| 14893 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14894 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14895 | # included in the symbol list |
| 14896 | include_expsyms= |
| 14897 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14898 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14899 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14900 | # as well as any symbol that contains `d'. |
| 14901 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 14902 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14903 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14904 | # the symbol is explicitly referenced. Since portable code cannot |
| 14905 | # rely on this symbol name, it's probably fine to never include it in |
| 14906 | # preloaded symbol tables. |
| 14907 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14908 | # Just being paranoid about ensuring that cc_basename is set. |
| 14909 | for cc_temp in $compiler""; do |
| 14910 | case $cc_temp in |
| 14911 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14912 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14913 | \-*) ;; |
| 14914 | *) break;; |
| 14915 | esac |
| 14916 | done |
| 14917 | 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] | 14918 | |
| 14919 | case $host_os in |
| 14920 | cygwin* | mingw* | pw32*) |
| 14921 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14922 | # When not using gcc, we currently assume that we are using |
| 14923 | # Microsoft Visual C++. |
| 14924 | if test "$GCC" != yes; then |
| 14925 | with_gnu_ld=no |
| 14926 | fi |
| 14927 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14928 | interix*) |
| 14929 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14930 | with_gnu_ld=yes |
| 14931 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14932 | openbsd*) |
| 14933 | with_gnu_ld=no |
| 14934 | ;; |
| 14935 | esac |
| 14936 | |
| 14937 | ld_shlibs=yes |
| 14938 | if test "$with_gnu_ld" = yes; then |
| 14939 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14940 | wlarc='${wl}' |
| 14941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14942 | # Set some defaults for GNU ld with shared library support. These |
| 14943 | # are reset later if shared libraries are not supported. Putting them |
| 14944 | # here allows them to be overridden if necessary. |
| 14945 | runpath_var=LD_RUN_PATH |
| 14946 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 14947 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 14948 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14949 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14950 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14951 | else |
| 14952 | whole_archive_flag_spec= |
| 14953 | fi |
| 14954 | supports_anon_versioning=no |
| 14955 | case `$LD -v 2>/dev/null` in |
| 14956 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14957 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14958 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14959 | *\ 2.11.*) ;; # other 2.11 versions |
| 14960 | *) supports_anon_versioning=yes ;; |
| 14961 | esac |
| 14962 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14963 | # See if GNU ld supports shared libraries. |
| 14964 | case $host_os in |
| 14965 | aix3* | aix4* | aix5*) |
| 14966 | # On AIX/PPC, the GNU linker is very broken |
| 14967 | if test "$host_cpu" != ia64; then |
| 14968 | ld_shlibs=no |
| 14969 | cat <<EOF 1>&2 |
| 14970 | |
| 14971 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14972 | *** to be unable to reliably create shared libraries on AIX. |
| 14973 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14974 | *** really care for shared libraries, you may want to modify your PATH |
| 14975 | *** so that a non-GNU linker is found, and then restart. |
| 14976 | |
| 14977 | EOF |
| 14978 | fi |
| 14979 | ;; |
| 14980 | |
| 14981 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14982 | 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] | 14983 | hardcode_libdir_flag_spec='-L$libdir' |
| 14984 | hardcode_minus_L=yes |
| 14985 | |
| 14986 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14987 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14988 | # to version 4, is to share data among multiple programs linked |
| 14989 | # with the same dynamic library. Since this doesn't match the |
| 14990 | # behavior of shared libraries on other platforms, we can't use |
| 14991 | # them. |
| 14992 | ld_shlibs=no |
| 14993 | ;; |
| 14994 | |
| 14995 | beos*) |
| 14996 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14997 | allow_undefined_flag=unsupported |
| 14998 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14999 | # support --undefined. This deserves some investigation. FIXME |
| 15000 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15001 | else |
| 15002 | ld_shlibs=no |
| 15003 | fi |
| 15004 | ;; |
| 15005 | |
| 15006 | cygwin* | mingw* | pw32*) |
| 15007 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15008 | # as there is no search path for DLLs. |
| 15009 | hardcode_libdir_flag_spec='-L$libdir' |
| 15010 | allow_undefined_flag=unsupported |
| 15011 | always_export_symbols=no |
| 15012 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15013 | 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] | 15014 | |
| 15015 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15016 | 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] | 15017 | # If the export-symbols file already is a .def file (1st line |
| 15018 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15019 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15020 | cp $export_symbols $output_objdir/$soname.def; |
| 15021 | else |
| 15022 | echo EXPORTS > $output_objdir/$soname.def; |
| 15023 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15024 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15025 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15026 | else |
| 15027 | ld_shlibs=no |
| 15028 | fi |
| 15029 | ;; |
| 15030 | |
| 15031 | interix3*) |
| 15032 | hardcode_direct=no |
| 15033 | hardcode_shlibpath_var=no |
| 15034 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15035 | export_dynamic_flag_spec='${wl}-E' |
| 15036 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15037 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15038 | # default) and relocated if they conflict, which is a slow very memory |
| 15039 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15040 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15041 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15042 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15043 | 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' |
| 15044 | ;; |
| 15045 | |
| 15046 | linux*) |
| 15047 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15048 | tmp_addflag= |
| 15049 | case $cc_basename,$host_cpu in |
| 15050 | pgcc*) # Portland Group C compiler |
| 15051 | 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' |
| 15052 | tmp_addflag=' $pic_flag' |
| 15053 | ;; |
| 15054 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15055 | 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' |
| 15056 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15057 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15058 | tmp_addflag=' -i_dynamic' ;; |
| 15059 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15060 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15061 | ifc* | ifort*) # Intel Fortran compiler |
| 15062 | tmp_addflag=' -nofor_main' ;; |
| 15063 | esac |
| 15064 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15065 | |
| 15066 | if test $supports_anon_versioning = yes; then |
| 15067 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15068 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15069 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15070 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15071 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15072 | else |
| 15073 | ld_shlibs=no |
| 15074 | fi |
| 15075 | ;; |
| 15076 | |
| 15077 | netbsd*) |
| 15078 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15079 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15080 | wlarc= |
| 15081 | else |
| 15082 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15083 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15084 | fi |
| 15085 | ;; |
| 15086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15087 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15088 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15089 | ld_shlibs=no |
| 15090 | cat <<EOF 1>&2 |
| 15091 | |
| 15092 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15093 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15094 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15095 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15096 | *** your PATH or compiler configuration so that the native linker is |
| 15097 | *** used, and then restart. |
| 15098 | |
| 15099 | EOF |
| 15100 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15101 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15102 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15103 | else |
| 15104 | ld_shlibs=no |
| 15105 | fi |
| 15106 | ;; |
| 15107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15108 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15109 | case `$LD -v 2>&1` in |
| 15110 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15111 | ld_shlibs=no |
| 15112 | cat <<_LT_EOF 1>&2 |
| 15113 | |
| 15114 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15115 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15116 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15117 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15118 | *** your PATH or compiler configuration so that the native linker is |
| 15119 | *** used, and then restart. |
| 15120 | |
| 15121 | _LT_EOF |
| 15122 | ;; |
| 15123 | *) |
| 15124 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15125 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15126 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15127 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15128 | else |
| 15129 | ld_shlibs=no |
| 15130 | fi |
| 15131 | ;; |
| 15132 | esac |
| 15133 | ;; |
| 15134 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15135 | sunos4*) |
| 15136 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15137 | wlarc= |
| 15138 | hardcode_direct=yes |
| 15139 | hardcode_shlibpath_var=no |
| 15140 | ;; |
| 15141 | |
| 15142 | *) |
| 15143 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15144 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15145 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15146 | else |
| 15147 | ld_shlibs=no |
| 15148 | fi |
| 15149 | ;; |
| 15150 | esac |
| 15151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15152 | if test "$ld_shlibs" = no; then |
| 15153 | runpath_var= |
| 15154 | hardcode_libdir_flag_spec= |
| 15155 | export_dynamic_flag_spec= |
| 15156 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15157 | fi |
| 15158 | else |
| 15159 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15160 | case $host_os in |
| 15161 | aix3*) |
| 15162 | allow_undefined_flag=unsupported |
| 15163 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15164 | 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] | 15165 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15166 | # are no directories specified by -L. |
| 15167 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15168 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15169 | # Neither direct hardcoding nor static linking is supported with a |
| 15170 | # broken collect2. |
| 15171 | hardcode_direct=unsupported |
| 15172 | fi |
| 15173 | ;; |
| 15174 | |
| 15175 | aix4* | aix5*) |
| 15176 | if test "$host_cpu" = ia64; then |
| 15177 | # On IA64, the linker does run time linking by default, so we don't |
| 15178 | # have to do anything special. |
| 15179 | aix_use_runtimelinking=no |
| 15180 | exp_sym_flag='-Bexport' |
| 15181 | no_entry_flag="" |
| 15182 | else |
| 15183 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15184 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15185 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15186 | 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' |
| 15187 | else |
| 15188 | 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' |
| 15189 | fi |
| 15190 | aix_use_runtimelinking=no |
| 15191 | |
| 15192 | # Test if we are trying to use run time linking or normal |
| 15193 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15194 | # need to do runtime linking. |
| 15195 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15196 | for ld_flag in $LDFLAGS; do |
| 15197 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15198 | aix_use_runtimelinking=yes |
| 15199 | break |
| 15200 | fi |
| 15201 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15202 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15203 | esac |
| 15204 | |
| 15205 | exp_sym_flag='-bexport' |
| 15206 | no_entry_flag='-bnoentry' |
| 15207 | fi |
| 15208 | |
| 15209 | # When large executables or shared objects are built, AIX ld can |
| 15210 | # have problems creating the table of contents. If linking a library |
| 15211 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15212 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15213 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15214 | |
| 15215 | archive_cmds='' |
| 15216 | hardcode_direct=yes |
| 15217 | hardcode_libdir_separator=':' |
| 15218 | link_all_deplibs=yes |
| 15219 | |
| 15220 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15221 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15222 | # We only want to do this on AIX 4.2 and lower, the check |
| 15223 | # below for broken collect2 doesn't work under 4.3+ |
| 15224 | collect2name=`${CC} -print-prog-name=collect2` |
| 15225 | if test -f "$collect2name" && \ |
| 15226 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15227 | then |
| 15228 | # We have reworked collect2 |
| 15229 | hardcode_direct=yes |
| 15230 | else |
| 15231 | # We have old collect2 |
| 15232 | hardcode_direct=unsupported |
| 15233 | # It fails to find uninstalled libraries when the uninstalled |
| 15234 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15235 | # to unsupported forces relinking |
| 15236 | hardcode_minus_L=yes |
| 15237 | hardcode_libdir_flag_spec='-L$libdir' |
| 15238 | hardcode_libdir_separator= |
| 15239 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15240 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15241 | esac |
| 15242 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15243 | if test "$aix_use_runtimelinking" = yes; then |
| 15244 | shared_flag="$shared_flag "'${wl}-G' |
| 15245 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15246 | else |
| 15247 | # not using gcc |
| 15248 | if test "$host_cpu" = ia64; then |
| 15249 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15250 | # chokes on -Wl,-G. The following line is correct: |
| 15251 | shared_flag='-G' |
| 15252 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15253 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15254 | shared_flag='${wl}-G' |
| 15255 | else |
| 15256 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15257 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15258 | fi |
| 15259 | fi |
| 15260 | |
| 15261 | # It seems that -bexpall does not export symbols beginning with |
| 15262 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15263 | always_export_symbols=yes |
| 15264 | if test "$aix_use_runtimelinking" = yes; then |
| 15265 | # Warning - without using the other runtime loading flags (-brtl), |
| 15266 | # -berok will link without error, but may produce a broken library. |
| 15267 | allow_undefined_flag='-berok' |
| 15268 | # Determine the default libpath from the value encoded in an empty executable. |
| 15269 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15270 | /* confdefs.h. */ |
| 15271 | _ACEOF |
| 15272 | cat confdefs.h >>conftest.$ac_ext |
| 15273 | cat >>conftest.$ac_ext <<_ACEOF |
| 15274 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15275 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15276 | int |
| 15277 | main () |
| 15278 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15279 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15280 | ; |
| 15281 | return 0; |
| 15282 | } |
| 15283 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15284 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15285 | if { (ac_try="$ac_link" |
| 15286 | case "(($ac_try" in |
| 15287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15288 | *) ac_try_echo=$ac_try;; |
| 15289 | esac |
| 15290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15291 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15292 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15294 | rm -f conftest.er1 |
| 15295 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15297 | (exit $ac_status); } && |
| 15298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15299 | { (case "(($ac_try" in |
| 15300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15301 | *) ac_try_echo=$ac_try;; |
| 15302 | esac |
| 15303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15304 | (eval "$ac_try") 2>&5 |
| 15305 | ac_status=$? |
| 15306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15307 | (exit $ac_status); }; } && |
| 15308 | { ac_try='test -s conftest$ac_exeext' |
| 15309 | { (case "(($ac_try" in |
| 15310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15311 | *) ac_try_echo=$ac_try;; |
| 15312 | esac |
| 15313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15314 | (eval "$ac_try") 2>&5 |
| 15315 | ac_status=$? |
| 15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15317 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15318 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15319 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15320 | }'` |
| 15321 | # Check for a 64-bit object if we didn't find anything. |
| 15322 | 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; } |
| 15323 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15324 | else |
| 15325 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15327 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15328 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15329 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15330 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15331 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15332 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15333 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15334 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15335 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15336 | 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] | 15337 | else |
| 15338 | if test "$host_cpu" = ia64; then |
| 15339 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15340 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15341 | 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] | 15342 | else |
| 15343 | # Determine the default libpath from the value encoded in an empty executable. |
| 15344 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15345 | /* confdefs.h. */ |
| 15346 | _ACEOF |
| 15347 | cat confdefs.h >>conftest.$ac_ext |
| 15348 | cat >>conftest.$ac_ext <<_ACEOF |
| 15349 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15350 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15351 | int |
| 15352 | main () |
| 15353 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15354 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15355 | ; |
| 15356 | return 0; |
| 15357 | } |
| 15358 | _ACEOF |
| 15359 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15360 | if { (ac_try="$ac_link" |
| 15361 | case "(($ac_try" in |
| 15362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15363 | *) ac_try_echo=$ac_try;; |
| 15364 | esac |
| 15365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15366 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15367 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15369 | rm -f conftest.er1 |
| 15370 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15372 | (exit $ac_status); } && |
| 15373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15374 | { (case "(($ac_try" in |
| 15375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15376 | *) ac_try_echo=$ac_try;; |
| 15377 | esac |
| 15378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15379 | (eval "$ac_try") 2>&5 |
| 15380 | ac_status=$? |
| 15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15382 | (exit $ac_status); }; } && |
| 15383 | { ac_try='test -s conftest$ac_exeext' |
| 15384 | { (case "(($ac_try" in |
| 15385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15386 | *) ac_try_echo=$ac_try;; |
| 15387 | esac |
| 15388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15389 | (eval "$ac_try") 2>&5 |
| 15390 | ac_status=$? |
| 15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15392 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15393 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15394 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15395 | }'` |
| 15396 | # Check for a 64-bit object if we didn't find anything. |
| 15397 | 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; } |
| 15398 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15399 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15400 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15402 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15403 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15404 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15405 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15406 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15407 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15408 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15409 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15410 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15411 | # Warning - without using the other run time loading flags, |
| 15412 | # -berok will link without error, but may produce a broken library. |
| 15413 | no_undefined_flag=' ${wl}-bernotok' |
| 15414 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15415 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15416 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15417 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15418 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15419 | 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] | 15420 | fi |
| 15421 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15422 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15423 | |
| 15424 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15425 | 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] | 15426 | hardcode_libdir_flag_spec='-L$libdir' |
| 15427 | hardcode_minus_L=yes |
| 15428 | # see comment about different semantics on the GNU ld section |
| 15429 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15430 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15431 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15432 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15433 | export_dynamic_flag_spec=-rdynamic |
| 15434 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15435 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15436 | cygwin* | mingw* | pw32*) |
| 15437 | # When not using gcc, we currently assume that we are using |
| 15438 | # Microsoft Visual C++. |
| 15439 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15440 | # no search path for DLLs. |
| 15441 | hardcode_libdir_flag_spec=' ' |
| 15442 | allow_undefined_flag=unsupported |
| 15443 | # Tell ltmain to make .lib files, not .a files. |
| 15444 | libext=lib |
| 15445 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15446 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15447 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15448 | 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] | 15449 | # The linker will automatically build a .lib file if we build a DLL. |
| 15450 | old_archive_From_new_cmds='true' |
| 15451 | # FIXME: Should let the user specify the lib program. |
| 15452 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15453 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15454 | enable_shared_with_static_runtimes=yes |
| 15455 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15456 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15457 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15458 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15459 | rhapsody* | darwin1.[012]) |
| 15460 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15461 | ;; |
| 15462 | *) # Darwin 1.3 on |
| 15463 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15464 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15465 | else |
| 15466 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15467 | 10.[012]) |
| 15468 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15469 | ;; |
| 15470 | 10.*) |
| 15471 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15472 | ;; |
| 15473 | esac |
| 15474 | fi |
| 15475 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15476 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15477 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15478 | hardcode_direct=no |
| 15479 | hardcode_automatic=yes |
| 15480 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15481 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15482 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15483 | if test "$GCC" = yes ; then |
| 15484 | output_verbose_link_cmd='echo' |
| 15485 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15486 | 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] | 15487 | # 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] | 15488 | 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}' |
| 15489 | 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] | 15490 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15491 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15492 | xlc*) |
| 15493 | output_verbose_link_cmd='echo' |
| 15494 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15495 | 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] | 15496 | # 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] | 15497 | 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}' |
| 15498 | 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] | 15499 | ;; |
| 15500 | *) |
| 15501 | ld_shlibs=no |
| 15502 | ;; |
| 15503 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15504 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15505 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15506 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15507 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15508 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15509 | hardcode_libdir_flag_spec='-L$libdir' |
| 15510 | hardcode_shlibpath_var=no |
| 15511 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15512 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15513 | freebsd1*) |
| 15514 | ld_shlibs=no |
| 15515 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15516 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15517 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15518 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15519 | # does not break anything, and helps significantly (at the cost of a little |
| 15520 | # extra space). |
| 15521 | freebsd2.2*) |
| 15522 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15523 | hardcode_libdir_flag_spec='-R$libdir' |
| 15524 | hardcode_direct=yes |
| 15525 | hardcode_shlibpath_var=no |
| 15526 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15527 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15528 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15529 | freebsd2*) |
| 15530 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15531 | hardcode_direct=yes |
| 15532 | hardcode_minus_L=yes |
| 15533 | hardcode_shlibpath_var=no |
| 15534 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15535 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15536 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15537 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15538 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15539 | hardcode_libdir_flag_spec='-R$libdir' |
| 15540 | hardcode_direct=yes |
| 15541 | hardcode_shlibpath_var=no |
| 15542 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15543 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15544 | hpux9*) |
| 15545 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15546 | 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] | 15547 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15548 | 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] | 15549 | fi |
| 15550 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15551 | hardcode_libdir_separator=: |
| 15552 | hardcode_direct=yes |
| 15553 | |
| 15554 | # hardcode_minus_L: Not really in the search PATH, |
| 15555 | # but as the default location of the library. |
| 15556 | hardcode_minus_L=yes |
| 15557 | export_dynamic_flag_spec='${wl}-E' |
| 15558 | ;; |
| 15559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15560 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15561 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15562 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15563 | else |
| 15564 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15565 | fi |
| 15566 | if test "$with_gnu_ld" = no; then |
| 15567 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15568 | hardcode_libdir_separator=: |
| 15569 | |
| 15570 | hardcode_direct=yes |
| 15571 | export_dynamic_flag_spec='${wl}-E' |
| 15572 | |
| 15573 | # hardcode_minus_L: Not really in the search PATH, |
| 15574 | # but as the default location of the library. |
| 15575 | hardcode_minus_L=yes |
| 15576 | fi |
| 15577 | ;; |
| 15578 | |
| 15579 | hpux11*) |
| 15580 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15581 | case $host_cpu in |
| 15582 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15583 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15584 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15585 | ia64*) |
| 15586 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15587 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15588 | *) |
| 15589 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15590 | ;; |
| 15591 | esac |
| 15592 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15593 | case $host_cpu in |
| 15594 | hppa*64*) |
| 15595 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15596 | ;; |
| 15597 | ia64*) |
| 15598 | 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] | 15599 | ;; |
| 15600 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15601 | 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] | 15602 | ;; |
| 15603 | esac |
| 15604 | fi |
| 15605 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15606 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15607 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15609 | case $host_cpu in |
| 15610 | hppa*64*|ia64*) |
| 15611 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15612 | hardcode_direct=no |
| 15613 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15614 | ;; |
| 15615 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15616 | hardcode_direct=yes |
| 15617 | export_dynamic_flag_spec='${wl}-E' |
| 15618 | |
| 15619 | # hardcode_minus_L: Not really in the search PATH, |
| 15620 | # but as the default location of the library. |
| 15621 | hardcode_minus_L=yes |
| 15622 | ;; |
| 15623 | esac |
| 15624 | fi |
| 15625 | ;; |
| 15626 | |
| 15627 | irix5* | irix6* | nonstopux*) |
| 15628 | if test "$GCC" = yes; then |
| 15629 | 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' |
| 15630 | else |
| 15631 | 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' |
| 15632 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15633 | fi |
| 15634 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15635 | hardcode_libdir_separator=: |
| 15636 | link_all_deplibs=yes |
| 15637 | ;; |
| 15638 | |
| 15639 | netbsd*) |
| 15640 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15641 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15642 | else |
| 15643 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15644 | fi |
| 15645 | hardcode_libdir_flag_spec='-R$libdir' |
| 15646 | hardcode_direct=yes |
| 15647 | hardcode_shlibpath_var=no |
| 15648 | ;; |
| 15649 | |
| 15650 | newsos6) |
| 15651 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15652 | hardcode_direct=yes |
| 15653 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15654 | hardcode_libdir_separator=: |
| 15655 | hardcode_shlibpath_var=no |
| 15656 | ;; |
| 15657 | |
| 15658 | openbsd*) |
| 15659 | hardcode_direct=yes |
| 15660 | hardcode_shlibpath_var=no |
| 15661 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15662 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15663 | 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] | 15664 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15665 | export_dynamic_flag_spec='${wl}-E' |
| 15666 | else |
| 15667 | case $host_os in |
| 15668 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15669 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15670 | hardcode_libdir_flag_spec='-R$libdir' |
| 15671 | ;; |
| 15672 | *) |
| 15673 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15674 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15675 | ;; |
| 15676 | esac |
| 15677 | fi |
| 15678 | ;; |
| 15679 | |
| 15680 | os2*) |
| 15681 | hardcode_libdir_flag_spec='-L$libdir' |
| 15682 | hardcode_minus_L=yes |
| 15683 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15684 | 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] | 15685 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15686 | ;; |
| 15687 | |
| 15688 | osf3*) |
| 15689 | if test "$GCC" = yes; then |
| 15690 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15691 | 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' |
| 15692 | else |
| 15693 | allow_undefined_flag=' -expect_unresolved \*' |
| 15694 | 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' |
| 15695 | fi |
| 15696 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15697 | hardcode_libdir_separator=: |
| 15698 | ;; |
| 15699 | |
| 15700 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15701 | if test "$GCC" = yes; then |
| 15702 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15703 | 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' |
| 15704 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15705 | else |
| 15706 | allow_undefined_flag=' -expect_unresolved \*' |
| 15707 | 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] | 15708 | 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] | 15709 | $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] | 15710 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15711 | # Both c and cxx compiler support -rpath directly |
| 15712 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15713 | fi |
| 15714 | hardcode_libdir_separator=: |
| 15715 | ;; |
| 15716 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15717 | solaris*) |
| 15718 | no_undefined_flag=' -z text' |
| 15719 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15720 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15721 | 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] | 15722 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15723 | $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] | 15724 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15725 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15726 | 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] | 15727 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15728 | $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] | 15729 | fi |
| 15730 | hardcode_libdir_flag_spec='-R$libdir' |
| 15731 | hardcode_shlibpath_var=no |
| 15732 | case $host_os in |
| 15733 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15734 | *) |
| 15735 | # The compiler driver will combine linker options so we |
| 15736 | # cannot just pass the convience library names through |
| 15737 | # without $wl, iff we do not link with $LD. |
| 15738 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15739 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15740 | case $wlarc in |
| 15741 | '') |
| 15742 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15743 | *) |
| 15744 | 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' ;; |
| 15745 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15746 | esac |
| 15747 | link_all_deplibs=yes |
| 15748 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15749 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15750 | sunos4*) |
| 15751 | if test "x$host_vendor" = xsequent; then |
| 15752 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15753 | # files that make .init and .fini sections work. |
| 15754 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15755 | else |
| 15756 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15757 | fi |
| 15758 | hardcode_libdir_flag_spec='-L$libdir' |
| 15759 | hardcode_direct=yes |
| 15760 | hardcode_minus_L=yes |
| 15761 | hardcode_shlibpath_var=no |
| 15762 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15763 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15764 | sysv4) |
| 15765 | case $host_vendor in |
| 15766 | sni) |
| 15767 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15768 | hardcode_direct=yes # is this really true??? |
| 15769 | ;; |
| 15770 | siemens) |
| 15771 | ## LD is ld it makes a PLAMLIB |
| 15772 | ## CC just makes a GrossModule. |
| 15773 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15774 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15775 | hardcode_direct=no |
| 15776 | ;; |
| 15777 | motorola) |
| 15778 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15779 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15780 | ;; |
| 15781 | esac |
| 15782 | runpath_var='LD_RUN_PATH' |
| 15783 | hardcode_shlibpath_var=no |
| 15784 | ;; |
| 15785 | |
| 15786 | sysv4.3*) |
| 15787 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15788 | hardcode_shlibpath_var=no |
| 15789 | export_dynamic_flag_spec='-Bexport' |
| 15790 | ;; |
| 15791 | |
| 15792 | sysv4*MP*) |
| 15793 | if test -d /usr/nec; then |
| 15794 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15795 | hardcode_shlibpath_var=no |
| 15796 | runpath_var=LD_RUN_PATH |
| 15797 | hardcode_runpath_var=yes |
| 15798 | ld_shlibs=yes |
| 15799 | fi |
| 15800 | ;; |
| 15801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15802 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15803 | no_undefined_flag='${wl}-z,text' |
| 15804 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15805 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15806 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15807 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15808 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15809 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15810 | 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] | 15811 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15812 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15813 | 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] | 15814 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15815 | ;; |
| 15816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15817 | sysv5* | sco3.2v5* | sco5v6*) |
| 15818 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15819 | # link with -lc, and that would cause any symbols used from libc to |
| 15820 | # always be unresolved, which means just about no library would |
| 15821 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15822 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15823 | # as -z defs. |
| 15824 | no_undefined_flag='${wl}-z,text' |
| 15825 | allow_undefined_flag='${wl}-z,nodefs' |
| 15826 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15827 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15828 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15829 | hardcode_libdir_separator=':' |
| 15830 | link_all_deplibs=yes |
| 15831 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15832 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15833 | |
| 15834 | if test "$GCC" = yes; then |
| 15835 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15836 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15837 | else |
| 15838 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15839 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15840 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15841 | ;; |
| 15842 | |
| 15843 | uts4*) |
| 15844 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15845 | hardcode_libdir_flag_spec='-L$libdir' |
| 15846 | hardcode_shlibpath_var=no |
| 15847 | ;; |
| 15848 | |
| 15849 | *) |
| 15850 | ld_shlibs=no |
| 15851 | ;; |
| 15852 | esac |
| 15853 | fi |
| 15854 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15855 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 15856 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15857 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15858 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15859 | # |
| 15860 | # Do we need to explicitly link libc? |
| 15861 | # |
| 15862 | case "x$archive_cmds_need_lc" in |
| 15863 | x|xyes) |
| 15864 | # Assume -lc should be added |
| 15865 | archive_cmds_need_lc=yes |
| 15866 | |
| 15867 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15868 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15869 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15870 | # FIXME: we may have to deal with multi-command sequences. |
| 15871 | ;; |
| 15872 | '$CC '*) |
| 15873 | # Test whether the compiler implicitly links with -lc since on some |
| 15874 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15875 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15876 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15877 | 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] | 15878 | $rm conftest* |
| 15879 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15880 | |
| 15881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15882 | (eval $ac_compile) 2>&5 |
| 15883 | ac_status=$? |
| 15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15885 | (exit $ac_status); } 2>conftest.err; then |
| 15886 | soname=conftest |
| 15887 | lib=conftest |
| 15888 | libobjs=conftest.$ac_objext |
| 15889 | deplibs= |
| 15890 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15891 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15892 | compiler_flags=-v |
| 15893 | linker_flags=-v |
| 15894 | verstring= |
| 15895 | output_objdir=. |
| 15896 | libname=conftest |
| 15897 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15898 | allow_undefined_flag= |
| 15899 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15900 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15901 | ac_status=$? |
| 15902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15903 | (exit $ac_status); } |
| 15904 | then |
| 15905 | archive_cmds_need_lc=no |
| 15906 | else |
| 15907 | archive_cmds_need_lc=yes |
| 15908 | fi |
| 15909 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15910 | else |
| 15911 | cat conftest.err 1>&5 |
| 15912 | fi |
| 15913 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15914 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 15915 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15916 | ;; |
| 15917 | esac |
| 15918 | fi |
| 15919 | ;; |
| 15920 | esac |
| 15921 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15922 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15923 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15924 | library_names_spec= |
| 15925 | libname_spec='lib$name' |
| 15926 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15927 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15928 | postinstall_cmds= |
| 15929 | postuninstall_cmds= |
| 15930 | finish_cmds= |
| 15931 | finish_eval= |
| 15932 | shlibpath_var= |
| 15933 | shlibpath_overrides_runpath=unknown |
| 15934 | version_type=none |
| 15935 | dynamic_linker="$host_os ld.so" |
| 15936 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15937 | if test "$GCC" = yes; then |
| 15938 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15939 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15940 | # if the path contains ";" then we assume it to be the separator |
| 15941 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15942 | # assumed that no part of a normal pathname contains ";" but that should |
| 15943 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15944 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15945 | else |
| 15946 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15947 | fi |
| 15948 | else |
| 15949 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15950 | fi |
| 15951 | need_lib_prefix=unknown |
| 15952 | hardcode_into_libs=no |
| 15953 | |
| 15954 | # when you set need_version to no, make sure it does not cause -set_version |
| 15955 | # flags to be left without arguments |
| 15956 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15957 | |
| 15958 | case $host_os in |
| 15959 | aix3*) |
| 15960 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15961 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15962 | shlibpath_var=LIBPATH |
| 15963 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15964 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15965 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15966 | ;; |
| 15967 | |
| 15968 | aix4* | aix5*) |
| 15969 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15970 | need_lib_prefix=no |
| 15971 | need_version=no |
| 15972 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15973 | if test "$host_cpu" = ia64; then |
| 15974 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15975 | 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] | 15976 | shlibpath_var=LD_LIBRARY_PATH |
| 15977 | else |
| 15978 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15979 | # for dependence libraries. The import file would start with |
| 15980 | # the line `#! .'. This would cause the generated library to |
| 15981 | # depend on `.', always an invalid library. This was fixed in |
| 15982 | # development snapshots of GCC prior to 3.0. |
| 15983 | case $host_os in |
| 15984 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15985 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15986 | echo ' yes ' |
| 15987 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15988 | : |
| 15989 | else |
| 15990 | can_build_shared=no |
| 15991 | fi |
| 15992 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15993 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15994 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15995 | # soname into executable. Probably we can add versioning support to |
| 15996 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15997 | if test "$aix_use_runtimelinking" = yes; then |
| 15998 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15999 | # instead of lib<name>.a to let people know that these are not |
| 16000 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16001 | 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] | 16002 | else |
| 16003 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16004 | # and later when we are not doing run time linking. |
| 16005 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16006 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16007 | fi |
| 16008 | shlibpath_var=LIBPATH |
| 16009 | fi |
| 16010 | ;; |
| 16011 | |
| 16012 | amigaos*) |
| 16013 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16014 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16015 | 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] | 16016 | ;; |
| 16017 | |
| 16018 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16019 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16020 | dynamic_linker="$host_os ld.so" |
| 16021 | shlibpath_var=LIBRARY_PATH |
| 16022 | ;; |
| 16023 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16024 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16025 | version_type=linux |
| 16026 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16028 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16029 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16030 | shlibpath_var=LD_LIBRARY_PATH |
| 16031 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16032 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16033 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16034 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16035 | # libtool to hard-code these into programs |
| 16036 | ;; |
| 16037 | |
| 16038 | cygwin* | mingw* | pw32*) |
| 16039 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16040 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16041 | need_version=no |
| 16042 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16043 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16044 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16045 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16046 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16047 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16048 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16049 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16050 | dldir=$destdir/`dirname \$dlpath`~ |
| 16051 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16052 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16053 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16054 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16055 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16056 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16057 | shlibpath_overrides_runpath=yes |
| 16058 | |
| 16059 | case $host_os in |
| 16060 | cygwin*) |
| 16061 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16062 | 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] | 16063 | 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] | 16064 | ;; |
| 16065 | mingw*) |
| 16066 | # MinGW DLLs use traditional 'lib' prefix |
| 16067 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16068 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16069 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16070 | # It is most probably a Windows format PATH printed by |
| 16071 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16072 | # path with ; separators, and with drive letters. We can handle the |
| 16073 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16074 | # especially as we might pass files found there to a mingw objdump, |
| 16075 | # which wouldn't understand a cygwinified path. Ahh. |
| 16076 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16077 | else |
| 16078 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16079 | fi |
| 16080 | ;; |
| 16081 | pw32*) |
| 16082 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16083 | 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] | 16084 | ;; |
| 16085 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16086 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16087 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16088 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16089 | 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] | 16090 | ;; |
| 16091 | esac |
| 16092 | dynamic_linker='Win32 ld.exe' |
| 16093 | # FIXME: first we should search . and the directory the executable is in |
| 16094 | shlibpath_var=PATH |
| 16095 | ;; |
| 16096 | |
| 16097 | darwin* | rhapsody*) |
| 16098 | dynamic_linker="$host_os dyld" |
| 16099 | version_type=darwin |
| 16100 | need_lib_prefix=no |
| 16101 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16102 | 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] | 16103 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16104 | shlibpath_overrides_runpath=yes |
| 16105 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16106 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16107 | # 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] | 16108 | if test "$GCC" = yes; then |
| 16109 | 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"` |
| 16110 | else |
| 16111 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16112 | fi |
| 16113 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16114 | ;; |
| 16115 | |
| 16116 | dgux*) |
| 16117 | version_type=linux |
| 16118 | need_lib_prefix=no |
| 16119 | need_version=no |
| 16120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16121 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16122 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16123 | ;; |
| 16124 | |
| 16125 | freebsd1*) |
| 16126 | dynamic_linker=no |
| 16127 | ;; |
| 16128 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16129 | kfreebsd*-gnu) |
| 16130 | version_type=linux |
| 16131 | need_lib_prefix=no |
| 16132 | need_version=no |
| 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' |
| 16135 | shlibpath_var=LD_LIBRARY_PATH |
| 16136 | shlibpath_overrides_runpath=no |
| 16137 | hardcode_into_libs=yes |
| 16138 | dynamic_linker='GNU ld.so' |
| 16139 | ;; |
| 16140 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16141 | freebsd* | dragonfly*) |
| 16142 | # DragonFly does not have aout. When/if they implement a new |
| 16143 | # versioning mechanism, adjust this. |
| 16144 | if test -x /usr/bin/objformat; then |
| 16145 | objformat=`/usr/bin/objformat` |
| 16146 | else |
| 16147 | case $host_os in |
| 16148 | freebsd[123]*) objformat=aout ;; |
| 16149 | *) objformat=elf ;; |
| 16150 | esac |
| 16151 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16152 | version_type=freebsd-$objformat |
| 16153 | case $version_type in |
| 16154 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16155 | 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] | 16156 | need_version=no |
| 16157 | need_lib_prefix=no |
| 16158 | ;; |
| 16159 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16160 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16161 | need_version=yes |
| 16162 | ;; |
| 16163 | esac |
| 16164 | shlibpath_var=LD_LIBRARY_PATH |
| 16165 | case $host_os in |
| 16166 | freebsd2*) |
| 16167 | shlibpath_overrides_runpath=yes |
| 16168 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16169 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16170 | shlibpath_overrides_runpath=yes |
| 16171 | hardcode_into_libs=yes |
| 16172 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16173 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16174 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16175 | shlibpath_overrides_runpath=no |
| 16176 | hardcode_into_libs=yes |
| 16177 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16178 | freebsd*) # from 4.6 on |
| 16179 | shlibpath_overrides_runpath=yes |
| 16180 | hardcode_into_libs=yes |
| 16181 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16182 | esac |
| 16183 | ;; |
| 16184 | |
| 16185 | gnu*) |
| 16186 | version_type=linux |
| 16187 | need_lib_prefix=no |
| 16188 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16191 | shlibpath_var=LD_LIBRARY_PATH |
| 16192 | hardcode_into_libs=yes |
| 16193 | ;; |
| 16194 | |
| 16195 | hpux9* | hpux10* | hpux11*) |
| 16196 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16197 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16198 | version_type=sunos |
| 16199 | need_lib_prefix=no |
| 16200 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16201 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16202 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16203 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16204 | hardcode_into_libs=yes |
| 16205 | dynamic_linker="$host_os dld.so" |
| 16206 | shlibpath_var=LD_LIBRARY_PATH |
| 16207 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16209 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16210 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16211 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16212 | else |
| 16213 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16214 | fi |
| 16215 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16216 | ;; |
| 16217 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16218 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16219 | hardcode_into_libs=yes |
| 16220 | dynamic_linker="$host_os dld.sl" |
| 16221 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16222 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16224 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16225 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16226 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16227 | ;; |
| 16228 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16229 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16230 | dynamic_linker="$host_os dld.sl" |
| 16231 | shlibpath_var=SHLIB_PATH |
| 16232 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16234 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16235 | ;; |
| 16236 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16237 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16238 | postinstall_cmds='chmod 555 $lib' |
| 16239 | ;; |
| 16240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16241 | interix3*) |
| 16242 | version_type=linux |
| 16243 | need_lib_prefix=no |
| 16244 | need_version=no |
| 16245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16246 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16247 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16248 | shlibpath_var=LD_LIBRARY_PATH |
| 16249 | shlibpath_overrides_runpath=no |
| 16250 | hardcode_into_libs=yes |
| 16251 | ;; |
| 16252 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16253 | irix5* | irix6* | nonstopux*) |
| 16254 | case $host_os in |
| 16255 | nonstopux*) version_type=nonstopux ;; |
| 16256 | *) |
| 16257 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16258 | version_type=linux |
| 16259 | else |
| 16260 | version_type=irix |
| 16261 | fi ;; |
| 16262 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16263 | need_lib_prefix=no |
| 16264 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16265 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16266 | 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] | 16267 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16268 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16269 | libsuff= shlibsuff= |
| 16270 | ;; |
| 16271 | *) |
| 16272 | 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] | 16273 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16274 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16275 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16276 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16277 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16278 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16279 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16280 | esac |
| 16281 | ;; |
| 16282 | esac |
| 16283 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16284 | shlibpath_overrides_runpath=no |
| 16285 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16286 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16287 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16288 | ;; |
| 16289 | |
| 16290 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16291 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16292 | dynamic_linker=no |
| 16293 | ;; |
| 16294 | |
| 16295 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16296 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16297 | version_type=linux |
| 16298 | need_lib_prefix=no |
| 16299 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16301 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16302 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16303 | shlibpath_var=LD_LIBRARY_PATH |
| 16304 | shlibpath_overrides_runpath=no |
| 16305 | # This implies no fast_install, which is unacceptable. |
| 16306 | # Some rework will be needed to allow for fast_install |
| 16307 | # before this can be enabled. |
| 16308 | hardcode_into_libs=yes |
| 16309 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16310 | # Append ld.so.conf contents to the search path |
| 16311 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16312 | 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] | 16313 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16314 | fi |
| 16315 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16316 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16317 | # powerpc, because MkLinux only supported shared libraries with the |
| 16318 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16319 | # most powerpc-linux boxes support dynamic linking these days and |
| 16320 | # people can always --disable-shared, the test was removed, and we |
| 16321 | # assume the GNU/Linux dynamic linker is in use. |
| 16322 | dynamic_linker='GNU/Linux ld.so' |
| 16323 | ;; |
| 16324 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16325 | knetbsd*-gnu) |
| 16326 | version_type=linux |
| 16327 | need_lib_prefix=no |
| 16328 | need_version=no |
| 16329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16330 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16331 | shlibpath_var=LD_LIBRARY_PATH |
| 16332 | shlibpath_overrides_runpath=no |
| 16333 | hardcode_into_libs=yes |
| 16334 | dynamic_linker='GNU ld.so' |
| 16335 | ;; |
| 16336 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16337 | netbsd*) |
| 16338 | version_type=sunos |
| 16339 | need_lib_prefix=no |
| 16340 | need_version=no |
| 16341 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16343 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16344 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16345 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16346 | 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] | 16347 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16348 | dynamic_linker='NetBSD ld.elf_so' |
| 16349 | fi |
| 16350 | shlibpath_var=LD_LIBRARY_PATH |
| 16351 | shlibpath_overrides_runpath=yes |
| 16352 | hardcode_into_libs=yes |
| 16353 | ;; |
| 16354 | |
| 16355 | newsos6) |
| 16356 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16358 | shlibpath_var=LD_LIBRARY_PATH |
| 16359 | shlibpath_overrides_runpath=yes |
| 16360 | ;; |
| 16361 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16362 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16363 | version_type=linux |
| 16364 | need_lib_prefix=no |
| 16365 | need_version=no |
| 16366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16367 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16368 | shlibpath_var=LD_LIBRARY_PATH |
| 16369 | shlibpath_overrides_runpath=yes |
| 16370 | ;; |
| 16371 | |
| 16372 | openbsd*) |
| 16373 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16374 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16375 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16376 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16377 | case $host_os in |
| 16378 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16379 | *) need_version=no ;; |
| 16380 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16382 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16383 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16384 | 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] | 16385 | case $host_os in |
| 16386 | openbsd2.[89] | openbsd2.[89].*) |
| 16387 | shlibpath_overrides_runpath=no |
| 16388 | ;; |
| 16389 | *) |
| 16390 | shlibpath_overrides_runpath=yes |
| 16391 | ;; |
| 16392 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16393 | else |
| 16394 | shlibpath_overrides_runpath=yes |
| 16395 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16396 | ;; |
| 16397 | |
| 16398 | os2*) |
| 16399 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16400 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16401 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16402 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16403 | dynamic_linker='OS/2 ld.exe' |
| 16404 | shlibpath_var=LIBPATH |
| 16405 | ;; |
| 16406 | |
| 16407 | osf3* | osf4* | osf5*) |
| 16408 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16409 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16410 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16411 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16412 | 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] | 16413 | shlibpath_var=LD_LIBRARY_PATH |
| 16414 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16415 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16416 | ;; |
| 16417 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16418 | solaris*) |
| 16419 | version_type=linux |
| 16420 | need_lib_prefix=no |
| 16421 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16423 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16424 | shlibpath_var=LD_LIBRARY_PATH |
| 16425 | shlibpath_overrides_runpath=yes |
| 16426 | hardcode_into_libs=yes |
| 16427 | # ldd complains unless libraries are executable |
| 16428 | postinstall_cmds='chmod +x $lib' |
| 16429 | ;; |
| 16430 | |
| 16431 | sunos4*) |
| 16432 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16434 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16435 | shlibpath_var=LD_LIBRARY_PATH |
| 16436 | shlibpath_overrides_runpath=yes |
| 16437 | if test "$with_gnu_ld" = yes; then |
| 16438 | need_lib_prefix=no |
| 16439 | fi |
| 16440 | need_version=yes |
| 16441 | ;; |
| 16442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16443 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16444 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16446 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16447 | shlibpath_var=LD_LIBRARY_PATH |
| 16448 | case $host_vendor in |
| 16449 | sni) |
| 16450 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16451 | need_lib_prefix=no |
| 16452 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16453 | runpath_var=LD_RUN_PATH |
| 16454 | ;; |
| 16455 | siemens) |
| 16456 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16457 | ;; |
| 16458 | motorola) |
| 16459 | need_lib_prefix=no |
| 16460 | need_version=no |
| 16461 | shlibpath_overrides_runpath=no |
| 16462 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16463 | ;; |
| 16464 | esac |
| 16465 | ;; |
| 16466 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16467 | sysv4*MP*) |
| 16468 | if test -d /usr/nec ;then |
| 16469 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16470 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16471 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16472 | shlibpath_var=LD_LIBRARY_PATH |
| 16473 | fi |
| 16474 | ;; |
| 16475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16476 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16477 | version_type=freebsd-elf |
| 16478 | need_lib_prefix=no |
| 16479 | need_version=no |
| 16480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16481 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16482 | shlibpath_var=LD_LIBRARY_PATH |
| 16483 | hardcode_into_libs=yes |
| 16484 | if test "$with_gnu_ld" = yes; then |
| 16485 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16486 | shlibpath_overrides_runpath=no |
| 16487 | else |
| 16488 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16489 | shlibpath_overrides_runpath=yes |
| 16490 | case $host_os in |
| 16491 | sco3.2v5*) |
| 16492 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16493 | ;; |
| 16494 | esac |
| 16495 | fi |
| 16496 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16497 | ;; |
| 16498 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16499 | uts4*) |
| 16500 | version_type=linux |
| 16501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16502 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16503 | shlibpath_var=LD_LIBRARY_PATH |
| 16504 | ;; |
| 16505 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16506 | *) |
| 16507 | dynamic_linker=no |
| 16508 | ;; |
| 16509 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16510 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16511 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16512 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16513 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16514 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16515 | if test "$GCC" = yes; then |
| 16516 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16517 | fi |
| 16518 | |
| 16519 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16520 | 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] | 16521 | hardcode_action= |
| 16522 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16523 | test -n "$runpath_var" || \ |
| 16524 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16525 | |
| 16526 | # We can hardcode non-existant directories. |
| 16527 | if test "$hardcode_direct" != no && |
| 16528 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16529 | # have to relink, otherwise we might link with an installed library |
| 16530 | # when we should be linking with a yet-to-be-installed one |
| 16531 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16532 | test "$hardcode_minus_L" != no; then |
| 16533 | # Linking always hardcodes the temporary library directory. |
| 16534 | hardcode_action=relink |
| 16535 | else |
| 16536 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16537 | hardcode_action=immediate |
| 16538 | fi |
| 16539 | else |
| 16540 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16541 | # directories. |
| 16542 | hardcode_action=unsupported |
| 16543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16544 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16545 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16546 | |
| 16547 | if test "$hardcode_action" = relink; then |
| 16548 | # Fast installation is not supported |
| 16549 | enable_fast_install=no |
| 16550 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16551 | test "$enable_shared" = no; then |
| 16552 | # Fast installation is not necessary |
| 16553 | enable_fast_install=needless |
| 16554 | fi |
| 16555 | |
| 16556 | striplib= |
| 16557 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16558 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16559 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16560 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16561 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16562 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16563 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16564 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16565 | else |
| 16566 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16567 | case $host_os in |
| 16568 | darwin*) |
| 16569 | if test -n "$STRIP" ; then |
| 16570 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16571 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16572 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16573 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16574 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16575 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16576 | fi |
| 16577 | ;; |
| 16578 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16579 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16580 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16581 | ;; |
| 16582 | esac |
| 16583 | fi |
| 16584 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16585 | if test "x$enable_dlopen" != xyes; then |
| 16586 | enable_dlopen=unknown |
| 16587 | enable_dlopen_self=unknown |
| 16588 | enable_dlopen_self_static=unknown |
| 16589 | else |
| 16590 | lt_cv_dlopen=no |
| 16591 | lt_cv_dlopen_libs= |
| 16592 | |
| 16593 | case $host_os in |
| 16594 | beos*) |
| 16595 | lt_cv_dlopen="load_add_on" |
| 16596 | lt_cv_dlopen_libs= |
| 16597 | lt_cv_dlopen_self=yes |
| 16598 | ;; |
| 16599 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16600 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16601 | lt_cv_dlopen="LoadLibrary" |
| 16602 | lt_cv_dlopen_libs= |
| 16603 | ;; |
| 16604 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16605 | cygwin*) |
| 16606 | lt_cv_dlopen="dlopen" |
| 16607 | lt_cv_dlopen_libs= |
| 16608 | ;; |
| 16609 | |
| 16610 | darwin*) |
| 16611 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16612 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16613 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16614 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16616 | else |
| 16617 | ac_check_lib_save_LIBS=$LIBS |
| 16618 | LIBS="-ldl $LIBS" |
| 16619 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16620 | /* confdefs.h. */ |
| 16621 | _ACEOF |
| 16622 | cat confdefs.h >>conftest.$ac_ext |
| 16623 | cat >>conftest.$ac_ext <<_ACEOF |
| 16624 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16626 | /* Override any GCC internal prototype to avoid an error. |
| 16627 | Use char because int might match the return type of a GCC |
| 16628 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16629 | #ifdef __cplusplus |
| 16630 | extern "C" |
| 16631 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16632 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16633 | int |
| 16634 | main () |
| 16635 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16636 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16637 | ; |
| 16638 | return 0; |
| 16639 | } |
| 16640 | _ACEOF |
| 16641 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16642 | if { (ac_try="$ac_link" |
| 16643 | case "(($ac_try" in |
| 16644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16645 | *) ac_try_echo=$ac_try;; |
| 16646 | esac |
| 16647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16648 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16649 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16651 | rm -f conftest.er1 |
| 16652 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16654 | (exit $ac_status); } && |
| 16655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16656 | { (case "(($ac_try" in |
| 16657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16658 | *) ac_try_echo=$ac_try;; |
| 16659 | esac |
| 16660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16661 | (eval "$ac_try") 2>&5 |
| 16662 | ac_status=$? |
| 16663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16664 | (exit $ac_status); }; } && |
| 16665 | { ac_try='test -s conftest$ac_exeext' |
| 16666 | { (case "(($ac_try" in |
| 16667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16668 | *) ac_try_echo=$ac_try;; |
| 16669 | esac |
| 16670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16671 | (eval "$ac_try") 2>&5 |
| 16672 | ac_status=$? |
| 16673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16674 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16675 | ac_cv_lib_dl_dlopen=yes |
| 16676 | else |
| 16677 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16680 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16682 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16683 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16684 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16685 | LIBS=$ac_check_lib_save_LIBS |
| 16686 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16687 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16688 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16689 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16690 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16691 | else |
| 16692 | |
| 16693 | lt_cv_dlopen="dyld" |
| 16694 | lt_cv_dlopen_libs= |
| 16695 | lt_cv_dlopen_self=yes |
| 16696 | |
| 16697 | fi |
| 16698 | |
| 16699 | ;; |
| 16700 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16701 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16702 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16703 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16704 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16706 | else |
| 16707 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16708 | /* confdefs.h. */ |
| 16709 | _ACEOF |
| 16710 | cat confdefs.h >>conftest.$ac_ext |
| 16711 | cat >>conftest.$ac_ext <<_ACEOF |
| 16712 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16713 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16714 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16715 | #define shl_load innocuous_shl_load |
| 16716 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16717 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16718 | which can conflict with char shl_load (); below. |
| 16719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16720 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16721 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16722 | #ifdef __STDC__ |
| 16723 | # include <limits.h> |
| 16724 | #else |
| 16725 | # include <assert.h> |
| 16726 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16727 | |
| 16728 | #undef shl_load |
| 16729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16730 | /* Override any GCC internal prototype to avoid an error. |
| 16731 | Use char because int might match the return type of a GCC |
| 16732 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16733 | #ifdef __cplusplus |
| 16734 | extern "C" |
| 16735 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16736 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16737 | /* The GNU C library defines this for functions which it implements |
| 16738 | to always fail with ENOSYS. Some functions are actually named |
| 16739 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16740 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16741 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16742 | #endif |
| 16743 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16744 | int |
| 16745 | main () |
| 16746 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16747 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16748 | ; |
| 16749 | return 0; |
| 16750 | } |
| 16751 | _ACEOF |
| 16752 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16753 | if { (ac_try="$ac_link" |
| 16754 | case "(($ac_try" in |
| 16755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16756 | *) ac_try_echo=$ac_try;; |
| 16757 | esac |
| 16758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16759 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16760 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16762 | rm -f conftest.er1 |
| 16763 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16765 | (exit $ac_status); } && |
| 16766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16767 | { (case "(($ac_try" in |
| 16768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16769 | *) ac_try_echo=$ac_try;; |
| 16770 | esac |
| 16771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16772 | (eval "$ac_try") 2>&5 |
| 16773 | ac_status=$? |
| 16774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16775 | (exit $ac_status); }; } && |
| 16776 | { ac_try='test -s conftest$ac_exeext' |
| 16777 | { (case "(($ac_try" in |
| 16778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16779 | *) ac_try_echo=$ac_try;; |
| 16780 | esac |
| 16781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16782 | (eval "$ac_try") 2>&5 |
| 16783 | ac_status=$? |
| 16784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16785 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16786 | ac_cv_func_shl_load=yes |
| 16787 | else |
| 16788 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16790 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16791 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16792 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16793 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16794 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16795 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16797 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16798 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16799 | if test $ac_cv_func_shl_load = yes; then |
| 16800 | lt_cv_dlopen="shl_load" |
| 16801 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16802 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16803 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16804 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16806 | else |
| 16807 | ac_check_lib_save_LIBS=$LIBS |
| 16808 | LIBS="-ldld $LIBS" |
| 16809 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16810 | /* confdefs.h. */ |
| 16811 | _ACEOF |
| 16812 | cat confdefs.h >>conftest.$ac_ext |
| 16813 | cat >>conftest.$ac_ext <<_ACEOF |
| 16814 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16816 | /* Override any GCC internal prototype to avoid an error. |
| 16817 | Use char because int might match the return type of a GCC |
| 16818 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16819 | #ifdef __cplusplus |
| 16820 | extern "C" |
| 16821 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16822 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16823 | int |
| 16824 | main () |
| 16825 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16826 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16827 | ; |
| 16828 | return 0; |
| 16829 | } |
| 16830 | _ACEOF |
| 16831 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16832 | if { (ac_try="$ac_link" |
| 16833 | case "(($ac_try" in |
| 16834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16835 | *) ac_try_echo=$ac_try;; |
| 16836 | esac |
| 16837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16838 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16839 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16841 | rm -f conftest.er1 |
| 16842 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16844 | (exit $ac_status); } && |
| 16845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16846 | { (case "(($ac_try" in |
| 16847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16848 | *) ac_try_echo=$ac_try;; |
| 16849 | esac |
| 16850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16851 | (eval "$ac_try") 2>&5 |
| 16852 | ac_status=$? |
| 16853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16854 | (exit $ac_status); }; } && |
| 16855 | { ac_try='test -s conftest$ac_exeext' |
| 16856 | { (case "(($ac_try" in |
| 16857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16858 | *) ac_try_echo=$ac_try;; |
| 16859 | esac |
| 16860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16861 | (eval "$ac_try") 2>&5 |
| 16862 | ac_status=$? |
| 16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16864 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16865 | ac_cv_lib_dld_shl_load=yes |
| 16866 | else |
| 16867 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16870 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16871 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16872 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16873 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16874 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16875 | LIBS=$ac_check_lib_save_LIBS |
| 16876 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16877 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16878 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16879 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16880 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16881 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16882 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16883 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16884 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16886 | else |
| 16887 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16888 | /* confdefs.h. */ |
| 16889 | _ACEOF |
| 16890 | cat confdefs.h >>conftest.$ac_ext |
| 16891 | cat >>conftest.$ac_ext <<_ACEOF |
| 16892 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16893 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16894 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16895 | #define dlopen innocuous_dlopen |
| 16896 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16897 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16898 | which can conflict with char dlopen (); below. |
| 16899 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16900 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16901 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16902 | #ifdef __STDC__ |
| 16903 | # include <limits.h> |
| 16904 | #else |
| 16905 | # include <assert.h> |
| 16906 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16907 | |
| 16908 | #undef dlopen |
| 16909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16910 | /* Override any GCC internal prototype to avoid an error. |
| 16911 | Use char because int might match the return type of a GCC |
| 16912 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16913 | #ifdef __cplusplus |
| 16914 | extern "C" |
| 16915 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16916 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16917 | /* The GNU C library defines this for functions which it implements |
| 16918 | to always fail with ENOSYS. Some functions are actually named |
| 16919 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16920 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16921 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16922 | #endif |
| 16923 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16924 | int |
| 16925 | main () |
| 16926 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16927 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16928 | ; |
| 16929 | return 0; |
| 16930 | } |
| 16931 | _ACEOF |
| 16932 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16933 | if { (ac_try="$ac_link" |
| 16934 | case "(($ac_try" in |
| 16935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16936 | *) ac_try_echo=$ac_try;; |
| 16937 | esac |
| 16938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16939 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16940 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16942 | rm -f conftest.er1 |
| 16943 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16945 | (exit $ac_status); } && |
| 16946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16947 | { (case "(($ac_try" in |
| 16948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16949 | *) ac_try_echo=$ac_try;; |
| 16950 | esac |
| 16951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16952 | (eval "$ac_try") 2>&5 |
| 16953 | ac_status=$? |
| 16954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16955 | (exit $ac_status); }; } && |
| 16956 | { ac_try='test -s conftest$ac_exeext' |
| 16957 | { (case "(($ac_try" in |
| 16958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16959 | *) ac_try_echo=$ac_try;; |
| 16960 | esac |
| 16961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16962 | (eval "$ac_try") 2>&5 |
| 16963 | ac_status=$? |
| 16964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16965 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16966 | ac_cv_func_dlopen=yes |
| 16967 | else |
| 16968 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16970 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16971 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16972 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16973 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16974 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16975 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16976 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16977 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16978 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16979 | if test $ac_cv_func_dlopen = yes; then |
| 16980 | lt_cv_dlopen="dlopen" |
| 16981 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16982 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16983 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16984 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16986 | else |
| 16987 | ac_check_lib_save_LIBS=$LIBS |
| 16988 | LIBS="-ldl $LIBS" |
| 16989 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16990 | /* confdefs.h. */ |
| 16991 | _ACEOF |
| 16992 | cat confdefs.h >>conftest.$ac_ext |
| 16993 | cat >>conftest.$ac_ext <<_ACEOF |
| 16994 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16996 | /* Override any GCC internal prototype to avoid an error. |
| 16997 | Use char because int might match the return type of a GCC |
| 16998 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16999 | #ifdef __cplusplus |
| 17000 | extern "C" |
| 17001 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17002 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17003 | int |
| 17004 | main () |
| 17005 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17006 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17007 | ; |
| 17008 | return 0; |
| 17009 | } |
| 17010 | _ACEOF |
| 17011 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17012 | if { (ac_try="$ac_link" |
| 17013 | case "(($ac_try" in |
| 17014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17015 | *) ac_try_echo=$ac_try;; |
| 17016 | esac |
| 17017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17018 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17019 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17021 | rm -f conftest.er1 |
| 17022 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17024 | (exit $ac_status); } && |
| 17025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17026 | { (case "(($ac_try" in |
| 17027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17028 | *) ac_try_echo=$ac_try;; |
| 17029 | esac |
| 17030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17031 | (eval "$ac_try") 2>&5 |
| 17032 | ac_status=$? |
| 17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17034 | (exit $ac_status); }; } && |
| 17035 | { ac_try='test -s conftest$ac_exeext' |
| 17036 | { (case "(($ac_try" in |
| 17037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17038 | *) ac_try_echo=$ac_try;; |
| 17039 | esac |
| 17040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17041 | (eval "$ac_try") 2>&5 |
| 17042 | ac_status=$? |
| 17043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17044 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17045 | ac_cv_lib_dl_dlopen=yes |
| 17046 | else |
| 17047 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17049 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17050 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17051 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17052 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17053 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17054 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17055 | LIBS=$ac_check_lib_save_LIBS |
| 17056 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17057 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17058 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17059 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17060 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17061 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17062 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17063 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17064 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17066 | else |
| 17067 | ac_check_lib_save_LIBS=$LIBS |
| 17068 | LIBS="-lsvld $LIBS" |
| 17069 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17070 | /* confdefs.h. */ |
| 17071 | _ACEOF |
| 17072 | cat confdefs.h >>conftest.$ac_ext |
| 17073 | cat >>conftest.$ac_ext <<_ACEOF |
| 17074 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17076 | /* Override any GCC internal prototype to avoid an error. |
| 17077 | Use char because int might match the return type of a GCC |
| 17078 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17079 | #ifdef __cplusplus |
| 17080 | extern "C" |
| 17081 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17082 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17083 | int |
| 17084 | main () |
| 17085 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17086 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17087 | ; |
| 17088 | return 0; |
| 17089 | } |
| 17090 | _ACEOF |
| 17091 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17092 | if { (ac_try="$ac_link" |
| 17093 | case "(($ac_try" in |
| 17094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17095 | *) ac_try_echo=$ac_try;; |
| 17096 | esac |
| 17097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17098 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17099 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17101 | rm -f conftest.er1 |
| 17102 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17104 | (exit $ac_status); } && |
| 17105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17106 | { (case "(($ac_try" in |
| 17107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17108 | *) ac_try_echo=$ac_try;; |
| 17109 | esac |
| 17110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17111 | (eval "$ac_try") 2>&5 |
| 17112 | ac_status=$? |
| 17113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17114 | (exit $ac_status); }; } && |
| 17115 | { ac_try='test -s conftest$ac_exeext' |
| 17116 | { (case "(($ac_try" in |
| 17117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17118 | *) ac_try_echo=$ac_try;; |
| 17119 | esac |
| 17120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17121 | (eval "$ac_try") 2>&5 |
| 17122 | ac_status=$? |
| 17123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17124 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17125 | ac_cv_lib_svld_dlopen=yes |
| 17126 | else |
| 17127 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17130 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17131 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17132 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17133 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17134 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17135 | LIBS=$ac_check_lib_save_LIBS |
| 17136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17137 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17138 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17139 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17140 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17141 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17142 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17143 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17144 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17146 | else |
| 17147 | ac_check_lib_save_LIBS=$LIBS |
| 17148 | LIBS="-ldld $LIBS" |
| 17149 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17150 | /* confdefs.h. */ |
| 17151 | _ACEOF |
| 17152 | cat confdefs.h >>conftest.$ac_ext |
| 17153 | cat >>conftest.$ac_ext <<_ACEOF |
| 17154 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17155 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17156 | /* Override any GCC internal prototype to avoid an error. |
| 17157 | Use char because int might match the return type of a GCC |
| 17158 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17159 | #ifdef __cplusplus |
| 17160 | extern "C" |
| 17161 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17162 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17163 | int |
| 17164 | main () |
| 17165 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17166 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17167 | ; |
| 17168 | return 0; |
| 17169 | } |
| 17170 | _ACEOF |
| 17171 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17172 | if { (ac_try="$ac_link" |
| 17173 | case "(($ac_try" in |
| 17174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17175 | *) ac_try_echo=$ac_try;; |
| 17176 | esac |
| 17177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17178 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17179 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17181 | rm -f conftest.er1 |
| 17182 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17184 | (exit $ac_status); } && |
| 17185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17186 | { (case "(($ac_try" in |
| 17187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17188 | *) ac_try_echo=$ac_try;; |
| 17189 | esac |
| 17190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17191 | (eval "$ac_try") 2>&5 |
| 17192 | ac_status=$? |
| 17193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17194 | (exit $ac_status); }; } && |
| 17195 | { ac_try='test -s conftest$ac_exeext' |
| 17196 | { (case "(($ac_try" in |
| 17197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17198 | *) ac_try_echo=$ac_try;; |
| 17199 | esac |
| 17200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17201 | (eval "$ac_try") 2>&5 |
| 17202 | ac_status=$? |
| 17203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17204 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17205 | ac_cv_lib_dld_dld_link=yes |
| 17206 | else |
| 17207 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17210 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17211 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17212 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17213 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17214 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17215 | LIBS=$ac_check_lib_save_LIBS |
| 17216 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17217 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17218 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17219 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17220 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17221 | fi |
| 17222 | |
| 17223 | |
| 17224 | fi |
| 17225 | |
| 17226 | |
| 17227 | fi |
| 17228 | |
| 17229 | |
| 17230 | fi |
| 17231 | |
| 17232 | |
| 17233 | fi |
| 17234 | |
| 17235 | |
| 17236 | fi |
| 17237 | |
| 17238 | ;; |
| 17239 | esac |
| 17240 | |
| 17241 | if test "x$lt_cv_dlopen" != xno; then |
| 17242 | enable_dlopen=yes |
| 17243 | else |
| 17244 | enable_dlopen=no |
| 17245 | fi |
| 17246 | |
| 17247 | case $lt_cv_dlopen in |
| 17248 | dlopen) |
| 17249 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17250 | 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] | 17251 | |
| 17252 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17253 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17254 | |
| 17255 | save_LIBS="$LIBS" |
| 17256 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17258 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17259 | 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] | 17260 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17262 | else |
| 17263 | if test "$cross_compiling" = yes; then : |
| 17264 | lt_cv_dlopen_self=cross |
| 17265 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17266 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17267 | lt_status=$lt_dlunknown |
| 17268 | cat > conftest.$ac_ext <<EOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17269 | #line 17269 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17270 | #include "confdefs.h" |
| 17271 | |
| 17272 | #if HAVE_DLFCN_H |
| 17273 | #include <dlfcn.h> |
| 17274 | #endif |
| 17275 | |
| 17276 | #include <stdio.h> |
| 17277 | |
| 17278 | #ifdef RTLD_GLOBAL |
| 17279 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17280 | #else |
| 17281 | # ifdef DL_GLOBAL |
| 17282 | # define LT_DLGLOBAL DL_GLOBAL |
| 17283 | # else |
| 17284 | # define LT_DLGLOBAL 0 |
| 17285 | # endif |
| 17286 | #endif |
| 17287 | |
| 17288 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17289 | find out it does not work in some platform. */ |
| 17290 | #ifndef LT_DLLAZY_OR_NOW |
| 17291 | # ifdef RTLD_LAZY |
| 17292 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17293 | # else |
| 17294 | # ifdef DL_LAZY |
| 17295 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17296 | # else |
| 17297 | # ifdef RTLD_NOW |
| 17298 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17299 | # else |
| 17300 | # ifdef DL_NOW |
| 17301 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17302 | # else |
| 17303 | # define LT_DLLAZY_OR_NOW 0 |
| 17304 | # endif |
| 17305 | # endif |
| 17306 | # endif |
| 17307 | # endif |
| 17308 | #endif |
| 17309 | |
| 17310 | #ifdef __cplusplus |
| 17311 | extern "C" void exit (int); |
| 17312 | #endif |
| 17313 | |
| 17314 | void fnord() { int i=42;} |
| 17315 | int main () |
| 17316 | { |
| 17317 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17318 | int status = $lt_dlunknown; |
| 17319 | |
| 17320 | if (self) |
| 17321 | { |
| 17322 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17323 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17324 | /* dlclose (self); */ |
| 17325 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17326 | else |
| 17327 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17328 | |
| 17329 | exit (status); |
| 17330 | } |
| 17331 | EOF |
| 17332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17333 | (eval $ac_link) 2>&5 |
| 17334 | ac_status=$? |
| 17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17336 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17337 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17338 | lt_status=$? |
| 17339 | case x$lt_status in |
| 17340 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17341 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17342 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17343 | esac |
| 17344 | else : |
| 17345 | # compilation failed |
| 17346 | lt_cv_dlopen_self=no |
| 17347 | fi |
| 17348 | fi |
| 17349 | rm -fr conftest* |
| 17350 | |
| 17351 | |
| 17352 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17353 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17354 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17355 | |
| 17356 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17357 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17358 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17359 | 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] | 17360 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17362 | else |
| 17363 | if test "$cross_compiling" = yes; then : |
| 17364 | lt_cv_dlopen_self_static=cross |
| 17365 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17366 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17367 | lt_status=$lt_dlunknown |
| 17368 | cat > conftest.$ac_ext <<EOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17369 | #line 17369 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17370 | #include "confdefs.h" |
| 17371 | |
| 17372 | #if HAVE_DLFCN_H |
| 17373 | #include <dlfcn.h> |
| 17374 | #endif |
| 17375 | |
| 17376 | #include <stdio.h> |
| 17377 | |
| 17378 | #ifdef RTLD_GLOBAL |
| 17379 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17380 | #else |
| 17381 | # ifdef DL_GLOBAL |
| 17382 | # define LT_DLGLOBAL DL_GLOBAL |
| 17383 | # else |
| 17384 | # define LT_DLGLOBAL 0 |
| 17385 | # endif |
| 17386 | #endif |
| 17387 | |
| 17388 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17389 | find out it does not work in some platform. */ |
| 17390 | #ifndef LT_DLLAZY_OR_NOW |
| 17391 | # ifdef RTLD_LAZY |
| 17392 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17393 | # else |
| 17394 | # ifdef DL_LAZY |
| 17395 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17396 | # else |
| 17397 | # ifdef RTLD_NOW |
| 17398 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17399 | # else |
| 17400 | # ifdef DL_NOW |
| 17401 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17402 | # else |
| 17403 | # define LT_DLLAZY_OR_NOW 0 |
| 17404 | # endif |
| 17405 | # endif |
| 17406 | # endif |
| 17407 | # endif |
| 17408 | #endif |
| 17409 | |
| 17410 | #ifdef __cplusplus |
| 17411 | extern "C" void exit (int); |
| 17412 | #endif |
| 17413 | |
| 17414 | void fnord() { int i=42;} |
| 17415 | int main () |
| 17416 | { |
| 17417 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17418 | int status = $lt_dlunknown; |
| 17419 | |
| 17420 | if (self) |
| 17421 | { |
| 17422 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17423 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17424 | /* dlclose (self); */ |
| 17425 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17426 | else |
| 17427 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17428 | |
| 17429 | exit (status); |
| 17430 | } |
| 17431 | EOF |
| 17432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17433 | (eval $ac_link) 2>&5 |
| 17434 | ac_status=$? |
| 17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17436 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17437 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17438 | lt_status=$? |
| 17439 | case x$lt_status in |
| 17440 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17441 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17442 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17443 | esac |
| 17444 | else : |
| 17445 | # compilation failed |
| 17446 | lt_cv_dlopen_self_static=no |
| 17447 | fi |
| 17448 | fi |
| 17449 | rm -fr conftest* |
| 17450 | |
| 17451 | |
| 17452 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17453 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17454 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17455 | fi |
| 17456 | |
| 17457 | CPPFLAGS="$save_CPPFLAGS" |
| 17458 | LDFLAGS="$save_LDFLAGS" |
| 17459 | LIBS="$save_LIBS" |
| 17460 | ;; |
| 17461 | esac |
| 17462 | |
| 17463 | case $lt_cv_dlopen_self in |
| 17464 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17465 | *) enable_dlopen_self=unknown ;; |
| 17466 | esac |
| 17467 | |
| 17468 | case $lt_cv_dlopen_self_static in |
| 17469 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17470 | *) enable_dlopen_self_static=unknown ;; |
| 17471 | esac |
| 17472 | fi |
| 17473 | |
| 17474 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17475 | # Report which library types will actually be built |
| 17476 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17477 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17478 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17479 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17481 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17482 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17483 | test "$can_build_shared" = "no" && enable_shared=no |
| 17484 | |
| 17485 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17486 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17487 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17488 | aix3*) |
| 17489 | test "$enable_shared" = yes && enable_static=no |
| 17490 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17491 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17492 | postinstall_cmds='$RANLIB $lib' |
| 17493 | fi |
| 17494 | ;; |
| 17495 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17496 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17497 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17498 | test "$enable_shared" = yes && enable_static=no |
| 17499 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17500 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17501 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17502 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17503 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17505 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17506 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17507 | # Make sure either enable_shared or enable_static is yes. |
| 17508 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17509 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17510 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17511 | |
| 17512 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17513 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17514 | # with your package, and you will get complaints that there are |
| 17515 | # no rules to generate ltmain.sh. |
| 17516 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17517 | # See if we are running on zsh, and set the options which allow our commands through |
| 17518 | # without removal of \ escapes. |
| 17519 | if test -n "${ZSH_VERSION+set}" ; then |
| 17520 | setopt NO_GLOB_SUBST |
| 17521 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17522 | # Now quote all the things that may contain metacharacters while being |
| 17523 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17524 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17525 | 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] | 17526 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17527 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17528 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17529 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17530 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17531 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17532 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17533 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17534 | compiler \ |
| 17535 | CC \ |
| 17536 | LD \ |
| 17537 | lt_prog_compiler_wl \ |
| 17538 | lt_prog_compiler_pic \ |
| 17539 | lt_prog_compiler_static \ |
| 17540 | lt_prog_compiler_no_builtin_flag \ |
| 17541 | export_dynamic_flag_spec \ |
| 17542 | thread_safe_flag_spec \ |
| 17543 | whole_archive_flag_spec \ |
| 17544 | enable_shared_with_static_runtimes \ |
| 17545 | old_archive_cmds \ |
| 17546 | old_archive_from_new_cmds \ |
| 17547 | predep_objects \ |
| 17548 | postdep_objects \ |
| 17549 | predeps \ |
| 17550 | postdeps \ |
| 17551 | compiler_lib_search_path \ |
| 17552 | archive_cmds \ |
| 17553 | archive_expsym_cmds \ |
| 17554 | postinstall_cmds \ |
| 17555 | postuninstall_cmds \ |
| 17556 | old_archive_from_expsyms_cmds \ |
| 17557 | allow_undefined_flag \ |
| 17558 | no_undefined_flag \ |
| 17559 | export_symbols_cmds \ |
| 17560 | hardcode_libdir_flag_spec \ |
| 17561 | hardcode_libdir_flag_spec_ld \ |
| 17562 | hardcode_libdir_separator \ |
| 17563 | hardcode_automatic \ |
| 17564 | module_cmds \ |
| 17565 | module_expsym_cmds \ |
| 17566 | lt_cv_prog_compiler_c_o \ |
| 17567 | exclude_expsyms \ |
| 17568 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17569 | |
| 17570 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17571 | old_archive_cmds | \ |
| 17572 | old_archive_from_new_cmds | \ |
| 17573 | archive_cmds | \ |
| 17574 | archive_expsym_cmds | \ |
| 17575 | module_cmds | \ |
| 17576 | module_expsym_cmds | \ |
| 17577 | old_archive_from_expsyms_cmds | \ |
| 17578 | export_symbols_cmds | \ |
| 17579 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17580 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17581 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17582 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17583 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17584 | 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] | 17585 | ;; |
| 17586 | *) |
| 17587 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17588 | ;; |
| 17589 | esac |
| 17590 | done |
| 17591 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17592 | case $lt_echo in |
| 17593 | *'\$0 --fallback-echo"') |
| 17594 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17595 | ;; |
| 17596 | esac |
| 17597 | |
| 17598 | cfgfile="${ofile}T" |
| 17599 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17600 | $rm -f "$cfgfile" |
| 17601 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17602 | echo "$as_me: creating $ofile" >&6;} |
| 17603 | |
| 17604 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17605 | #! $SHELL |
| 17606 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17607 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17608 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17609 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17610 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17611 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17612 | # Free Software Foundation, Inc. |
| 17613 | # |
| 17614 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17615 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17616 | # |
| 17617 | # This program is free software; you can redistribute it and/or modify |
| 17618 | # it under the terms of the GNU General Public License as published by |
| 17619 | # the Free Software Foundation; either version 2 of the License, or |
| 17620 | # (at your option) any later version. |
| 17621 | # |
| 17622 | # This program is distributed in the hope that it will be useful, but |
| 17623 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17624 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17625 | # General Public License for more details. |
| 17626 | # |
| 17627 | # You should have received a copy of the GNU General Public License |
| 17628 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17629 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17630 | # |
| 17631 | # As a special exception to the GNU General Public License, if you |
| 17632 | # distribute this file as part of a program that contains a |
| 17633 | # configuration script generated by Autoconf, you may include it under |
| 17634 | # the same distribution terms that you use for the rest of that program. |
| 17635 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17636 | # A sed program that does not truncate output. |
| 17637 | SED=$lt_SED |
| 17638 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17639 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17640 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17641 | |
| 17642 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17643 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17644 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17645 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17646 | # The names of the tagged configurations supported by this script. |
| 17647 | available_tags= |
| 17648 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17649 | # ### BEGIN LIBTOOL CONFIG |
| 17650 | |
| 17651 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17652 | |
| 17653 | # Shell to use when invoking shell scripts. |
| 17654 | SHELL=$lt_SHELL |
| 17655 | |
| 17656 | # Whether or not to build shared libraries. |
| 17657 | build_libtool_libs=$enable_shared |
| 17658 | |
| 17659 | # Whether or not to build static libraries. |
| 17660 | build_old_libs=$enable_static |
| 17661 | |
| 17662 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17663 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17664 | |
| 17665 | # Whether or not to disallow shared libs when runtime libs are static |
| 17666 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17667 | |
| 17668 | # Whether or not to optimize for fast installation. |
| 17669 | fast_install=$enable_fast_install |
| 17670 | |
| 17671 | # The host system. |
| 17672 | host_alias=$host_alias |
| 17673 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17674 | host_os=$host_os |
| 17675 | |
| 17676 | # The build system. |
| 17677 | build_alias=$build_alias |
| 17678 | build=$build |
| 17679 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17680 | |
| 17681 | # An echo program that does not interpret backslashes. |
| 17682 | echo=$lt_echo |
| 17683 | |
| 17684 | # The archiver. |
| 17685 | AR=$lt_AR |
| 17686 | AR_FLAGS=$lt_AR_FLAGS |
| 17687 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17688 | # A C compiler. |
| 17689 | LTCC=$lt_LTCC |
| 17690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17691 | # LTCC compiler flags. |
| 17692 | LTCFLAGS=$lt_LTCFLAGS |
| 17693 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17694 | # A language-specific compiler. |
| 17695 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17696 | |
| 17697 | # Is the compiler the GNU C compiler? |
| 17698 | with_gcc=$GCC |
| 17699 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17700 | # An ERE matcher. |
| 17701 | EGREP=$lt_EGREP |
| 17702 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17703 | # The linker used to build libraries. |
| 17704 | LD=$lt_LD |
| 17705 | |
| 17706 | # Whether we need hard or soft links. |
| 17707 | LN_S=$lt_LN_S |
| 17708 | |
| 17709 | # A BSD-compatible nm program. |
| 17710 | NM=$lt_NM |
| 17711 | |
| 17712 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17713 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17714 | |
| 17715 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17716 | MAGIC_CMD=$MAGIC_CMD |
| 17717 | |
| 17718 | # Used on cygwin: DLL creation program. |
| 17719 | DLLTOOL="$DLLTOOL" |
| 17720 | |
| 17721 | # Used on cygwin: object dumper. |
| 17722 | OBJDUMP="$OBJDUMP" |
| 17723 | |
| 17724 | # Used on cygwin: assembler. |
| 17725 | AS="$AS" |
| 17726 | |
| 17727 | # The name of the directory that contains temporary libtool files. |
| 17728 | objdir=$objdir |
| 17729 | |
| 17730 | # How to create reloadable object files. |
| 17731 | reload_flag=$lt_reload_flag |
| 17732 | reload_cmds=$lt_reload_cmds |
| 17733 | |
| 17734 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17735 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17736 | |
| 17737 | # Object file suffix (normally "o"). |
| 17738 | objext="$ac_objext" |
| 17739 | |
| 17740 | # Old archive suffix (normally "a"). |
| 17741 | libext="$libext" |
| 17742 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17743 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17744 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17745 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17746 | # Executable file suffix (normally ""). |
| 17747 | exeext="$exeext" |
| 17748 | |
| 17749 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17750 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17751 | pic_mode=$pic_mode |
| 17752 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17753 | # What is the maximum length of a command? |
| 17754 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17755 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17756 | # Does compiler simultaneously support -c and -o options? |
| 17757 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17759 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17760 | need_locks=$lt_need_locks |
| 17761 | |
| 17762 | # Do we need the lib prefix for modules? |
| 17763 | need_lib_prefix=$need_lib_prefix |
| 17764 | |
| 17765 | # Do we need a version for libraries? |
| 17766 | need_version=$need_version |
| 17767 | |
| 17768 | # Whether dlopen is supported. |
| 17769 | dlopen_support=$enable_dlopen |
| 17770 | |
| 17771 | # Whether dlopen of programs is supported. |
| 17772 | dlopen_self=$enable_dlopen_self |
| 17773 | |
| 17774 | # Whether dlopen of statically linked programs is supported. |
| 17775 | dlopen_self_static=$enable_dlopen_self_static |
| 17776 | |
| 17777 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17778 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17779 | |
| 17780 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17781 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17782 | |
| 17783 | # Compiler flag to allow reflexive dlopens. |
| 17784 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17785 | |
| 17786 | # Compiler flag to generate shared objects directly from archives. |
| 17787 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17788 | |
| 17789 | # Compiler flag to generate thread-safe objects. |
| 17790 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 17791 | |
| 17792 | # Library versioning type. |
| 17793 | version_type=$version_type |
| 17794 | |
| 17795 | # Format of library name prefix. |
| 17796 | libname_spec=$lt_libname_spec |
| 17797 | |
| 17798 | # List of archive names. First name is the real one, the rest are links. |
| 17799 | # The last name is the one that the linker finds with -lNAME. |
| 17800 | library_names_spec=$lt_library_names_spec |
| 17801 | |
| 17802 | # The coded name of the library, if different from the real name. |
| 17803 | soname_spec=$lt_soname_spec |
| 17804 | |
| 17805 | # Commands used to build and install an old-style archive. |
| 17806 | RANLIB=$lt_RANLIB |
| 17807 | old_archive_cmds=$lt_old_archive_cmds |
| 17808 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17809 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17810 | |
| 17811 | # Create an old-style archive from a shared archive. |
| 17812 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17813 | |
| 17814 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17815 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17816 | |
| 17817 | # Commands used to build and install a shared archive. |
| 17818 | archive_cmds=$lt_archive_cmds |
| 17819 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17820 | postinstall_cmds=$lt_postinstall_cmds |
| 17821 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17822 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17823 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17824 | module_cmds=$lt_module_cmds |
| 17825 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17826 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17827 | # Commands to strip libraries. |
| 17828 | old_striplib=$lt_old_striplib |
| 17829 | striplib=$lt_striplib |
| 17830 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17831 | # Dependencies to place before the objects being linked to create a |
| 17832 | # shared library. |
| 17833 | predep_objects=$lt_predep_objects |
| 17834 | |
| 17835 | # Dependencies to place after the objects being linked to create a |
| 17836 | # shared library. |
| 17837 | postdep_objects=$lt_postdep_objects |
| 17838 | |
| 17839 | # Dependencies to place before the objects being linked to create a |
| 17840 | # shared library. |
| 17841 | predeps=$lt_predeps |
| 17842 | |
| 17843 | # Dependencies to place after the objects being linked to create a |
| 17844 | # shared library. |
| 17845 | postdeps=$lt_postdeps |
| 17846 | |
| 17847 | # The library search path used internally by the compiler when linking |
| 17848 | # a shared library. |
| 17849 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17850 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17851 | # Method to check whether dependent libraries are shared objects. |
| 17852 | deplibs_check_method=$lt_deplibs_check_method |
| 17853 | |
| 17854 | # Command to use when deplibs_check_method == file_magic. |
| 17855 | file_magic_cmd=$lt_file_magic_cmd |
| 17856 | |
| 17857 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17858 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17859 | |
| 17860 | # Flag that forces no undefined symbols. |
| 17861 | no_undefined_flag=$lt_no_undefined_flag |
| 17862 | |
| 17863 | # Commands used to finish a libtool library installation in a directory. |
| 17864 | finish_cmds=$lt_finish_cmds |
| 17865 | |
| 17866 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17867 | finish_eval=$lt_finish_eval |
| 17868 | |
| 17869 | # 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] | 17870 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17871 | |
| 17872 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17873 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17874 | |
| 17875 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17876 | 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] | 17877 | |
| 17878 | # This is the shared library runtime path variable. |
| 17879 | runpath_var=$runpath_var |
| 17880 | |
| 17881 | # This is the shared library path variable. |
| 17882 | shlibpath_var=$shlibpath_var |
| 17883 | |
| 17884 | # Is shlibpath searched before the hard-coded library search path? |
| 17885 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17886 | |
| 17887 | # How to hardcode a shared library path into an executable. |
| 17888 | hardcode_action=$hardcode_action |
| 17889 | |
| 17890 | # Whether we should hardcode library paths into libraries. |
| 17891 | hardcode_into_libs=$hardcode_into_libs |
| 17892 | |
| 17893 | # Flag to hardcode \$libdir into a binary during linking. |
| 17894 | # This must work even if \$libdir does not exist. |
| 17895 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17896 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17897 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17898 | # a binary during linking. This must work even if \$libdir does |
| 17899 | # not exist. |
| 17900 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17901 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17902 | # Whether we need a single -rpath flag with a separated argument. |
| 17903 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17904 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17905 | # 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] | 17906 | # resulting binary. |
| 17907 | hardcode_direct=$hardcode_direct |
| 17908 | |
| 17909 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17910 | # resulting binary. |
| 17911 | hardcode_minus_L=$hardcode_minus_L |
| 17912 | |
| 17913 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17914 | # the resulting binary. |
| 17915 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17916 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17917 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17918 | # and all subsequent libraries and executables linked against it. |
| 17919 | hardcode_automatic=$hardcode_automatic |
| 17920 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17921 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17922 | # restored at relink time. |
| 17923 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17924 | |
| 17925 | # Whether libtool must link a program against all its dependency libraries. |
| 17926 | link_all_deplibs=$link_all_deplibs |
| 17927 | |
| 17928 | # Compile-time system search path for libraries |
| 17929 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17930 | |
| 17931 | # Run-time system search path for libraries |
| 17932 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17933 | |
| 17934 | # Fix the shell variable \$srcfile for the compiler. |
| 17935 | fix_srcfile_path="$fix_srcfile_path" |
| 17936 | |
| 17937 | # Set to yes if exported symbols are required. |
| 17938 | always_export_symbols=$always_export_symbols |
| 17939 | |
| 17940 | # The commands to list exported symbols. |
| 17941 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17942 | |
| 17943 | # The commands to extract the exported symbol list from a shared archive. |
| 17944 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17945 | |
| 17946 | # Symbols that should not be listed in the preloaded symbols. |
| 17947 | exclude_expsyms=$lt_exclude_expsyms |
| 17948 | |
| 17949 | # Symbols that must always be exported. |
| 17950 | include_expsyms=$lt_include_expsyms |
| 17951 | |
| 17952 | # ### END LIBTOOL CONFIG |
| 17953 | |
| 17954 | __EOF__ |
| 17955 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17956 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17957 | case $host_os in |
| 17958 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17959 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17960 | |
| 17961 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17962 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17963 | # vanish in a puff of smoke. |
| 17964 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17965 | COLLECT_NAMES= |
| 17966 | export COLLECT_NAMES |
| 17967 | fi |
| 17968 | EOF |
| 17969 | ;; |
| 17970 | esac |
| 17971 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17972 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17973 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17974 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17975 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17976 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17977 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17978 | mv -f "$cfgfile" "$ofile" || \ |
| 17979 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17980 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17981 | |
| 17982 | else |
| 17983 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17984 | # `config.status --recheck' to rerun these tests and create the |
| 17985 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17986 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17987 | if test -f "$ltmain_in"; then |
| 17988 | test -f Makefile && make "$ltmain" |
| 17989 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17990 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17991 | |
| 17992 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17993 | ac_ext=c |
| 17994 | ac_cpp='$CPP $CPPFLAGS' |
| 17995 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17996 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17997 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17998 | |
| 17999 | CC="$lt_save_CC" |
| 18000 | |
| 18001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18002 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18003 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18004 | withval=$with_tags; tagnames="$withval" |
| 18005 | fi |
| 18006 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18007 | |
| 18008 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 18009 | if test ! -f "${ofile}"; then |
| 18010 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 18011 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 18012 | fi |
| 18013 | |
| 18014 | if test -z "$LTCC"; then |
| 18015 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 18016 | if test -z "$LTCC"; then |
| 18017 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 18018 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 18019 | else |
| 18020 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 18021 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 18022 | fi |
| 18023 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18024 | if test -z "$LTCFLAGS"; then |
| 18025 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 18026 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18027 | |
| 18028 | # Extract list of available tagged configurations in $ofile. |
| 18029 | # Note that this assumes the entire list is on one line. |
| 18030 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 18031 | |
| 18032 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 18033 | for tagname in $tagnames; do |
| 18034 | IFS="$lt_save_ifs" |
| 18035 | # Check whether tagname contains only valid characters |
| 18036 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18037 | "") ;; |
| 18038 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18039 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18040 | { (exit 1); exit 1; }; } |
| 18041 | ;; |
| 18042 | esac |
| 18043 | |
| 18044 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18045 | then |
| 18046 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18047 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18048 | { (exit 1); exit 1; }; } |
| 18049 | fi |
| 18050 | |
| 18051 | # Update the list of available tags. |
| 18052 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18053 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18054 | |
| 18055 | case $tagname in |
| 18056 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18057 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18058 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18059 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18060 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18061 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18062 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18063 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18064 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18065 | |
| 18066 | |
| 18067 | |
| 18068 | |
| 18069 | archive_cmds_need_lc_CXX=no |
| 18070 | allow_undefined_flag_CXX= |
| 18071 | always_export_symbols_CXX=no |
| 18072 | archive_expsym_cmds_CXX= |
| 18073 | export_dynamic_flag_spec_CXX= |
| 18074 | hardcode_direct_CXX=no |
| 18075 | hardcode_libdir_flag_spec_CXX= |
| 18076 | hardcode_libdir_flag_spec_ld_CXX= |
| 18077 | hardcode_libdir_separator_CXX= |
| 18078 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18079 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18080 | hardcode_automatic_CXX=no |
| 18081 | module_cmds_CXX= |
| 18082 | module_expsym_cmds_CXX= |
| 18083 | link_all_deplibs_CXX=unknown |
| 18084 | old_archive_cmds_CXX=$old_archive_cmds |
| 18085 | no_undefined_flag_CXX= |
| 18086 | whole_archive_flag_spec_CXX= |
| 18087 | enable_shared_with_static_runtimes_CXX=no |
| 18088 | |
| 18089 | # Dependencies to place before and after the object being linked: |
| 18090 | predep_objects_CXX= |
| 18091 | postdep_objects_CXX= |
| 18092 | predeps_CXX= |
| 18093 | postdeps_CXX= |
| 18094 | compiler_lib_search_path_CXX= |
| 18095 | |
| 18096 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18097 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18098 | |
| 18099 | # Object file extension for compiled C++ test sources. |
| 18100 | objext=o |
| 18101 | objext_CXX=$objext |
| 18102 | |
| 18103 | # Code to be used in simple compile tests |
| 18104 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18105 | |
| 18106 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18107 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18108 | |
| 18109 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18110 | |
| 18111 | # If no C compiler was specified, use CC. |
| 18112 | LTCC=${LTCC-"$CC"} |
| 18113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18114 | # If no C compiler flags were specified, use CFLAGS. |
| 18115 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18116 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18117 | # Allow CC to be a program name with arguments. |
| 18118 | compiler=$CC |
| 18119 | |
| 18120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18121 | # save warnings/boilerplate of simple test code |
| 18122 | ac_outfile=conftest.$ac_objext |
| 18123 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18124 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18125 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18126 | $rm conftest* |
| 18127 | |
| 18128 | ac_outfile=conftest.$ac_objext |
| 18129 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18130 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18131 | _lt_linker_boilerplate=`cat conftest.err` |
| 18132 | $rm conftest* |
| 18133 | |
| 18134 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18135 | # Allow CC to be a program name with arguments. |
| 18136 | lt_save_CC=$CC |
| 18137 | lt_save_LD=$LD |
| 18138 | lt_save_GCC=$GCC |
| 18139 | GCC=$GXX |
| 18140 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18141 | lt_save_path_LD=$lt_cv_path_LD |
| 18142 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18143 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18144 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18145 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18146 | fi |
| 18147 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18148 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18149 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18150 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18151 | fi |
| 18152 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18153 | CC=${CXX-"c++"} |
| 18154 | compiler=$CC |
| 18155 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18156 | for cc_temp in $compiler""; do |
| 18157 | case $cc_temp in |
| 18158 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18159 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18160 | \-*) ;; |
| 18161 | *) break;; |
| 18162 | esac |
| 18163 | done |
| 18164 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18165 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18166 | |
| 18167 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18168 | # no_builtin_flag separately |
| 18169 | if test "$GXX" = yes; then |
| 18170 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18171 | else |
| 18172 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18173 | fi |
| 18174 | |
| 18175 | if test "$GXX" = yes; then |
| 18176 | # Set up default GNU C++ configuration |
| 18177 | |
| 18178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18179 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18180 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18181 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18182 | else |
| 18183 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18184 | fi |
| 18185 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18186 | ac_prog=ld |
| 18187 | if test "$GCC" = yes; then |
| 18188 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18189 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18190 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18191 | case $host in |
| 18192 | *-*-mingw*) |
| 18193 | # gcc leaves a trailing carriage return which upsets mingw |
| 18194 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18195 | *) |
| 18196 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18197 | esac |
| 18198 | case $ac_prog in |
| 18199 | # Accept absolute paths. |
| 18200 | [\\/]* | ?:[\\/]*) |
| 18201 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18202 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18203 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18204 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18205 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18206 | done |
| 18207 | test -z "$LD" && LD="$ac_prog" |
| 18208 | ;; |
| 18209 | "") |
| 18210 | # If it fails, then pretend we aren't using GCC. |
| 18211 | ac_prog=ld |
| 18212 | ;; |
| 18213 | *) |
| 18214 | # If it is relative, then search for the first ld in PATH. |
| 18215 | with_gnu_ld=unknown |
| 18216 | ;; |
| 18217 | esac |
| 18218 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18219 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18220 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18221 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18222 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18223 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18224 | fi |
| 18225 | if test "${lt_cv_path_LD+set}" = set; then |
| 18226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18227 | else |
| 18228 | if test -z "$LD"; then |
| 18229 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18230 | for ac_dir in $PATH; do |
| 18231 | IFS="$lt_save_ifs" |
| 18232 | test -z "$ac_dir" && ac_dir=. |
| 18233 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18234 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18235 | # 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] | 18236 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18237 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18238 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18239 | *GNU* | *'with BFD'*) |
| 18240 | test "$with_gnu_ld" != no && break |
| 18241 | ;; |
| 18242 | *) |
| 18243 | test "$with_gnu_ld" != yes && break |
| 18244 | ;; |
| 18245 | esac |
| 18246 | fi |
| 18247 | done |
| 18248 | IFS="$lt_save_ifs" |
| 18249 | else |
| 18250 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18251 | fi |
| 18252 | fi |
| 18253 | |
| 18254 | LD="$lt_cv_path_LD" |
| 18255 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18256 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18257 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18258 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18259 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18260 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18261 | fi |
| 18262 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18263 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18264 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18265 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18266 | 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] | 18267 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18269 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18270 | # 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] | 18271 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18272 | *GNU* | *'with BFD'*) |
| 18273 | lt_cv_prog_gnu_ld=yes |
| 18274 | ;; |
| 18275 | *) |
| 18276 | lt_cv_prog_gnu_ld=no |
| 18277 | ;; |
| 18278 | esac |
| 18279 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18280 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18281 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18282 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18283 | |
| 18284 | |
| 18285 | |
| 18286 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18287 | # archiving commands below assume that GNU ld is being used. |
| 18288 | if test "$with_gnu_ld" = yes; then |
| 18289 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18290 | 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' |
| 18291 | |
| 18292 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18293 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18294 | |
| 18295 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18296 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18297 | # investigate it a little bit more. (MM) |
| 18298 | wlarc='${wl}' |
| 18299 | |
| 18300 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18301 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18302 | grep 'no-whole-archive' > /dev/null; then |
| 18303 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18304 | else |
| 18305 | whole_archive_flag_spec_CXX= |
| 18306 | fi |
| 18307 | else |
| 18308 | with_gnu_ld=no |
| 18309 | wlarc= |
| 18310 | |
| 18311 | # A generic and very simple default shared library creation |
| 18312 | # command for GNU C++ for the case where it uses the native |
| 18313 | # linker, instead of GNU ld. If possible, this setting should |
| 18314 | # overridden to take advantage of the native linker features on |
| 18315 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18316 | 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] | 18317 | fi |
| 18318 | |
| 18319 | # Commands to make compiler produce verbose output that lists |
| 18320 | # what "hidden" libraries, object files and flags are used when |
| 18321 | # linking a shared library. |
| 18322 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18323 | |
| 18324 | else |
| 18325 | GXX=no |
| 18326 | with_gnu_ld=no |
| 18327 | wlarc= |
| 18328 | fi |
| 18329 | |
| 18330 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18331 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18332 | 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] | 18333 | ld_shlibs_CXX=yes |
| 18334 | case $host_os in |
| 18335 | aix3*) |
| 18336 | # FIXME: insert proper C++ library support |
| 18337 | ld_shlibs_CXX=no |
| 18338 | ;; |
| 18339 | aix4* | aix5*) |
| 18340 | if test "$host_cpu" = ia64; then |
| 18341 | # On IA64, the linker does run time linking by default, so we don't |
| 18342 | # have to do anything special. |
| 18343 | aix_use_runtimelinking=no |
| 18344 | exp_sym_flag='-Bexport' |
| 18345 | no_entry_flag="" |
| 18346 | else |
| 18347 | aix_use_runtimelinking=no |
| 18348 | |
| 18349 | # Test if we are trying to use run time linking or normal |
| 18350 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18351 | # need to do runtime linking. |
| 18352 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18353 | for ld_flag in $LDFLAGS; do |
| 18354 | case $ld_flag in |
| 18355 | *-brtl*) |
| 18356 | aix_use_runtimelinking=yes |
| 18357 | break |
| 18358 | ;; |
| 18359 | esac |
| 18360 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18361 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18362 | esac |
| 18363 | |
| 18364 | exp_sym_flag='-bexport' |
| 18365 | no_entry_flag='-bnoentry' |
| 18366 | fi |
| 18367 | |
| 18368 | # When large executables or shared objects are built, AIX ld can |
| 18369 | # have problems creating the table of contents. If linking a library |
| 18370 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18371 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18372 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18373 | |
| 18374 | archive_cmds_CXX='' |
| 18375 | hardcode_direct_CXX=yes |
| 18376 | hardcode_libdir_separator_CXX=':' |
| 18377 | link_all_deplibs_CXX=yes |
| 18378 | |
| 18379 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18380 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18381 | # We only want to do this on AIX 4.2 and lower, the check |
| 18382 | # below for broken collect2 doesn't work under 4.3+ |
| 18383 | collect2name=`${CC} -print-prog-name=collect2` |
| 18384 | if test -f "$collect2name" && \ |
| 18385 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18386 | then |
| 18387 | # We have reworked collect2 |
| 18388 | hardcode_direct_CXX=yes |
| 18389 | else |
| 18390 | # We have old collect2 |
| 18391 | hardcode_direct_CXX=unsupported |
| 18392 | # It fails to find uninstalled libraries when the uninstalled |
| 18393 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18394 | # to unsupported forces relinking |
| 18395 | hardcode_minus_L_CXX=yes |
| 18396 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18397 | hardcode_libdir_separator_CXX= |
| 18398 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18399 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18400 | esac |
| 18401 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18402 | if test "$aix_use_runtimelinking" = yes; then |
| 18403 | shared_flag="$shared_flag "'${wl}-G' |
| 18404 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18405 | else |
| 18406 | # not using gcc |
| 18407 | if test "$host_cpu" = ia64; then |
| 18408 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18409 | # chokes on -Wl,-G. The following line is correct: |
| 18410 | shared_flag='-G' |
| 18411 | else |
| 18412 | if test "$aix_use_runtimelinking" = yes; then |
| 18413 | shared_flag='${wl}-G' |
| 18414 | else |
| 18415 | shared_flag='${wl}-bM:SRE' |
| 18416 | fi |
| 18417 | fi |
| 18418 | fi |
| 18419 | |
| 18420 | # It seems that -bexpall does not export symbols beginning with |
| 18421 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18422 | always_export_symbols_CXX=yes |
| 18423 | if test "$aix_use_runtimelinking" = yes; then |
| 18424 | # Warning - without using the other runtime loading flags (-brtl), |
| 18425 | # -berok will link without error, but may produce a broken library. |
| 18426 | allow_undefined_flag_CXX='-berok' |
| 18427 | # Determine the default libpath from the value encoded in an empty executable. |
| 18428 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18429 | /* confdefs.h. */ |
| 18430 | _ACEOF |
| 18431 | cat confdefs.h >>conftest.$ac_ext |
| 18432 | cat >>conftest.$ac_ext <<_ACEOF |
| 18433 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18434 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18435 | int |
| 18436 | main () |
| 18437 | { |
| 18438 | |
| 18439 | ; |
| 18440 | return 0; |
| 18441 | } |
| 18442 | _ACEOF |
| 18443 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18444 | if { (ac_try="$ac_link" |
| 18445 | case "(($ac_try" in |
| 18446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18447 | *) ac_try_echo=$ac_try;; |
| 18448 | esac |
| 18449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18450 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18451 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18453 | rm -f conftest.er1 |
| 18454 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18456 | (exit $ac_status); } && |
| 18457 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18458 | { (case "(($ac_try" in |
| 18459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18460 | *) ac_try_echo=$ac_try;; |
| 18461 | esac |
| 18462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18463 | (eval "$ac_try") 2>&5 |
| 18464 | ac_status=$? |
| 18465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18466 | (exit $ac_status); }; } && |
| 18467 | { ac_try='test -s conftest$ac_exeext' |
| 18468 | { (case "(($ac_try" in |
| 18469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18470 | *) ac_try_echo=$ac_try;; |
| 18471 | esac |
| 18472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18473 | (eval "$ac_try") 2>&5 |
| 18474 | ac_status=$? |
| 18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18476 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18477 | |
| 18478 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18479 | }'` |
| 18480 | # Check for a 64-bit object if we didn't find anything. |
| 18481 | 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; } |
| 18482 | }'`; fi |
| 18483 | else |
| 18484 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18487 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18488 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18489 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18490 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18491 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18492 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18493 | |
| 18494 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18496 | 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] | 18497 | else |
| 18498 | if test "$host_cpu" = ia64; then |
| 18499 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18500 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18501 | 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] | 18502 | else |
| 18503 | # Determine the default libpath from the value encoded in an empty executable. |
| 18504 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18505 | /* confdefs.h. */ |
| 18506 | _ACEOF |
| 18507 | cat confdefs.h >>conftest.$ac_ext |
| 18508 | cat >>conftest.$ac_ext <<_ACEOF |
| 18509 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18510 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18511 | int |
| 18512 | main () |
| 18513 | { |
| 18514 | |
| 18515 | ; |
| 18516 | return 0; |
| 18517 | } |
| 18518 | _ACEOF |
| 18519 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18520 | if { (ac_try="$ac_link" |
| 18521 | case "(($ac_try" in |
| 18522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18523 | *) ac_try_echo=$ac_try;; |
| 18524 | esac |
| 18525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18526 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18527 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18529 | rm -f conftest.er1 |
| 18530 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18532 | (exit $ac_status); } && |
| 18533 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18534 | { (case "(($ac_try" in |
| 18535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18536 | *) ac_try_echo=$ac_try;; |
| 18537 | esac |
| 18538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18539 | (eval "$ac_try") 2>&5 |
| 18540 | ac_status=$? |
| 18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18542 | (exit $ac_status); }; } && |
| 18543 | { ac_try='test -s conftest$ac_exeext' |
| 18544 | { (case "(($ac_try" in |
| 18545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18546 | *) ac_try_echo=$ac_try;; |
| 18547 | esac |
| 18548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18549 | (eval "$ac_try") 2>&5 |
| 18550 | ac_status=$? |
| 18551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18552 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18553 | |
| 18554 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18555 | }'` |
| 18556 | # Check for a 64-bit object if we didn't find anything. |
| 18557 | 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; } |
| 18558 | }'`; fi |
| 18559 | else |
| 18560 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18563 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18564 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18565 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18566 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18567 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18568 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18569 | |
| 18570 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18571 | # Warning - without using the other run time loading flags, |
| 18572 | # -berok will link without error, but may produce a broken library. |
| 18573 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18574 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18575 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18576 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18577 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18578 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18579 | 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] | 18580 | fi |
| 18581 | fi |
| 18582 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18583 | |
| 18584 | beos*) |
| 18585 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18586 | allow_undefined_flag_CXX=unsupported |
| 18587 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18588 | # support --undefined. This deserves some investigation. FIXME |
| 18589 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18590 | else |
| 18591 | ld_shlibs_CXX=no |
| 18592 | fi |
| 18593 | ;; |
| 18594 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18595 | chorus*) |
| 18596 | case $cc_basename in |
| 18597 | *) |
| 18598 | # FIXME: insert proper C++ library support |
| 18599 | ld_shlibs_CXX=no |
| 18600 | ;; |
| 18601 | esac |
| 18602 | ;; |
| 18603 | |
| 18604 | cygwin* | mingw* | pw32*) |
| 18605 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18606 | # as there is no search path for DLLs. |
| 18607 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18608 | allow_undefined_flag_CXX=unsupported |
| 18609 | always_export_symbols_CXX=no |
| 18610 | enable_shared_with_static_runtimes_CXX=yes |
| 18611 | |
| 18612 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18613 | 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] | 18614 | # If the export-symbols file already is a .def file (1st line |
| 18615 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18616 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18617 | cp $export_symbols $output_objdir/$soname.def; |
| 18618 | else |
| 18619 | echo EXPORTS > $output_objdir/$soname.def; |
| 18620 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18621 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18622 | $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] | 18623 | else |
| 18624 | ld_shlibs_CXX=no |
| 18625 | fi |
| 18626 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18627 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18628 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18629 | rhapsody* | darwin1.[012]) |
| 18630 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18631 | ;; |
| 18632 | *) # Darwin 1.3 on |
| 18633 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18634 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18635 | else |
| 18636 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18637 | 10.[012]) |
| 18638 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18639 | ;; |
| 18640 | 10.*) |
| 18641 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18642 | ;; |
| 18643 | esac |
| 18644 | fi |
| 18645 | ;; |
| 18646 | esac |
| 18647 | archive_cmds_need_lc_CXX=no |
| 18648 | hardcode_direct_CXX=no |
| 18649 | hardcode_automatic_CXX=yes |
| 18650 | hardcode_shlibpath_var_CXX=unsupported |
| 18651 | whole_archive_flag_spec_CXX='' |
| 18652 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18653 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18654 | if test "$GXX" = yes ; then |
| 18655 | lt_int_apple_cc_single_mod=no |
| 18656 | output_verbose_link_cmd='echo' |
| 18657 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18658 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18659 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18660 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18661 | 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] | 18662 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18663 | 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] | 18664 | fi |
| 18665 | 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] | 18666 | # 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] | 18667 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18668 | 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] | 18669 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18670 | 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] | 18671 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18672 | 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] | 18673 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18674 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18675 | xlc*) |
| 18676 | output_verbose_link_cmd='echo' |
| 18677 | 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' |
| 18678 | 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] | 18679 | # 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] | 18680 | 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}' |
| 18681 | 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] | 18682 | ;; |
| 18683 | *) |
| 18684 | ld_shlibs_CXX=no |
| 18685 | ;; |
| 18686 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18687 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18688 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18689 | |
| 18690 | dgux*) |
| 18691 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18692 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18693 | # FIXME: insert proper C++ library support |
| 18694 | ld_shlibs_CXX=no |
| 18695 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18696 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18697 | # Green Hills C++ Compiler |
| 18698 | # FIXME: insert proper C++ library support |
| 18699 | ld_shlibs_CXX=no |
| 18700 | ;; |
| 18701 | *) |
| 18702 | # FIXME: insert proper C++ library support |
| 18703 | ld_shlibs_CXX=no |
| 18704 | ;; |
| 18705 | esac |
| 18706 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18707 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18708 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18709 | ld_shlibs_CXX=no |
| 18710 | ;; |
| 18711 | freebsd-elf*) |
| 18712 | archive_cmds_need_lc_CXX=no |
| 18713 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18714 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18715 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18716 | # conventions |
| 18717 | ld_shlibs_CXX=yes |
| 18718 | ;; |
| 18719 | gnu*) |
| 18720 | ;; |
| 18721 | hpux9*) |
| 18722 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18723 | hardcode_libdir_separator_CXX=: |
| 18724 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18725 | hardcode_direct_CXX=yes |
| 18726 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18727 | # but as the default |
| 18728 | # location of the library. |
| 18729 | |
| 18730 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18731 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18732 | # FIXME: insert proper C++ library support |
| 18733 | ld_shlibs_CXX=no |
| 18734 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18735 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18736 | 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] | 18737 | # Commands to make compiler produce verbose output that lists |
| 18738 | # what "hidden" libraries, object files and flags are used when |
| 18739 | # linking a shared library. |
| 18740 | # |
| 18741 | # There doesn't appear to be a way to prevent this compiler from |
| 18742 | # explicitly linking system object files so we need to strip them |
| 18743 | # from the output so that they don't get included in the library |
| 18744 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18745 | 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] | 18746 | ;; |
| 18747 | *) |
| 18748 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18749 | 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] | 18750 | else |
| 18751 | # FIXME: insert proper C++ library support |
| 18752 | ld_shlibs_CXX=no |
| 18753 | fi |
| 18754 | ;; |
| 18755 | esac |
| 18756 | ;; |
| 18757 | hpux10*|hpux11*) |
| 18758 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18759 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18760 | hardcode_libdir_separator_CXX=: |
| 18761 | |
| 18762 | case $host_cpu in |
| 18763 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18764 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18765 | ;; |
| 18766 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18767 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18768 | ;; |
| 18769 | esac |
| 18770 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18771 | case $host_cpu in |
| 18772 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18773 | hardcode_direct_CXX=no |
| 18774 | hardcode_shlibpath_var_CXX=no |
| 18775 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18776 | *) |
| 18777 | hardcode_direct_CXX=yes |
| 18778 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18779 | # but as the default |
| 18780 | # location of the library. |
| 18781 | ;; |
| 18782 | esac |
| 18783 | |
| 18784 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18785 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18786 | # FIXME: insert proper C++ library support |
| 18787 | ld_shlibs_CXX=no |
| 18788 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18789 | aCC*) |
| 18790 | case $host_cpu in |
| 18791 | hppa*64*) |
| 18792 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18793 | ;; |
| 18794 | ia64*) |
| 18795 | 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] | 18796 | ;; |
| 18797 | *) |
| 18798 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18799 | ;; |
| 18800 | esac |
| 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 | # |
| 18805 | # There doesn't appear to be a way to prevent this compiler from |
| 18806 | # explicitly linking system object files so we need to strip them |
| 18807 | # from the output so that they don't get included in the library |
| 18808 | # dependencies. |
| 18809 | 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' |
| 18810 | ;; |
| 18811 | *) |
| 18812 | if test "$GXX" = yes; then |
| 18813 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18814 | case $host_cpu in |
| 18815 | hppa*64*) |
| 18816 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18817 | ;; |
| 18818 | ia64*) |
| 18819 | 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] | 18820 | ;; |
| 18821 | *) |
| 18822 | 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' |
| 18823 | ;; |
| 18824 | esac |
| 18825 | fi |
| 18826 | else |
| 18827 | # FIXME: insert proper C++ library support |
| 18828 | ld_shlibs_CXX=no |
| 18829 | fi |
| 18830 | ;; |
| 18831 | esac |
| 18832 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18833 | interix3*) |
| 18834 | hardcode_direct_CXX=no |
| 18835 | hardcode_shlibpath_var_CXX=no |
| 18836 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18837 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18838 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18839 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18840 | # default) and relocated if they conflict, which is a slow very memory |
| 18841 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18842 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18843 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18844 | 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' |
| 18845 | 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' |
| 18846 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18847 | irix5* | irix6*) |
| 18848 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18849 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18850 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18851 | 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] | 18852 | |
| 18853 | # Archives containing C++ object files must be created using |
| 18854 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18855 | # necessary to make sure instantiated templates are included |
| 18856 | # in the archive. |
| 18857 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18858 | ;; |
| 18859 | *) |
| 18860 | if test "$GXX" = yes; then |
| 18861 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18862 | 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] | 18863 | else |
| 18864 | 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' |
| 18865 | fi |
| 18866 | fi |
| 18867 | link_all_deplibs_CXX=yes |
| 18868 | ;; |
| 18869 | esac |
| 18870 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18871 | hardcode_libdir_separator_CXX=: |
| 18872 | ;; |
| 18873 | linux*) |
| 18874 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18875 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18876 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18877 | |
| 18878 | # KCC will only create a shared library if the output file |
| 18879 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18880 | # to its proper name (with version) after linking. |
| 18881 | 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' |
| 18882 | 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' |
| 18883 | # Commands to make compiler produce verbose output that lists |
| 18884 | # what "hidden" libraries, object files and flags are used when |
| 18885 | # linking a shared library. |
| 18886 | # |
| 18887 | # There doesn't appear to be a way to prevent this compiler from |
| 18888 | # explicitly linking system object files so we need to strip them |
| 18889 | # from the output so that they don't get included in the library |
| 18890 | # dependencies. |
| 18891 | 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' |
| 18892 | |
| 18893 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 18894 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18895 | |
| 18896 | # Archives containing C++ object files must be created using |
| 18897 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18898 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18899 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18900 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18901 | # Intel C++ |
| 18902 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18903 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18904 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18905 | # earlier do not add the objects themselves. |
| 18906 | case `$CC -V 2>&1` in |
| 18907 | *"Version 7."*) |
| 18908 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18909 | 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' |
| 18910 | ;; |
| 18911 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18912 | tmp_idyn= |
| 18913 | case $host_cpu in |
| 18914 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18915 | esac |
| 18916 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18917 | 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] | 18918 | ;; |
| 18919 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18920 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18921 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18922 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18923 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18924 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18925 | pgCC*) |
| 18926 | # Portland Group C++ compiler |
| 18927 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18928 | 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' |
| 18929 | |
| 18930 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18931 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18932 | 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' |
| 18933 | ;; |
| 18934 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18935 | # Compaq C++ |
| 18936 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18937 | 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' |
| 18938 | |
| 18939 | runpath_var=LD_RUN_PATH |
| 18940 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18941 | hardcode_libdir_separator_CXX=: |
| 18942 | |
| 18943 | # Commands to make compiler produce verbose output that lists |
| 18944 | # what "hidden" libraries, object files and flags are used when |
| 18945 | # linking a shared library. |
| 18946 | # |
| 18947 | # There doesn't appear to be a way to prevent this compiler from |
| 18948 | # explicitly linking system object files so we need to strip them |
| 18949 | # from the output so that they don't get included in the library |
| 18950 | # dependencies. |
| 18951 | 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' |
| 18952 | ;; |
| 18953 | esac |
| 18954 | ;; |
| 18955 | lynxos*) |
| 18956 | # FIXME: insert proper C++ library support |
| 18957 | ld_shlibs_CXX=no |
| 18958 | ;; |
| 18959 | m88k*) |
| 18960 | # FIXME: insert proper C++ library support |
| 18961 | ld_shlibs_CXX=no |
| 18962 | ;; |
| 18963 | mvs*) |
| 18964 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18965 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18966 | # FIXME: insert proper C++ library support |
| 18967 | ld_shlibs_CXX=no |
| 18968 | ;; |
| 18969 | *) |
| 18970 | # FIXME: insert proper C++ library support |
| 18971 | ld_shlibs_CXX=no |
| 18972 | ;; |
| 18973 | esac |
| 18974 | ;; |
| 18975 | netbsd*) |
| 18976 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18977 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18978 | wlarc= |
| 18979 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18980 | hardcode_direct_CXX=yes |
| 18981 | hardcode_shlibpath_var_CXX=no |
| 18982 | fi |
| 18983 | # Workaround some broken pre-1.5 toolchains |
| 18984 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18985 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18986 | openbsd2*) |
| 18987 | # C++ shared libraries are fairly broken |
| 18988 | ld_shlibs_CXX=no |
| 18989 | ;; |
| 18990 | openbsd*) |
| 18991 | hardcode_direct_CXX=yes |
| 18992 | hardcode_shlibpath_var_CXX=no |
| 18993 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18994 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18995 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18996 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 18997 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18998 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18999 | fi |
| 19000 | output_verbose_link_cmd='echo' |
| 19001 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19002 | osf3*) |
| 19003 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19004 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19005 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19006 | |
| 19007 | # KCC will only create a shared library if the output file |
| 19008 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19009 | # to its proper name (with version) after linking. |
| 19010 | 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' |
| 19011 | |
| 19012 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19013 | hardcode_libdir_separator_CXX=: |
| 19014 | |
| 19015 | # Archives containing C++ object files must be created using |
| 19016 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19017 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19018 | |
| 19019 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19020 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19021 | # Rational C++ 2.4.1 |
| 19022 | # FIXME: insert proper C++ library support |
| 19023 | ld_shlibs_CXX=no |
| 19024 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19025 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19026 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19027 | 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] | 19028 | |
| 19029 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19030 | hardcode_libdir_separator_CXX=: |
| 19031 | |
| 19032 | # Commands to make compiler produce verbose output that lists |
| 19033 | # what "hidden" libraries, object files and flags are used when |
| 19034 | # linking a shared library. |
| 19035 | # |
| 19036 | # There doesn't appear to be a way to prevent this compiler from |
| 19037 | # explicitly linking system object files so we need to strip them |
| 19038 | # from the output so that they don't get included in the library |
| 19039 | # dependencies. |
| 19040 | 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' |
| 19041 | ;; |
| 19042 | *) |
| 19043 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19044 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19045 | 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] | 19046 | |
| 19047 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19048 | hardcode_libdir_separator_CXX=: |
| 19049 | |
| 19050 | # Commands to make compiler produce verbose output that lists |
| 19051 | # what "hidden" libraries, object files and flags are used when |
| 19052 | # linking a shared library. |
| 19053 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19054 | |
| 19055 | else |
| 19056 | # FIXME: insert proper C++ library support |
| 19057 | ld_shlibs_CXX=no |
| 19058 | fi |
| 19059 | ;; |
| 19060 | esac |
| 19061 | ;; |
| 19062 | osf4* | osf5*) |
| 19063 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19064 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19065 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19066 | |
| 19067 | # KCC will only create a shared library if the output file |
| 19068 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19069 | # to its proper name (with version) after linking. |
| 19070 | 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' |
| 19071 | |
| 19072 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19073 | hardcode_libdir_separator_CXX=: |
| 19074 | |
| 19075 | # Archives containing C++ object files must be created using |
| 19076 | # the KAI C++ compiler. |
| 19077 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19078 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19079 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19080 | # Rational C++ 2.4.1 |
| 19081 | # FIXME: insert proper C++ library support |
| 19082 | ld_shlibs_CXX=no |
| 19083 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19084 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19085 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19086 | 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] | 19087 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19088 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19089 | $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] | 19090 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19091 | |
| 19092 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19093 | hardcode_libdir_separator_CXX=: |
| 19094 | |
| 19095 | # Commands to make compiler produce verbose output that lists |
| 19096 | # what "hidden" libraries, object files and flags are used when |
| 19097 | # linking a shared library. |
| 19098 | # |
| 19099 | # There doesn't appear to be a way to prevent this compiler from |
| 19100 | # explicitly linking system object files so we need to strip them |
| 19101 | # from the output so that they don't get included in the library |
| 19102 | # dependencies. |
| 19103 | 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' |
| 19104 | ;; |
| 19105 | *) |
| 19106 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19107 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19108 | 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] | 19109 | |
| 19110 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19111 | hardcode_libdir_separator_CXX=: |
| 19112 | |
| 19113 | # Commands to make compiler produce verbose output that lists |
| 19114 | # what "hidden" libraries, object files and flags are used when |
| 19115 | # linking a shared library. |
| 19116 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19117 | |
| 19118 | else |
| 19119 | # FIXME: insert proper C++ library support |
| 19120 | ld_shlibs_CXX=no |
| 19121 | fi |
| 19122 | ;; |
| 19123 | esac |
| 19124 | ;; |
| 19125 | psos*) |
| 19126 | # FIXME: insert proper C++ library support |
| 19127 | ld_shlibs_CXX=no |
| 19128 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19129 | sunos4*) |
| 19130 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19131 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19132 | # Sun C++ 4.x |
| 19133 | # FIXME: insert proper C++ library support |
| 19134 | ld_shlibs_CXX=no |
| 19135 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19136 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19137 | # Lucid |
| 19138 | # FIXME: insert proper C++ library support |
| 19139 | ld_shlibs_CXX=no |
| 19140 | ;; |
| 19141 | *) |
| 19142 | # FIXME: insert proper C++ library support |
| 19143 | ld_shlibs_CXX=no |
| 19144 | ;; |
| 19145 | esac |
| 19146 | ;; |
| 19147 | solaris*) |
| 19148 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19149 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19150 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19151 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19152 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19153 | 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] | 19154 | 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] | 19155 | $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] | 19156 | |
| 19157 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19158 | hardcode_shlibpath_var_CXX=no |
| 19159 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19160 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19161 | *) |
| 19162 | # The C++ compiler is used as linker so we must use $wl |
| 19163 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19164 | # linker. We must also pass each convience library through |
| 19165 | # to the system linker between allextract/defaultextract. |
| 19166 | # The C++ compiler will combine linker options so we |
| 19167 | # cannot just pass the convience library names through |
| 19168 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19169 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19170 | 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] | 19171 | ;; |
| 19172 | esac |
| 19173 | link_all_deplibs_CXX=yes |
| 19174 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19175 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19176 | |
| 19177 | # Archives containing C++ object files must be created using |
| 19178 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19179 | # necessary to make sure instantiated templates are included |
| 19180 | # in the archive. |
| 19181 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19182 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19183 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19184 | # Green Hills C++ Compiler |
| 19185 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19186 | |
| 19187 | # The C++ compiler must be used to create the archive. |
| 19188 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19189 | ;; |
| 19190 | *) |
| 19191 | # GNU C++ compiler with Solaris linker |
| 19192 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19193 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19194 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19195 | 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] | 19196 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19197 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19198 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19199 | # Commands to make compiler produce verbose output that lists |
| 19200 | # what "hidden" libraries, object files and flags are used when |
| 19201 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19202 | 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] | 19203 | else |
| 19204 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19205 | # platform. |
| 19206 | 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] | 19207 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19208 | $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] | 19209 | |
| 19210 | # Commands to make compiler produce verbose output that lists |
| 19211 | # what "hidden" libraries, object files and flags are used when |
| 19212 | # linking a shared library. |
| 19213 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19214 | fi |
| 19215 | |
| 19216 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19217 | fi |
| 19218 | ;; |
| 19219 | esac |
| 19220 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19221 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19222 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19223 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19224 | hardcode_shlibpath_var_CXX=no |
| 19225 | runpath_var='LD_RUN_PATH' |
| 19226 | |
| 19227 | case $cc_basename in |
| 19228 | CC*) |
| 19229 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19230 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19231 | ;; |
| 19232 | *) |
| 19233 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19234 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19235 | ;; |
| 19236 | esac |
| 19237 | ;; |
| 19238 | sysv5* | sco3.2v5* | sco5v6*) |
| 19239 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19240 | # link with -lc, and that would cause any symbols used from libc to |
| 19241 | # always be unresolved, which means just about no library would |
| 19242 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19243 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19244 | # as -z defs. |
| 19245 | # For security reasons, it is highly recommended that you always |
| 19246 | # use absolute paths for naming shared libraries, and exclude the |
| 19247 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19248 | # requires that you compile everything twice, which is a pain. |
| 19249 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19250 | # non-empty value in the environment. Most likely only useful for |
| 19251 | # creating official distributions of packages. |
| 19252 | # This is a hack until libtool officially supports absolute path |
| 19253 | # names for shared libraries. |
| 19254 | no_undefined_flag_CXX='${wl}-z,text' |
| 19255 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19256 | archive_cmds_need_lc_CXX=no |
| 19257 | hardcode_shlibpath_var_CXX=no |
| 19258 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19259 | hardcode_libdir_separator_CXX=':' |
| 19260 | link_all_deplibs_CXX=yes |
| 19261 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19262 | runpath_var='LD_RUN_PATH' |
| 19263 | |
| 19264 | case $cc_basename in |
| 19265 | CC*) |
| 19266 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19267 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19268 | ;; |
| 19269 | *) |
| 19270 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19271 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19272 | ;; |
| 19273 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19274 | ;; |
| 19275 | tandem*) |
| 19276 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19277 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19278 | # NonStop-UX NCC 3.20 |
| 19279 | # FIXME: insert proper C++ library support |
| 19280 | ld_shlibs_CXX=no |
| 19281 | ;; |
| 19282 | *) |
| 19283 | # FIXME: insert proper C++ library support |
| 19284 | ld_shlibs_CXX=no |
| 19285 | ;; |
| 19286 | esac |
| 19287 | ;; |
| 19288 | vxworks*) |
| 19289 | # FIXME: insert proper C++ library support |
| 19290 | ld_shlibs_CXX=no |
| 19291 | ;; |
| 19292 | *) |
| 19293 | # FIXME: insert proper C++ library support |
| 19294 | ld_shlibs_CXX=no |
| 19295 | ;; |
| 19296 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19297 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19298 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19299 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19300 | |
| 19301 | GCC_CXX="$GXX" |
| 19302 | LD_CXX="$LD" |
| 19303 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19304 | |
| 19305 | cat > conftest.$ac_ext <<EOF |
| 19306 | class Foo |
| 19307 | { |
| 19308 | public: |
| 19309 | Foo (void) { a = 0; } |
| 19310 | private: |
| 19311 | int a; |
| 19312 | }; |
| 19313 | EOF |
| 19314 | |
| 19315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19316 | (eval $ac_compile) 2>&5 |
| 19317 | ac_status=$? |
| 19318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19319 | (exit $ac_status); }; then |
| 19320 | # Parse the compiler output and extract the necessary |
| 19321 | # objects, libraries and library flags. |
| 19322 | |
| 19323 | # Sentinel used to keep track of whether or not we are before |
| 19324 | # the conftest object file. |
| 19325 | pre_test_object_deps_done=no |
| 19326 | |
| 19327 | # The `*' in the case matches for architectures that use `case' in |
| 19328 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19329 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19330 | 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] | 19331 | |
| 19332 | for p in `eval $output_verbose_link_cmd`; do |
| 19333 | case $p in |
| 19334 | |
| 19335 | -L* | -R* | -l*) |
| 19336 | # Some compilers place space between "-{L,R}" and the path. |
| 19337 | # Remove the space. |
| 19338 | if test $p = "-L" \ |
| 19339 | || test $p = "-R"; then |
| 19340 | prev=$p |
| 19341 | continue |
| 19342 | else |
| 19343 | prev= |
| 19344 | fi |
| 19345 | |
| 19346 | if test "$pre_test_object_deps_done" = no; then |
| 19347 | case $p in |
| 19348 | -L* | -R*) |
| 19349 | # Internal compiler library paths should come after those |
| 19350 | # provided the user. The postdeps already come after the |
| 19351 | # user supplied libs so there is no need to process them. |
| 19352 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19353 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19354 | else |
| 19355 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19356 | fi |
| 19357 | ;; |
| 19358 | # The "-l" case would never come before the object being |
| 19359 | # linked, so don't bother handling this case. |
| 19360 | esac |
| 19361 | else |
| 19362 | if test -z "$postdeps_CXX"; then |
| 19363 | postdeps_CXX="${prev}${p}" |
| 19364 | else |
| 19365 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19366 | fi |
| 19367 | fi |
| 19368 | ;; |
| 19369 | |
| 19370 | *.$objext) |
| 19371 | # This assumes that the test object file only shows up |
| 19372 | # once in the compiler output. |
| 19373 | if test "$p" = "conftest.$objext"; then |
| 19374 | pre_test_object_deps_done=yes |
| 19375 | continue |
| 19376 | fi |
| 19377 | |
| 19378 | if test "$pre_test_object_deps_done" = no; then |
| 19379 | if test -z "$predep_objects_CXX"; then |
| 19380 | predep_objects_CXX="$p" |
| 19381 | else |
| 19382 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19383 | fi |
| 19384 | else |
| 19385 | if test -z "$postdep_objects_CXX"; then |
| 19386 | postdep_objects_CXX="$p" |
| 19387 | else |
| 19388 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19389 | fi |
| 19390 | fi |
| 19391 | ;; |
| 19392 | |
| 19393 | *) ;; # Ignore the rest. |
| 19394 | |
| 19395 | esac |
| 19396 | done |
| 19397 | |
| 19398 | # Clean up. |
| 19399 | rm -f a.out a.exe |
| 19400 | else |
| 19401 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19402 | fi |
| 19403 | |
| 19404 | $rm -f confest.$objext |
| 19405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19406 | # PORTME: override above test on systems where it is broken |
| 19407 | case $host_os in |
| 19408 | interix3*) |
| 19409 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19410 | # hack all around it, let's just trust "g++" to DTRT. |
| 19411 | predep_objects_CXX= |
| 19412 | postdep_objects_CXX= |
| 19413 | postdeps_CXX= |
| 19414 | ;; |
| 19415 | |
| 19416 | solaris*) |
| 19417 | case $cc_basename in |
| 19418 | CC*) |
| 19419 | # Adding this requires a known-good setup of shared libraries for |
| 19420 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19421 | # archive will be linked into the output, leading to subtle bugs. |
| 19422 | postdeps_CXX='-lCstd -lCrun' |
| 19423 | ;; |
| 19424 | esac |
| 19425 | ;; |
| 19426 | esac |
| 19427 | |
| 19428 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19429 | case " $postdeps_CXX " in |
| 19430 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19431 | esac |
| 19432 | |
| 19433 | lt_prog_compiler_wl_CXX= |
| 19434 | lt_prog_compiler_pic_CXX= |
| 19435 | lt_prog_compiler_static_CXX= |
| 19436 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19437 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19438 | 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] | 19439 | |
| 19440 | # C++ specific cases for pic, static, wl, etc. |
| 19441 | if test "$GXX" = yes; then |
| 19442 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19443 | lt_prog_compiler_static_CXX='-static' |
| 19444 | |
| 19445 | case $host_os in |
| 19446 | aix*) |
| 19447 | # All AIX code is PIC. |
| 19448 | if test "$host_cpu" = ia64; then |
| 19449 | # AIX 5 now supports IA64 processor |
| 19450 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19451 | fi |
| 19452 | ;; |
| 19453 | amigaos*) |
| 19454 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19455 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19456 | # like `-m68040'. |
| 19457 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19458 | ;; |
| 19459 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19460 | # PIC is the default for these OSes. |
| 19461 | ;; |
| 19462 | mingw* | os2* | pw32*) |
| 19463 | # This hack is so that the source file can tell whether it is being |
| 19464 | # built for inclusion in a dll (and should export symbols for example). |
| 19465 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19466 | ;; |
| 19467 | darwin* | rhapsody*) |
| 19468 | # PIC is the default on this platform |
| 19469 | # Common symbols not allowed in MH_DYLIB files |
| 19470 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19471 | ;; |
| 19472 | *djgpp*) |
| 19473 | # DJGPP does not support shared libraries at all |
| 19474 | lt_prog_compiler_pic_CXX= |
| 19475 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19476 | interix3*) |
| 19477 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19478 | # Instead, we relocate shared libraries at runtime. |
| 19479 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19480 | sysv4*MP*) |
| 19481 | if test -d /usr/nec; then |
| 19482 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19483 | fi |
| 19484 | ;; |
| 19485 | hpux*) |
| 19486 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19487 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19488 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19489 | hppa*64*|ia64*) |
| 19490 | ;; |
| 19491 | *) |
| 19492 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19493 | ;; |
| 19494 | esac |
| 19495 | ;; |
| 19496 | *) |
| 19497 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19498 | ;; |
| 19499 | esac |
| 19500 | else |
| 19501 | case $host_os in |
| 19502 | aix4* | aix5*) |
| 19503 | # All AIX code is PIC. |
| 19504 | if test "$host_cpu" = ia64; then |
| 19505 | # AIX 5 now supports IA64 processor |
| 19506 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19507 | else |
| 19508 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19509 | fi |
| 19510 | ;; |
| 19511 | chorus*) |
| 19512 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19513 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19514 | # Green Hills C++ Compiler |
| 19515 | # _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" |
| 19516 | ;; |
| 19517 | esac |
| 19518 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19519 | darwin*) |
| 19520 | # PIC is the default on this platform |
| 19521 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19522 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19523 | xlc*) |
| 19524 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19525 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19526 | ;; |
| 19527 | esac |
| 19528 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19529 | dgux*) |
| 19530 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19531 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19532 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19533 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19534 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19535 | # Green Hills C++ Compiler |
| 19536 | lt_prog_compiler_pic_CXX='-pic' |
| 19537 | ;; |
| 19538 | *) |
| 19539 | ;; |
| 19540 | esac |
| 19541 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19542 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19543 | # FreeBSD uses GNU C++ |
| 19544 | ;; |
| 19545 | hpux9* | hpux10* | hpux11*) |
| 19546 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19547 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19548 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19549 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19550 | if test "$host_cpu" != ia64; then |
| 19551 | lt_prog_compiler_pic_CXX='+Z' |
| 19552 | fi |
| 19553 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19554 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19555 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19556 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19557 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19558 | hppa*64*|ia64*) |
| 19559 | # +Z the default |
| 19560 | ;; |
| 19561 | *) |
| 19562 | lt_prog_compiler_pic_CXX='+Z' |
| 19563 | ;; |
| 19564 | esac |
| 19565 | ;; |
| 19566 | *) |
| 19567 | ;; |
| 19568 | esac |
| 19569 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19570 | interix*) |
| 19571 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19572 | # Anyone wants to do a port? |
| 19573 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19574 | irix5* | irix6* | nonstopux*) |
| 19575 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19576 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19577 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19578 | lt_prog_compiler_static_CXX='-non_shared' |
| 19579 | # CC pic flag -KPIC is the default. |
| 19580 | ;; |
| 19581 | *) |
| 19582 | ;; |
| 19583 | esac |
| 19584 | ;; |
| 19585 | linux*) |
| 19586 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19587 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19588 | # KAI C++ Compiler |
| 19589 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19590 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19591 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19592 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19593 | # Intel C++ |
| 19594 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19595 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19596 | lt_prog_compiler_static_CXX='-static' |
| 19597 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19598 | pgCC*) |
| 19599 | # Portland Group C++ compiler. |
| 19600 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19601 | lt_prog_compiler_pic_CXX='-fpic' |
| 19602 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19603 | ;; |
| 19604 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19605 | # Compaq C++ |
| 19606 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19607 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19608 | lt_prog_compiler_pic_CXX= |
| 19609 | lt_prog_compiler_static_CXX='-non_shared' |
| 19610 | ;; |
| 19611 | *) |
| 19612 | ;; |
| 19613 | esac |
| 19614 | ;; |
| 19615 | lynxos*) |
| 19616 | ;; |
| 19617 | m88k*) |
| 19618 | ;; |
| 19619 | mvs*) |
| 19620 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19621 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19622 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19623 | ;; |
| 19624 | *) |
| 19625 | ;; |
| 19626 | esac |
| 19627 | ;; |
| 19628 | netbsd*) |
| 19629 | ;; |
| 19630 | osf3* | osf4* | osf5*) |
| 19631 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19632 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19633 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19634 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19635 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19636 | # Rational C++ 2.4.1 |
| 19637 | lt_prog_compiler_pic_CXX='-pic' |
| 19638 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19639 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19640 | # Digital/Compaq C++ |
| 19641 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19642 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19643 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19644 | lt_prog_compiler_pic_CXX= |
| 19645 | lt_prog_compiler_static_CXX='-non_shared' |
| 19646 | ;; |
| 19647 | *) |
| 19648 | ;; |
| 19649 | esac |
| 19650 | ;; |
| 19651 | psos*) |
| 19652 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19653 | solaris*) |
| 19654 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19655 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19656 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19657 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19658 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19659 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19660 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19661 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19662 | # Green Hills C++ Compiler |
| 19663 | lt_prog_compiler_pic_CXX='-PIC' |
| 19664 | ;; |
| 19665 | *) |
| 19666 | ;; |
| 19667 | esac |
| 19668 | ;; |
| 19669 | sunos4*) |
| 19670 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19671 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19672 | # Sun C++ 4.x |
| 19673 | lt_prog_compiler_pic_CXX='-pic' |
| 19674 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19675 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19676 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19677 | # Lucid |
| 19678 | lt_prog_compiler_pic_CXX='-pic' |
| 19679 | ;; |
| 19680 | *) |
| 19681 | ;; |
| 19682 | esac |
| 19683 | ;; |
| 19684 | tandem*) |
| 19685 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19686 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19687 | # NonStop-UX NCC 3.20 |
| 19688 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19689 | ;; |
| 19690 | *) |
| 19691 | ;; |
| 19692 | esac |
| 19693 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19694 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19695 | case $cc_basename in |
| 19696 | CC*) |
| 19697 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19698 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19699 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19700 | ;; |
| 19701 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19702 | ;; |
| 19703 | vxworks*) |
| 19704 | ;; |
| 19705 | *) |
| 19706 | lt_prog_compiler_can_build_shared_CXX=no |
| 19707 | ;; |
| 19708 | esac |
| 19709 | fi |
| 19710 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19711 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19712 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19713 | |
| 19714 | # |
| 19715 | # Check to make sure the PIC flag actually works. |
| 19716 | # |
| 19717 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19718 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19719 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19720 | 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] | 19721 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19723 | else |
| 19724 | lt_prog_compiler_pic_works_CXX=no |
| 19725 | ac_outfile=conftest.$ac_objext |
| 19726 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19727 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19728 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19729 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19730 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19731 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19732 | # The option is referenced via a variable to avoid confusing sed. |
| 19733 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19734 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19735 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19736 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 19737 | (eval echo "\"\$as_me:19737: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19738 | (eval "$lt_compile" 2>conftest.err) |
| 19739 | ac_status=$? |
| 19740 | cat conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 19741 | echo "$as_me:19741: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19742 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19743 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19744 | # So say no if there are warnings other than the usual output. |
| 19745 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19746 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19747 | 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] | 19748 | lt_prog_compiler_pic_works_CXX=yes |
| 19749 | fi |
| 19750 | fi |
| 19751 | $rm conftest* |
| 19752 | |
| 19753 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19754 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 19755 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19756 | |
| 19757 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 19758 | case $lt_prog_compiler_pic_CXX in |
| 19759 | "" | " "*) ;; |
| 19760 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19761 | esac |
| 19762 | else |
| 19763 | lt_prog_compiler_pic_CXX= |
| 19764 | lt_prog_compiler_can_build_shared_CXX=no |
| 19765 | fi |
| 19766 | |
| 19767 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19768 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19769 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19770 | *djgpp*) |
| 19771 | lt_prog_compiler_pic_CXX= |
| 19772 | ;; |
| 19773 | *) |
| 19774 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19775 | ;; |
| 19776 | esac |
| 19777 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19778 | # |
| 19779 | # Check to make sure the static flag actually works. |
| 19780 | # |
| 19781 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19782 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19783 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 19784 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 19785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19786 | else |
| 19787 | lt_prog_compiler_static_works_CXX=no |
| 19788 | save_LDFLAGS="$LDFLAGS" |
| 19789 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19790 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19791 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19792 | # The linker can only warn and ignore the option if not recognized |
| 19793 | # So say no if there are warnings |
| 19794 | if test -s conftest.err; then |
| 19795 | # Append any errors to the config.log. |
| 19796 | cat conftest.err 1>&5 |
| 19797 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 19798 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19799 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19800 | lt_prog_compiler_static_works_CXX=yes |
| 19801 | fi |
| 19802 | else |
| 19803 | lt_prog_compiler_static_works_CXX=yes |
| 19804 | fi |
| 19805 | fi |
| 19806 | $rm conftest* |
| 19807 | LDFLAGS="$save_LDFLAGS" |
| 19808 | |
| 19809 | fi |
| 19810 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 19811 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 19812 | |
| 19813 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 19814 | : |
| 19815 | else |
| 19816 | lt_prog_compiler_static_CXX= |
| 19817 | fi |
| 19818 | |
| 19819 | |
| 19820 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19821 | 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] | 19822 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 19823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19824 | else |
| 19825 | lt_cv_prog_compiler_c_o_CXX=no |
| 19826 | $rm -r conftest 2>/dev/null |
| 19827 | mkdir conftest |
| 19828 | cd conftest |
| 19829 | mkdir out |
| 19830 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19831 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19832 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19833 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19834 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19835 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19836 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19837 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19838 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19839 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19840 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 19841 | (eval echo "\"\$as_me:19841: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19842 | (eval "$lt_compile" 2>out/conftest.err) |
| 19843 | ac_status=$? |
| 19844 | cat out/conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 19845 | echo "$as_me:19845: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19846 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19847 | then |
| 19848 | # The compiler can only warn and ignore the option if not recognized |
| 19849 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19850 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 19851 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19852 | 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] | 19853 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19854 | fi |
| 19855 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19856 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19857 | $rm conftest* |
| 19858 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19859 | # template instantiation |
| 19860 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19861 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19862 | cd .. |
| 19863 | rmdir conftest |
| 19864 | $rm conftest* |
| 19865 | |
| 19866 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19867 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19868 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19869 | |
| 19870 | |
| 19871 | hard_links="nottested" |
| 19872 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19873 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19874 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19875 | 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] | 19876 | hard_links=yes |
| 19877 | $rm conftest* |
| 19878 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19879 | touch conftest.a |
| 19880 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19881 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19882 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19883 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19884 | if test "$hard_links" = no; then |
| 19885 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19886 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19887 | need_locks=warn |
| 19888 | fi |
| 19889 | else |
| 19890 | need_locks=no |
| 19891 | fi |
| 19892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19893 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19894 | 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] | 19895 | |
| 19896 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19897 | case $host_os in |
| 19898 | aix4* | aix5*) |
| 19899 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19900 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19901 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19902 | 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' |
| 19903 | else |
| 19904 | 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' |
| 19905 | fi |
| 19906 | ;; |
| 19907 | pw32*) |
| 19908 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 19909 | ;; |
| 19910 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19911 | 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] | 19912 | ;; |
| 19913 | *) |
| 19914 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19915 | ;; |
| 19916 | esac |
| 19917 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19918 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19919 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19920 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19921 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19922 | # |
| 19923 | # Do we need to explicitly link libc? |
| 19924 | # |
| 19925 | case "x$archive_cmds_need_lc_CXX" in |
| 19926 | x|xyes) |
| 19927 | # Assume -lc should be added |
| 19928 | archive_cmds_need_lc_CXX=yes |
| 19929 | |
| 19930 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19931 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19932 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19933 | # FIXME: we may have to deal with multi-command sequences. |
| 19934 | ;; |
| 19935 | '$CC '*) |
| 19936 | # Test whether the compiler implicitly links with -lc since on some |
| 19937 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19938 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19939 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19940 | 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] | 19941 | $rm conftest* |
| 19942 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19943 | |
| 19944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19945 | (eval $ac_compile) 2>&5 |
| 19946 | ac_status=$? |
| 19947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19948 | (exit $ac_status); } 2>conftest.err; then |
| 19949 | soname=conftest |
| 19950 | lib=conftest |
| 19951 | libobjs=conftest.$ac_objext |
| 19952 | deplibs= |
| 19953 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19954 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19955 | compiler_flags=-v |
| 19956 | linker_flags=-v |
| 19957 | verstring= |
| 19958 | output_objdir=. |
| 19959 | libname=conftest |
| 19960 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19961 | allow_undefined_flag_CXX= |
| 19962 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 19963 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19964 | ac_status=$? |
| 19965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19966 | (exit $ac_status); } |
| 19967 | then |
| 19968 | archive_cmds_need_lc_CXX=no |
| 19969 | else |
| 19970 | archive_cmds_need_lc_CXX=yes |
| 19971 | fi |
| 19972 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19973 | else |
| 19974 | cat conftest.err 1>&5 |
| 19975 | fi |
| 19976 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19977 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 19978 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19979 | ;; |
| 19980 | esac |
| 19981 | fi |
| 19982 | ;; |
| 19983 | esac |
| 19984 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19985 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 19986 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19987 | library_names_spec= |
| 19988 | libname_spec='lib$name' |
| 19989 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19990 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19991 | postinstall_cmds= |
| 19992 | postuninstall_cmds= |
| 19993 | finish_cmds= |
| 19994 | finish_eval= |
| 19995 | shlibpath_var= |
| 19996 | shlibpath_overrides_runpath=unknown |
| 19997 | version_type=none |
| 19998 | dynamic_linker="$host_os ld.so" |
| 19999 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20000 | if test "$GCC" = yes; then |
| 20001 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20002 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20003 | # if the path contains ";" then we assume it to be the separator |
| 20004 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20005 | # assumed that no part of a normal pathname contains ";" but that should |
| 20006 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20007 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20008 | else |
| 20009 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20010 | fi |
| 20011 | else |
| 20012 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20013 | fi |
| 20014 | need_lib_prefix=unknown |
| 20015 | hardcode_into_libs=no |
| 20016 | |
| 20017 | # when you set need_version to no, make sure it does not cause -set_version |
| 20018 | # flags to be left without arguments |
| 20019 | need_version=unknown |
| 20020 | |
| 20021 | case $host_os in |
| 20022 | aix3*) |
| 20023 | version_type=linux |
| 20024 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20025 | shlibpath_var=LIBPATH |
| 20026 | |
| 20027 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20028 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20029 | ;; |
| 20030 | |
| 20031 | aix4* | aix5*) |
| 20032 | version_type=linux |
| 20033 | need_lib_prefix=no |
| 20034 | need_version=no |
| 20035 | hardcode_into_libs=yes |
| 20036 | if test "$host_cpu" = ia64; then |
| 20037 | # AIX 5 supports IA64 |
| 20038 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20039 | shlibpath_var=LD_LIBRARY_PATH |
| 20040 | else |
| 20041 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20042 | # for dependence libraries. The import file would start with |
| 20043 | # the line `#! .'. This would cause the generated library to |
| 20044 | # depend on `.', always an invalid library. This was fixed in |
| 20045 | # development snapshots of GCC prior to 3.0. |
| 20046 | case $host_os in |
| 20047 | aix4 | aix4.[01] | aix4.[01].*) |
| 20048 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20049 | echo ' yes ' |
| 20050 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20051 | : |
| 20052 | else |
| 20053 | can_build_shared=no |
| 20054 | fi |
| 20055 | ;; |
| 20056 | esac |
| 20057 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20058 | # soname into executable. Probably we can add versioning support to |
| 20059 | # collect2, so additional links can be useful in future. |
| 20060 | if test "$aix_use_runtimelinking" = yes; then |
| 20061 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20062 | # instead of lib<name>.a to let people know that these are not |
| 20063 | # typical AIX shared libraries. |
| 20064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20065 | else |
| 20066 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20067 | # and later when we are not doing run time linking. |
| 20068 | library_names_spec='${libname}${release}.a $libname.a' |
| 20069 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20070 | fi |
| 20071 | shlibpath_var=LIBPATH |
| 20072 | fi |
| 20073 | ;; |
| 20074 | |
| 20075 | amigaos*) |
| 20076 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20077 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20078 | 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] | 20079 | ;; |
| 20080 | |
| 20081 | beos*) |
| 20082 | library_names_spec='${libname}${shared_ext}' |
| 20083 | dynamic_linker="$host_os ld.so" |
| 20084 | shlibpath_var=LIBRARY_PATH |
| 20085 | ;; |
| 20086 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20087 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20088 | version_type=linux |
| 20089 | need_version=no |
| 20090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20091 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20092 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20093 | shlibpath_var=LD_LIBRARY_PATH |
| 20094 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20095 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20096 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20097 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20098 | # libtool to hard-code these into programs |
| 20099 | ;; |
| 20100 | |
| 20101 | cygwin* | mingw* | pw32*) |
| 20102 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20103 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20104 | need_version=no |
| 20105 | need_lib_prefix=no |
| 20106 | |
| 20107 | case $GCC,$host_os in |
| 20108 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20109 | library_names_spec='$libname.dll.a' |
| 20110 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20111 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20112 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20113 | dldir=$destdir/`dirname \$dlpath`~ |
| 20114 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20115 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20116 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20117 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20118 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20119 | $rm \$dlpath' |
| 20120 | shlibpath_overrides_runpath=yes |
| 20121 | |
| 20122 | case $host_os in |
| 20123 | cygwin*) |
| 20124 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20125 | 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] | 20126 | 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] | 20127 | ;; |
| 20128 | mingw*) |
| 20129 | # MinGW DLLs use traditional 'lib' prefix |
| 20130 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20131 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20132 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20133 | # It is most probably a Windows format PATH printed by |
| 20134 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20135 | # path with ; separators, and with drive letters. We can handle the |
| 20136 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20137 | # especially as we might pass files found there to a mingw objdump, |
| 20138 | # which wouldn't understand a cygwinified path. Ahh. |
| 20139 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20140 | else |
| 20141 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20142 | fi |
| 20143 | ;; |
| 20144 | pw32*) |
| 20145 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20146 | 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] | 20147 | ;; |
| 20148 | esac |
| 20149 | ;; |
| 20150 | |
| 20151 | *) |
| 20152 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20153 | ;; |
| 20154 | esac |
| 20155 | dynamic_linker='Win32 ld.exe' |
| 20156 | # FIXME: first we should search . and the directory the executable is in |
| 20157 | shlibpath_var=PATH |
| 20158 | ;; |
| 20159 | |
| 20160 | darwin* | rhapsody*) |
| 20161 | dynamic_linker="$host_os dyld" |
| 20162 | version_type=darwin |
| 20163 | need_lib_prefix=no |
| 20164 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20165 | 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] | 20166 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20167 | shlibpath_overrides_runpath=yes |
| 20168 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20169 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20170 | # 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] | 20171 | if test "$GCC" = yes; then |
| 20172 | 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"` |
| 20173 | else |
| 20174 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20175 | fi |
| 20176 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20177 | ;; |
| 20178 | |
| 20179 | dgux*) |
| 20180 | version_type=linux |
| 20181 | need_lib_prefix=no |
| 20182 | need_version=no |
| 20183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20184 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20185 | shlibpath_var=LD_LIBRARY_PATH |
| 20186 | ;; |
| 20187 | |
| 20188 | freebsd1*) |
| 20189 | dynamic_linker=no |
| 20190 | ;; |
| 20191 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20192 | kfreebsd*-gnu) |
| 20193 | version_type=linux |
| 20194 | need_lib_prefix=no |
| 20195 | need_version=no |
| 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 | shlibpath_overrides_runpath=no |
| 20200 | hardcode_into_libs=yes |
| 20201 | dynamic_linker='GNU ld.so' |
| 20202 | ;; |
| 20203 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20204 | freebsd* | dragonfly*) |
| 20205 | # DragonFly does not have aout. When/if they implement a new |
| 20206 | # versioning mechanism, adjust this. |
| 20207 | if test -x /usr/bin/objformat; then |
| 20208 | objformat=`/usr/bin/objformat` |
| 20209 | else |
| 20210 | case $host_os in |
| 20211 | freebsd[123]*) objformat=aout ;; |
| 20212 | *) objformat=elf ;; |
| 20213 | esac |
| 20214 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20215 | version_type=freebsd-$objformat |
| 20216 | case $version_type in |
| 20217 | freebsd-elf*) |
| 20218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20219 | need_version=no |
| 20220 | need_lib_prefix=no |
| 20221 | ;; |
| 20222 | freebsd-*) |
| 20223 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20224 | need_version=yes |
| 20225 | ;; |
| 20226 | esac |
| 20227 | shlibpath_var=LD_LIBRARY_PATH |
| 20228 | case $host_os in |
| 20229 | freebsd2*) |
| 20230 | shlibpath_overrides_runpath=yes |
| 20231 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20232 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20233 | shlibpath_overrides_runpath=yes |
| 20234 | hardcode_into_libs=yes |
| 20235 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20236 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20237 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20238 | shlibpath_overrides_runpath=no |
| 20239 | hardcode_into_libs=yes |
| 20240 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20241 | freebsd*) # from 4.6 on |
| 20242 | shlibpath_overrides_runpath=yes |
| 20243 | hardcode_into_libs=yes |
| 20244 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20245 | esac |
| 20246 | ;; |
| 20247 | |
| 20248 | gnu*) |
| 20249 | version_type=linux |
| 20250 | need_lib_prefix=no |
| 20251 | need_version=no |
| 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 | hardcode_into_libs=yes |
| 20256 | ;; |
| 20257 | |
| 20258 | hpux9* | hpux10* | hpux11*) |
| 20259 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20260 | # link against other versions. |
| 20261 | version_type=sunos |
| 20262 | need_lib_prefix=no |
| 20263 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20264 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20265 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20266 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20267 | hardcode_into_libs=yes |
| 20268 | dynamic_linker="$host_os dld.so" |
| 20269 | shlibpath_var=LD_LIBRARY_PATH |
| 20270 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20272 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20273 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20274 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20275 | else |
| 20276 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20277 | fi |
| 20278 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20279 | ;; |
| 20280 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20281 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20282 | hardcode_into_libs=yes |
| 20283 | dynamic_linker="$host_os dld.sl" |
| 20284 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20285 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20287 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20288 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20289 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20290 | ;; |
| 20291 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20292 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20293 | dynamic_linker="$host_os dld.sl" |
| 20294 | shlibpath_var=SHLIB_PATH |
| 20295 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20297 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20298 | ;; |
| 20299 | esac |
| 20300 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20301 | postinstall_cmds='chmod 555 $lib' |
| 20302 | ;; |
| 20303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20304 | interix3*) |
| 20305 | version_type=linux |
| 20306 | need_lib_prefix=no |
| 20307 | need_version=no |
| 20308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20309 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20310 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20311 | shlibpath_var=LD_LIBRARY_PATH |
| 20312 | shlibpath_overrides_runpath=no |
| 20313 | hardcode_into_libs=yes |
| 20314 | ;; |
| 20315 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20316 | irix5* | irix6* | nonstopux*) |
| 20317 | case $host_os in |
| 20318 | nonstopux*) version_type=nonstopux ;; |
| 20319 | *) |
| 20320 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20321 | version_type=linux |
| 20322 | else |
| 20323 | version_type=irix |
| 20324 | fi ;; |
| 20325 | esac |
| 20326 | need_lib_prefix=no |
| 20327 | need_version=no |
| 20328 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20330 | case $host_os in |
| 20331 | irix5* | nonstopux*) |
| 20332 | libsuff= shlibsuff= |
| 20333 | ;; |
| 20334 | *) |
| 20335 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20336 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20337 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20338 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20339 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20340 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20341 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20342 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20343 | esac |
| 20344 | ;; |
| 20345 | esac |
| 20346 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20347 | shlibpath_overrides_runpath=no |
| 20348 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20349 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20350 | hardcode_into_libs=yes |
| 20351 | ;; |
| 20352 | |
| 20353 | # No shared lib support for Linux oldld, aout, or coff. |
| 20354 | linux*oldld* | linux*aout* | linux*coff*) |
| 20355 | dynamic_linker=no |
| 20356 | ;; |
| 20357 | |
| 20358 | # This must be Linux ELF. |
| 20359 | linux*) |
| 20360 | version_type=linux |
| 20361 | need_lib_prefix=no |
| 20362 | need_version=no |
| 20363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20364 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20365 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20366 | shlibpath_var=LD_LIBRARY_PATH |
| 20367 | shlibpath_overrides_runpath=no |
| 20368 | # This implies no fast_install, which is unacceptable. |
| 20369 | # Some rework will be needed to allow for fast_install |
| 20370 | # before this can be enabled. |
| 20371 | hardcode_into_libs=yes |
| 20372 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20373 | # Append ld.so.conf contents to the search path |
| 20374 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20375 | 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] | 20376 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20377 | fi |
| 20378 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20379 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20380 | # powerpc, because MkLinux only supported shared libraries with the |
| 20381 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20382 | # most powerpc-linux boxes support dynamic linking these days and |
| 20383 | # people can always --disable-shared, the test was removed, and we |
| 20384 | # assume the GNU/Linux dynamic linker is in use. |
| 20385 | dynamic_linker='GNU/Linux ld.so' |
| 20386 | ;; |
| 20387 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20388 | knetbsd*-gnu) |
| 20389 | version_type=linux |
| 20390 | need_lib_prefix=no |
| 20391 | need_version=no |
| 20392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20393 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20394 | shlibpath_var=LD_LIBRARY_PATH |
| 20395 | shlibpath_overrides_runpath=no |
| 20396 | hardcode_into_libs=yes |
| 20397 | dynamic_linker='GNU ld.so' |
| 20398 | ;; |
| 20399 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20400 | netbsd*) |
| 20401 | version_type=sunos |
| 20402 | need_lib_prefix=no |
| 20403 | need_version=no |
| 20404 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20406 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20407 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20408 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20409 | 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] | 20410 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20411 | dynamic_linker='NetBSD ld.elf_so' |
| 20412 | fi |
| 20413 | shlibpath_var=LD_LIBRARY_PATH |
| 20414 | shlibpath_overrides_runpath=yes |
| 20415 | hardcode_into_libs=yes |
| 20416 | ;; |
| 20417 | |
| 20418 | newsos6) |
| 20419 | version_type=linux |
| 20420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20421 | shlibpath_var=LD_LIBRARY_PATH |
| 20422 | shlibpath_overrides_runpath=yes |
| 20423 | ;; |
| 20424 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20425 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20426 | version_type=linux |
| 20427 | need_lib_prefix=no |
| 20428 | need_version=no |
| 20429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20430 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20431 | shlibpath_var=LD_LIBRARY_PATH |
| 20432 | shlibpath_overrides_runpath=yes |
| 20433 | ;; |
| 20434 | |
| 20435 | openbsd*) |
| 20436 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20437 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20438 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20439 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20440 | case $host_os in |
| 20441 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20442 | *) need_version=no ;; |
| 20443 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20445 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20446 | shlibpath_var=LD_LIBRARY_PATH |
| 20447 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20448 | case $host_os in |
| 20449 | openbsd2.[89] | openbsd2.[89].*) |
| 20450 | shlibpath_overrides_runpath=no |
| 20451 | ;; |
| 20452 | *) |
| 20453 | shlibpath_overrides_runpath=yes |
| 20454 | ;; |
| 20455 | esac |
| 20456 | else |
| 20457 | shlibpath_overrides_runpath=yes |
| 20458 | fi |
| 20459 | ;; |
| 20460 | |
| 20461 | os2*) |
| 20462 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20463 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20464 | need_lib_prefix=no |
| 20465 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20466 | dynamic_linker='OS/2 ld.exe' |
| 20467 | shlibpath_var=LIBPATH |
| 20468 | ;; |
| 20469 | |
| 20470 | osf3* | osf4* | osf5*) |
| 20471 | version_type=osf |
| 20472 | need_lib_prefix=no |
| 20473 | need_version=no |
| 20474 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20476 | shlibpath_var=LD_LIBRARY_PATH |
| 20477 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20478 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20479 | ;; |
| 20480 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20481 | solaris*) |
| 20482 | version_type=linux |
| 20483 | need_lib_prefix=no |
| 20484 | need_version=no |
| 20485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20486 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20487 | shlibpath_var=LD_LIBRARY_PATH |
| 20488 | shlibpath_overrides_runpath=yes |
| 20489 | hardcode_into_libs=yes |
| 20490 | # ldd complains unless libraries are executable |
| 20491 | postinstall_cmds='chmod +x $lib' |
| 20492 | ;; |
| 20493 | |
| 20494 | sunos4*) |
| 20495 | version_type=sunos |
| 20496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20497 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20498 | shlibpath_var=LD_LIBRARY_PATH |
| 20499 | shlibpath_overrides_runpath=yes |
| 20500 | if test "$with_gnu_ld" = yes; then |
| 20501 | need_lib_prefix=no |
| 20502 | fi |
| 20503 | need_version=yes |
| 20504 | ;; |
| 20505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20506 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20507 | version_type=linux |
| 20508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20509 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20510 | shlibpath_var=LD_LIBRARY_PATH |
| 20511 | case $host_vendor in |
| 20512 | sni) |
| 20513 | shlibpath_overrides_runpath=no |
| 20514 | need_lib_prefix=no |
| 20515 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20516 | runpath_var=LD_RUN_PATH |
| 20517 | ;; |
| 20518 | siemens) |
| 20519 | need_lib_prefix=no |
| 20520 | ;; |
| 20521 | motorola) |
| 20522 | need_lib_prefix=no |
| 20523 | need_version=no |
| 20524 | shlibpath_overrides_runpath=no |
| 20525 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20526 | ;; |
| 20527 | esac |
| 20528 | ;; |
| 20529 | |
| 20530 | sysv4*MP*) |
| 20531 | if test -d /usr/nec ;then |
| 20532 | version_type=linux |
| 20533 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20534 | soname_spec='$libname${shared_ext}.$major' |
| 20535 | shlibpath_var=LD_LIBRARY_PATH |
| 20536 | fi |
| 20537 | ;; |
| 20538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20539 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20540 | version_type=freebsd-elf |
| 20541 | need_lib_prefix=no |
| 20542 | need_version=no |
| 20543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20544 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20545 | shlibpath_var=LD_LIBRARY_PATH |
| 20546 | hardcode_into_libs=yes |
| 20547 | if test "$with_gnu_ld" = yes; then |
| 20548 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20549 | shlibpath_overrides_runpath=no |
| 20550 | else |
| 20551 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20552 | shlibpath_overrides_runpath=yes |
| 20553 | case $host_os in |
| 20554 | sco3.2v5*) |
| 20555 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20556 | ;; |
| 20557 | esac |
| 20558 | fi |
| 20559 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20560 | ;; |
| 20561 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20562 | uts4*) |
| 20563 | version_type=linux |
| 20564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20565 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20566 | shlibpath_var=LD_LIBRARY_PATH |
| 20567 | ;; |
| 20568 | |
| 20569 | *) |
| 20570 | dynamic_linker=no |
| 20571 | ;; |
| 20572 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20573 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20574 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20575 | test "$dynamic_linker" = no && can_build_shared=no |
| 20576 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20577 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20578 | if test "$GCC" = yes; then |
| 20579 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20580 | fi |
| 20581 | |
| 20582 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20583 | 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] | 20584 | hardcode_action_CXX= |
| 20585 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20586 | test -n "$runpath_var_CXX" || \ |
| 20587 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20588 | |
| 20589 | # We can hardcode non-existant directories. |
| 20590 | if test "$hardcode_direct_CXX" != no && |
| 20591 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20592 | # have to relink, otherwise we might link with an installed library |
| 20593 | # when we should be linking with a yet-to-be-installed one |
| 20594 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20595 | test "$hardcode_minus_L_CXX" != no; then |
| 20596 | # Linking always hardcodes the temporary library directory. |
| 20597 | hardcode_action_CXX=relink |
| 20598 | else |
| 20599 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20600 | hardcode_action_CXX=immediate |
| 20601 | fi |
| 20602 | else |
| 20603 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20604 | # directories. |
| 20605 | hardcode_action_CXX=unsupported |
| 20606 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20607 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20608 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20609 | |
| 20610 | if test "$hardcode_action_CXX" = relink; then |
| 20611 | # Fast installation is not supported |
| 20612 | enable_fast_install=no |
| 20613 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20614 | test "$enable_shared" = no; then |
| 20615 | # Fast installation is not necessary |
| 20616 | enable_fast_install=needless |
| 20617 | fi |
| 20618 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20619 | |
| 20620 | # The else clause should only fire when bootstrapping the |
| 20621 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20622 | # with your package, and you will get complaints that there are |
| 20623 | # no rules to generate ltmain.sh. |
| 20624 | if test -f "$ltmain"; then |
| 20625 | # See if we are running on zsh, and set the options which allow our commands through |
| 20626 | # without removal of \ escapes. |
| 20627 | if test -n "${ZSH_VERSION+set}" ; then |
| 20628 | setopt NO_GLOB_SUBST |
| 20629 | fi |
| 20630 | # Now quote all the things that may contain metacharacters while being |
| 20631 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20632 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20633 | 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] | 20634 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20635 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20636 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20637 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20638 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20639 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20640 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20641 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20642 | compiler_CXX \ |
| 20643 | CC_CXX \ |
| 20644 | LD_CXX \ |
| 20645 | lt_prog_compiler_wl_CXX \ |
| 20646 | lt_prog_compiler_pic_CXX \ |
| 20647 | lt_prog_compiler_static_CXX \ |
| 20648 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20649 | export_dynamic_flag_spec_CXX \ |
| 20650 | thread_safe_flag_spec_CXX \ |
| 20651 | whole_archive_flag_spec_CXX \ |
| 20652 | enable_shared_with_static_runtimes_CXX \ |
| 20653 | old_archive_cmds_CXX \ |
| 20654 | old_archive_from_new_cmds_CXX \ |
| 20655 | predep_objects_CXX \ |
| 20656 | postdep_objects_CXX \ |
| 20657 | predeps_CXX \ |
| 20658 | postdeps_CXX \ |
| 20659 | compiler_lib_search_path_CXX \ |
| 20660 | archive_cmds_CXX \ |
| 20661 | archive_expsym_cmds_CXX \ |
| 20662 | postinstall_cmds_CXX \ |
| 20663 | postuninstall_cmds_CXX \ |
| 20664 | old_archive_from_expsyms_cmds_CXX \ |
| 20665 | allow_undefined_flag_CXX \ |
| 20666 | no_undefined_flag_CXX \ |
| 20667 | export_symbols_cmds_CXX \ |
| 20668 | hardcode_libdir_flag_spec_CXX \ |
| 20669 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20670 | hardcode_libdir_separator_CXX \ |
| 20671 | hardcode_automatic_CXX \ |
| 20672 | module_cmds_CXX \ |
| 20673 | module_expsym_cmds_CXX \ |
| 20674 | lt_cv_prog_compiler_c_o_CXX \ |
| 20675 | exclude_expsyms_CXX \ |
| 20676 | include_expsyms_CXX; do |
| 20677 | |
| 20678 | case $var in |
| 20679 | old_archive_cmds_CXX | \ |
| 20680 | old_archive_from_new_cmds_CXX | \ |
| 20681 | archive_cmds_CXX | \ |
| 20682 | archive_expsym_cmds_CXX | \ |
| 20683 | module_cmds_CXX | \ |
| 20684 | module_expsym_cmds_CXX | \ |
| 20685 | old_archive_from_expsyms_cmds_CXX | \ |
| 20686 | export_symbols_cmds_CXX | \ |
| 20687 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20688 | postinstall_cmds | postuninstall_cmds | \ |
| 20689 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20690 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20691 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20692 | 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] | 20693 | ;; |
| 20694 | *) |
| 20695 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20696 | ;; |
| 20697 | esac |
| 20698 | done |
| 20699 | |
| 20700 | case $lt_echo in |
| 20701 | *'\$0 --fallback-echo"') |
| 20702 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20703 | ;; |
| 20704 | esac |
| 20705 | |
| 20706 | cfgfile="$ofile" |
| 20707 | |
| 20708 | cat <<__EOF__ >> "$cfgfile" |
| 20709 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20710 | |
| 20711 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20712 | |
| 20713 | # Shell to use when invoking shell scripts. |
| 20714 | SHELL=$lt_SHELL |
| 20715 | |
| 20716 | # Whether or not to build shared libraries. |
| 20717 | build_libtool_libs=$enable_shared |
| 20718 | |
| 20719 | # Whether or not to build static libraries. |
| 20720 | build_old_libs=$enable_static |
| 20721 | |
| 20722 | # Whether or not to add -lc for building shared libraries. |
| 20723 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20724 | |
| 20725 | # Whether or not to disallow shared libs when runtime libs are static |
| 20726 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20727 | |
| 20728 | # Whether or not to optimize for fast installation. |
| 20729 | fast_install=$enable_fast_install |
| 20730 | |
| 20731 | # The host system. |
| 20732 | host_alias=$host_alias |
| 20733 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20734 | host_os=$host_os |
| 20735 | |
| 20736 | # The build system. |
| 20737 | build_alias=$build_alias |
| 20738 | build=$build |
| 20739 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20740 | |
| 20741 | # An echo program that does not interpret backslashes. |
| 20742 | echo=$lt_echo |
| 20743 | |
| 20744 | # The archiver. |
| 20745 | AR=$lt_AR |
| 20746 | AR_FLAGS=$lt_AR_FLAGS |
| 20747 | |
| 20748 | # A C compiler. |
| 20749 | LTCC=$lt_LTCC |
| 20750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20751 | # LTCC compiler flags. |
| 20752 | LTCFLAGS=$lt_LTCFLAGS |
| 20753 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20754 | # A language-specific compiler. |
| 20755 | CC=$lt_compiler_CXX |
| 20756 | |
| 20757 | # Is the compiler the GNU C compiler? |
| 20758 | with_gcc=$GCC_CXX |
| 20759 | |
| 20760 | # An ERE matcher. |
| 20761 | EGREP=$lt_EGREP |
| 20762 | |
| 20763 | # The linker used to build libraries. |
| 20764 | LD=$lt_LD_CXX |
| 20765 | |
| 20766 | # Whether we need hard or soft links. |
| 20767 | LN_S=$lt_LN_S |
| 20768 | |
| 20769 | # A BSD-compatible nm program. |
| 20770 | NM=$lt_NM |
| 20771 | |
| 20772 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20773 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20774 | |
| 20775 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20776 | MAGIC_CMD=$MAGIC_CMD |
| 20777 | |
| 20778 | # Used on cygwin: DLL creation program. |
| 20779 | DLLTOOL="$DLLTOOL" |
| 20780 | |
| 20781 | # Used on cygwin: object dumper. |
| 20782 | OBJDUMP="$OBJDUMP" |
| 20783 | |
| 20784 | # Used on cygwin: assembler. |
| 20785 | AS="$AS" |
| 20786 | |
| 20787 | # The name of the directory that contains temporary libtool files. |
| 20788 | objdir=$objdir |
| 20789 | |
| 20790 | # How to create reloadable object files. |
| 20791 | reload_flag=$lt_reload_flag |
| 20792 | reload_cmds=$lt_reload_cmds |
| 20793 | |
| 20794 | # How to pass a linker flag through the compiler. |
| 20795 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20796 | |
| 20797 | # Object file suffix (normally "o"). |
| 20798 | objext="$ac_objext" |
| 20799 | |
| 20800 | # Old archive suffix (normally "a"). |
| 20801 | libext="$libext" |
| 20802 | |
| 20803 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20804 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20805 | |
| 20806 | # Executable file suffix (normally ""). |
| 20807 | exeext="$exeext" |
| 20808 | |
| 20809 | # Additional compiler flags for building library objects. |
| 20810 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20811 | pic_mode=$pic_mode |
| 20812 | |
| 20813 | # What is the maximum length of a command? |
| 20814 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20815 | |
| 20816 | # Does compiler simultaneously support -c and -o options? |
| 20817 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20819 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20820 | need_locks=$lt_need_locks |
| 20821 | |
| 20822 | # Do we need the lib prefix for modules? |
| 20823 | need_lib_prefix=$need_lib_prefix |
| 20824 | |
| 20825 | # Do we need a version for libraries? |
| 20826 | need_version=$need_version |
| 20827 | |
| 20828 | # Whether dlopen is supported. |
| 20829 | dlopen_support=$enable_dlopen |
| 20830 | |
| 20831 | # Whether dlopen of programs is supported. |
| 20832 | dlopen_self=$enable_dlopen_self |
| 20833 | |
| 20834 | # Whether dlopen of statically linked programs is supported. |
| 20835 | dlopen_self_static=$enable_dlopen_self_static |
| 20836 | |
| 20837 | # Compiler flag to prevent dynamic linking. |
| 20838 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20839 | |
| 20840 | # Compiler flag to turn off builtin functions. |
| 20841 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20842 | |
| 20843 | # Compiler flag to allow reflexive dlopens. |
| 20844 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20845 | |
| 20846 | # Compiler flag to generate shared objects directly from archives. |
| 20847 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20848 | |
| 20849 | # Compiler flag to generate thread-safe objects. |
| 20850 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 20851 | |
| 20852 | # Library versioning type. |
| 20853 | version_type=$version_type |
| 20854 | |
| 20855 | # Format of library name prefix. |
| 20856 | libname_spec=$lt_libname_spec |
| 20857 | |
| 20858 | # List of archive names. First name is the real one, the rest are links. |
| 20859 | # The last name is the one that the linker finds with -lNAME. |
| 20860 | library_names_spec=$lt_library_names_spec |
| 20861 | |
| 20862 | # The coded name of the library, if different from the real name. |
| 20863 | soname_spec=$lt_soname_spec |
| 20864 | |
| 20865 | # Commands used to build and install an old-style archive. |
| 20866 | RANLIB=$lt_RANLIB |
| 20867 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20868 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20869 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20870 | |
| 20871 | # Create an old-style archive from a shared archive. |
| 20872 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20873 | |
| 20874 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20875 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20876 | |
| 20877 | # Commands used to build and install a shared archive. |
| 20878 | archive_cmds=$lt_archive_cmds_CXX |
| 20879 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20880 | postinstall_cmds=$lt_postinstall_cmds |
| 20881 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20882 | |
| 20883 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20884 | module_cmds=$lt_module_cmds_CXX |
| 20885 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20886 | |
| 20887 | # Commands to strip libraries. |
| 20888 | old_striplib=$lt_old_striplib |
| 20889 | striplib=$lt_striplib |
| 20890 | |
| 20891 | # Dependencies to place before the objects being linked to create a |
| 20892 | # shared library. |
| 20893 | predep_objects=$lt_predep_objects_CXX |
| 20894 | |
| 20895 | # Dependencies to place after the objects being linked to create a |
| 20896 | # shared library. |
| 20897 | postdep_objects=$lt_postdep_objects_CXX |
| 20898 | |
| 20899 | # Dependencies to place before the objects being linked to create a |
| 20900 | # shared library. |
| 20901 | predeps=$lt_predeps_CXX |
| 20902 | |
| 20903 | # Dependencies to place after the objects being linked to create a |
| 20904 | # shared library. |
| 20905 | postdeps=$lt_postdeps_CXX |
| 20906 | |
| 20907 | # The library search path used internally by the compiler when linking |
| 20908 | # a shared library. |
| 20909 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20910 | |
| 20911 | # Method to check whether dependent libraries are shared objects. |
| 20912 | deplibs_check_method=$lt_deplibs_check_method |
| 20913 | |
| 20914 | # Command to use when deplibs_check_method == file_magic. |
| 20915 | file_magic_cmd=$lt_file_magic_cmd |
| 20916 | |
| 20917 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20918 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20919 | |
| 20920 | # Flag that forces no undefined symbols. |
| 20921 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20922 | |
| 20923 | # Commands used to finish a libtool library installation in a directory. |
| 20924 | finish_cmds=$lt_finish_cmds |
| 20925 | |
| 20926 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20927 | finish_eval=$lt_finish_eval |
| 20928 | |
| 20929 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20930 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20931 | |
| 20932 | # Transform the output of nm in a proper C declaration |
| 20933 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20934 | |
| 20935 | # Transform the output of nm in a C name address pair |
| 20936 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20937 | |
| 20938 | # This is the shared library runtime path variable. |
| 20939 | runpath_var=$runpath_var |
| 20940 | |
| 20941 | # This is the shared library path variable. |
| 20942 | shlibpath_var=$shlibpath_var |
| 20943 | |
| 20944 | # Is shlibpath searched before the hard-coded library search path? |
| 20945 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20946 | |
| 20947 | # How to hardcode a shared library path into an executable. |
| 20948 | hardcode_action=$hardcode_action_CXX |
| 20949 | |
| 20950 | # Whether we should hardcode library paths into libraries. |
| 20951 | hardcode_into_libs=$hardcode_into_libs |
| 20952 | |
| 20953 | # Flag to hardcode \$libdir into a binary during linking. |
| 20954 | # This must work even if \$libdir does not exist. |
| 20955 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20956 | |
| 20957 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20958 | # a binary during linking. This must work even if \$libdir does |
| 20959 | # not exist. |
| 20960 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 20961 | |
| 20962 | # Whether we need a single -rpath flag with a separated argument. |
| 20963 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20964 | |
| 20965 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20966 | # resulting binary. |
| 20967 | hardcode_direct=$hardcode_direct_CXX |
| 20968 | |
| 20969 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20970 | # resulting binary. |
| 20971 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20972 | |
| 20973 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20974 | # the resulting binary. |
| 20975 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20976 | |
| 20977 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20978 | # and all subsequent libraries and executables linked against it. |
| 20979 | hardcode_automatic=$hardcode_automatic_CXX |
| 20980 | |
| 20981 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20982 | # restored at relink time. |
| 20983 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20984 | |
| 20985 | # Whether libtool must link a program against all its dependency libraries. |
| 20986 | link_all_deplibs=$link_all_deplibs_CXX |
| 20987 | |
| 20988 | # Compile-time system search path for libraries |
| 20989 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20990 | |
| 20991 | # Run-time system search path for libraries |
| 20992 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20993 | |
| 20994 | # Fix the shell variable \$srcfile for the compiler. |
| 20995 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 20996 | |
| 20997 | # Set to yes if exported symbols are required. |
| 20998 | always_export_symbols=$always_export_symbols_CXX |
| 20999 | |
| 21000 | # The commands to list exported symbols. |
| 21001 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21002 | |
| 21003 | # The commands to extract the exported symbol list from a shared archive. |
| 21004 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21005 | |
| 21006 | # Symbols that should not be listed in the preloaded symbols. |
| 21007 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21008 | |
| 21009 | # Symbols that must always be exported. |
| 21010 | include_expsyms=$lt_include_expsyms_CXX |
| 21011 | |
| 21012 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21013 | |
| 21014 | __EOF__ |
| 21015 | |
| 21016 | |
| 21017 | else |
| 21018 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21019 | # `config.status --recheck' to rerun these tests and create the |
| 21020 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21021 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21022 | if test -f "$ltmain_in"; then |
| 21023 | test -f Makefile && make "$ltmain" |
| 21024 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21025 | fi |
| 21026 | |
| 21027 | |
| 21028 | ac_ext=c |
| 21029 | ac_cpp='$CPP $CPPFLAGS' |
| 21030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21033 | |
| 21034 | CC=$lt_save_CC |
| 21035 | LDCXX=$LD |
| 21036 | LD=$lt_save_LD |
| 21037 | GCC=$lt_save_GCC |
| 21038 | with_gnu_ldcxx=$with_gnu_ld |
| 21039 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21040 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21041 | lt_cv_path_LD=$lt_save_path_LD |
| 21042 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21043 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21044 | |
| 21045 | else |
| 21046 | tagname="" |
| 21047 | fi |
| 21048 | ;; |
| 21049 | |
| 21050 | F77) |
| 21051 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21052 | |
| 21053 | ac_ext=f |
| 21054 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21055 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21056 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21057 | |
| 21058 | |
| 21059 | archive_cmds_need_lc_F77=no |
| 21060 | allow_undefined_flag_F77= |
| 21061 | always_export_symbols_F77=no |
| 21062 | archive_expsym_cmds_F77= |
| 21063 | export_dynamic_flag_spec_F77= |
| 21064 | hardcode_direct_F77=no |
| 21065 | hardcode_libdir_flag_spec_F77= |
| 21066 | hardcode_libdir_flag_spec_ld_F77= |
| 21067 | hardcode_libdir_separator_F77= |
| 21068 | hardcode_minus_L_F77=no |
| 21069 | hardcode_automatic_F77=no |
| 21070 | module_cmds_F77= |
| 21071 | module_expsym_cmds_F77= |
| 21072 | link_all_deplibs_F77=unknown |
| 21073 | old_archive_cmds_F77=$old_archive_cmds |
| 21074 | no_undefined_flag_F77= |
| 21075 | whole_archive_flag_spec_F77= |
| 21076 | enable_shared_with_static_runtimes_F77=no |
| 21077 | |
| 21078 | # Source file extension for f77 test sources. |
| 21079 | ac_ext=f |
| 21080 | |
| 21081 | # Object file extension for compiled f77 test sources. |
| 21082 | objext=o |
| 21083 | objext_F77=$objext |
| 21084 | |
| 21085 | # Code to be used in simple compile tests |
| 21086 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21087 | |
| 21088 | # Code to be used in simple link tests |
| 21089 | lt_simple_link_test_code=" program t\n end\n" |
| 21090 | |
| 21091 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21092 | |
| 21093 | # If no C compiler was specified, use CC. |
| 21094 | LTCC=${LTCC-"$CC"} |
| 21095 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21096 | # If no C compiler flags were specified, use CFLAGS. |
| 21097 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21098 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21099 | # Allow CC to be a program name with arguments. |
| 21100 | compiler=$CC |
| 21101 | |
| 21102 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21103 | # save warnings/boilerplate of simple test code |
| 21104 | ac_outfile=conftest.$ac_objext |
| 21105 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21106 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21107 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21108 | $rm conftest* |
| 21109 | |
| 21110 | ac_outfile=conftest.$ac_objext |
| 21111 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21112 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21113 | _lt_linker_boilerplate=`cat conftest.err` |
| 21114 | $rm conftest* |
| 21115 | |
| 21116 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21117 | # Allow CC to be a program name with arguments. |
| 21118 | lt_save_CC="$CC" |
| 21119 | CC=${F77-"f77"} |
| 21120 | compiler=$CC |
| 21121 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21122 | for cc_temp in $compiler""; do |
| 21123 | case $cc_temp in |
| 21124 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21125 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21126 | \-*) ;; |
| 21127 | *) break;; |
| 21128 | esac |
| 21129 | done |
| 21130 | 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] | 21131 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21132 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21133 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21134 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21135 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21136 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21137 | |
| 21138 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21139 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21140 | test "$can_build_shared" = "no" && enable_shared=no |
| 21141 | |
| 21142 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21143 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21144 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21145 | aix3*) |
| 21146 | test "$enable_shared" = yes && enable_static=no |
| 21147 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21148 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21149 | postinstall_cmds='$RANLIB $lib' |
| 21150 | fi |
| 21151 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21152 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21153 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21154 | test "$enable_shared" = yes && enable_static=no |
| 21155 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21156 | ;; |
| 21157 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21158 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21159 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21160 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21161 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21162 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21163 | # Make sure either enable_shared or enable_static is yes. |
| 21164 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21165 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21166 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21167 | |
| 21168 | GCC_F77="$G77" |
| 21169 | LD_F77="$LD" |
| 21170 | |
| 21171 | lt_prog_compiler_wl_F77= |
| 21172 | lt_prog_compiler_pic_F77= |
| 21173 | lt_prog_compiler_static_F77= |
| 21174 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21175 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21176 | 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] | 21177 | |
| 21178 | if test "$GCC" = yes; then |
| 21179 | lt_prog_compiler_wl_F77='-Wl,' |
| 21180 | lt_prog_compiler_static_F77='-static' |
| 21181 | |
| 21182 | case $host_os in |
| 21183 | aix*) |
| 21184 | # All AIX code is PIC. |
| 21185 | if test "$host_cpu" = ia64; then |
| 21186 | # AIX 5 now supports IA64 processor |
| 21187 | lt_prog_compiler_static_F77='-Bstatic' |
| 21188 | fi |
| 21189 | ;; |
| 21190 | |
| 21191 | amigaos*) |
| 21192 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21193 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21194 | # like `-m68040'. |
| 21195 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21196 | ;; |
| 21197 | |
| 21198 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21199 | # PIC is the default for these OSes. |
| 21200 | ;; |
| 21201 | |
| 21202 | mingw* | pw32* | os2*) |
| 21203 | # This hack is so that the source file can tell whether it is being |
| 21204 | # built for inclusion in a dll (and should export symbols for example). |
| 21205 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21206 | ;; |
| 21207 | |
| 21208 | darwin* | rhapsody*) |
| 21209 | # PIC is the default on this platform |
| 21210 | # Common symbols not allowed in MH_DYLIB files |
| 21211 | lt_prog_compiler_pic_F77='-fno-common' |
| 21212 | ;; |
| 21213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21214 | interix3*) |
| 21215 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21216 | # Instead, we relocate shared libraries at runtime. |
| 21217 | ;; |
| 21218 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21219 | msdosdjgpp*) |
| 21220 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21221 | # on systems that don't support them. |
| 21222 | lt_prog_compiler_can_build_shared_F77=no |
| 21223 | enable_shared=no |
| 21224 | ;; |
| 21225 | |
| 21226 | sysv4*MP*) |
| 21227 | if test -d /usr/nec; then |
| 21228 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21229 | fi |
| 21230 | ;; |
| 21231 | |
| 21232 | hpux*) |
| 21233 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21234 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21235 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21236 | hppa*64*|ia64*) |
| 21237 | # +Z the default |
| 21238 | ;; |
| 21239 | *) |
| 21240 | lt_prog_compiler_pic_F77='-fPIC' |
| 21241 | ;; |
| 21242 | esac |
| 21243 | ;; |
| 21244 | |
| 21245 | *) |
| 21246 | lt_prog_compiler_pic_F77='-fPIC' |
| 21247 | ;; |
| 21248 | esac |
| 21249 | else |
| 21250 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21251 | case $host_os in |
| 21252 | aix*) |
| 21253 | lt_prog_compiler_wl_F77='-Wl,' |
| 21254 | if test "$host_cpu" = ia64; then |
| 21255 | # AIX 5 now supports IA64 processor |
| 21256 | lt_prog_compiler_static_F77='-Bstatic' |
| 21257 | else |
| 21258 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21259 | fi |
| 21260 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21261 | darwin*) |
| 21262 | # PIC is the default on this platform |
| 21263 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21264 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21265 | xlc*) |
| 21266 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21267 | lt_prog_compiler_wl_F77='-Wl,' |
| 21268 | ;; |
| 21269 | esac |
| 21270 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21271 | |
| 21272 | mingw* | pw32* | os2*) |
| 21273 | # This hack is so that the source file can tell whether it is being |
| 21274 | # built for inclusion in a dll (and should export symbols for example). |
| 21275 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21276 | ;; |
| 21277 | |
| 21278 | hpux9* | hpux10* | hpux11*) |
| 21279 | lt_prog_compiler_wl_F77='-Wl,' |
| 21280 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21281 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21282 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21283 | hppa*64*|ia64*) |
| 21284 | # +Z the default |
| 21285 | ;; |
| 21286 | *) |
| 21287 | lt_prog_compiler_pic_F77='+Z' |
| 21288 | ;; |
| 21289 | esac |
| 21290 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21291 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21292 | ;; |
| 21293 | |
| 21294 | irix5* | irix6* | nonstopux*) |
| 21295 | lt_prog_compiler_wl_F77='-Wl,' |
| 21296 | # PIC (with -KPIC) is the default. |
| 21297 | lt_prog_compiler_static_F77='-non_shared' |
| 21298 | ;; |
| 21299 | |
| 21300 | newsos6) |
| 21301 | lt_prog_compiler_pic_F77='-KPIC' |
| 21302 | lt_prog_compiler_static_F77='-Bstatic' |
| 21303 | ;; |
| 21304 | |
| 21305 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21306 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21307 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21308 | lt_prog_compiler_wl_F77='-Wl,' |
| 21309 | lt_prog_compiler_pic_F77='-KPIC' |
| 21310 | lt_prog_compiler_static_F77='-static' |
| 21311 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21312 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21313 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21314 | # which looks to be a dead project) |
| 21315 | lt_prog_compiler_wl_F77='-Wl,' |
| 21316 | lt_prog_compiler_pic_F77='-fpic' |
| 21317 | lt_prog_compiler_static_F77='-Bstatic' |
| 21318 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21319 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21320 | lt_prog_compiler_wl_F77='-Wl,' |
| 21321 | # All Alpha code is PIC. |
| 21322 | lt_prog_compiler_static_F77='-non_shared' |
| 21323 | ;; |
| 21324 | esac |
| 21325 | ;; |
| 21326 | |
| 21327 | osf3* | osf4* | osf5*) |
| 21328 | lt_prog_compiler_wl_F77='-Wl,' |
| 21329 | # All OSF/1 code is PIC. |
| 21330 | lt_prog_compiler_static_F77='-non_shared' |
| 21331 | ;; |
| 21332 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21333 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21334 | lt_prog_compiler_pic_F77='-KPIC' |
| 21335 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21336 | case $cc_basename in |
| 21337 | f77* | f90* | f95*) |
| 21338 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21339 | *) |
| 21340 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21341 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21342 | ;; |
| 21343 | |
| 21344 | sunos4*) |
| 21345 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21346 | lt_prog_compiler_pic_F77='-PIC' |
| 21347 | lt_prog_compiler_static_F77='-Bstatic' |
| 21348 | ;; |
| 21349 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21350 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21351 | lt_prog_compiler_wl_F77='-Wl,' |
| 21352 | lt_prog_compiler_pic_F77='-KPIC' |
| 21353 | lt_prog_compiler_static_F77='-Bstatic' |
| 21354 | ;; |
| 21355 | |
| 21356 | sysv4*MP*) |
| 21357 | if test -d /usr/nec ;then |
| 21358 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21359 | lt_prog_compiler_static_F77='-Bstatic' |
| 21360 | fi |
| 21361 | ;; |
| 21362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21363 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21364 | lt_prog_compiler_wl_F77='-Wl,' |
| 21365 | lt_prog_compiler_pic_F77='-KPIC' |
| 21366 | lt_prog_compiler_static_F77='-Bstatic' |
| 21367 | ;; |
| 21368 | |
| 21369 | unicos*) |
| 21370 | lt_prog_compiler_wl_F77='-Wl,' |
| 21371 | lt_prog_compiler_can_build_shared_F77=no |
| 21372 | ;; |
| 21373 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21374 | uts4*) |
| 21375 | lt_prog_compiler_pic_F77='-pic' |
| 21376 | lt_prog_compiler_static_F77='-Bstatic' |
| 21377 | ;; |
| 21378 | |
| 21379 | *) |
| 21380 | lt_prog_compiler_can_build_shared_F77=no |
| 21381 | ;; |
| 21382 | esac |
| 21383 | fi |
| 21384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21385 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21386 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21387 | |
| 21388 | # |
| 21389 | # Check to make sure the PIC flag actually works. |
| 21390 | # |
| 21391 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21393 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21394 | 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] | 21395 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21397 | else |
| 21398 | lt_prog_compiler_pic_works_F77=no |
| 21399 | ac_outfile=conftest.$ac_objext |
| 21400 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21401 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21402 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21403 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21404 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21405 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21406 | # The option is referenced via a variable to avoid confusing sed. |
| 21407 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21408 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21409 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21410 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 21411 | (eval echo "\"\$as_me:21411: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21412 | (eval "$lt_compile" 2>conftest.err) |
| 21413 | ac_status=$? |
| 21414 | cat conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 21415 | echo "$as_me:21415: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21416 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21417 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21418 | # So say no if there are warnings other than the usual output. |
| 21419 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21420 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21421 | 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] | 21422 | lt_prog_compiler_pic_works_F77=yes |
| 21423 | fi |
| 21424 | fi |
| 21425 | $rm conftest* |
| 21426 | |
| 21427 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21428 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21429 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21430 | |
| 21431 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21432 | case $lt_prog_compiler_pic_F77 in |
| 21433 | "" | " "*) ;; |
| 21434 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21435 | esac |
| 21436 | else |
| 21437 | lt_prog_compiler_pic_F77= |
| 21438 | lt_prog_compiler_can_build_shared_F77=no |
| 21439 | fi |
| 21440 | |
| 21441 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21442 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21443 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21444 | *djgpp*) |
| 21445 | lt_prog_compiler_pic_F77= |
| 21446 | ;; |
| 21447 | *) |
| 21448 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21449 | ;; |
| 21450 | esac |
| 21451 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21452 | # |
| 21453 | # Check to make sure the static flag actually works. |
| 21454 | # |
| 21455 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21456 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21457 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21458 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21460 | else |
| 21461 | lt_prog_compiler_static_works_F77=no |
| 21462 | save_LDFLAGS="$LDFLAGS" |
| 21463 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21464 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21465 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21466 | # The linker can only warn and ignore the option if not recognized |
| 21467 | # So say no if there are warnings |
| 21468 | if test -s conftest.err; then |
| 21469 | # Append any errors to the config.log. |
| 21470 | cat conftest.err 1>&5 |
| 21471 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21472 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21473 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21474 | lt_prog_compiler_static_works_F77=yes |
| 21475 | fi |
| 21476 | else |
| 21477 | lt_prog_compiler_static_works_F77=yes |
| 21478 | fi |
| 21479 | fi |
| 21480 | $rm conftest* |
| 21481 | LDFLAGS="$save_LDFLAGS" |
| 21482 | |
| 21483 | fi |
| 21484 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21485 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21486 | |
| 21487 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21488 | : |
| 21489 | else |
| 21490 | lt_prog_compiler_static_F77= |
| 21491 | fi |
| 21492 | |
| 21493 | |
| 21494 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21495 | 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] | 21496 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21498 | else |
| 21499 | lt_cv_prog_compiler_c_o_F77=no |
| 21500 | $rm -r conftest 2>/dev/null |
| 21501 | mkdir conftest |
| 21502 | cd conftest |
| 21503 | mkdir out |
| 21504 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21505 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21506 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21507 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21508 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21509 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21510 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21511 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21512 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21513 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21514 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 21515 | (eval echo "\"\$as_me:21515: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21516 | (eval "$lt_compile" 2>out/conftest.err) |
| 21517 | ac_status=$? |
| 21518 | cat out/conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 21519 | echo "$as_me:21519: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21520 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21521 | then |
| 21522 | # The compiler can only warn and ignore the option if not recognized |
| 21523 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21524 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21525 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21526 | 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] | 21527 | lt_cv_prog_compiler_c_o_F77=yes |
| 21528 | fi |
| 21529 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21530 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21531 | $rm conftest* |
| 21532 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21533 | # template instantiation |
| 21534 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21535 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21536 | cd .. |
| 21537 | rmdir conftest |
| 21538 | $rm conftest* |
| 21539 | |
| 21540 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21541 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21542 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21543 | |
| 21544 | |
| 21545 | hard_links="nottested" |
| 21546 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21547 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21548 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21549 | 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] | 21550 | hard_links=yes |
| 21551 | $rm conftest* |
| 21552 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21553 | touch conftest.a |
| 21554 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21555 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21556 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21557 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21558 | if test "$hard_links" = no; then |
| 21559 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21560 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21561 | need_locks=warn |
| 21562 | fi |
| 21563 | else |
| 21564 | need_locks=no |
| 21565 | fi |
| 21566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21567 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21568 | 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] | 21569 | |
| 21570 | runpath_var= |
| 21571 | allow_undefined_flag_F77= |
| 21572 | enable_shared_with_static_runtimes_F77=no |
| 21573 | archive_cmds_F77= |
| 21574 | archive_expsym_cmds_F77= |
| 21575 | old_archive_From_new_cmds_F77= |
| 21576 | old_archive_from_expsyms_cmds_F77= |
| 21577 | export_dynamic_flag_spec_F77= |
| 21578 | whole_archive_flag_spec_F77= |
| 21579 | thread_safe_flag_spec_F77= |
| 21580 | hardcode_libdir_flag_spec_F77= |
| 21581 | hardcode_libdir_flag_spec_ld_F77= |
| 21582 | hardcode_libdir_separator_F77= |
| 21583 | hardcode_direct_F77=no |
| 21584 | hardcode_minus_L_F77=no |
| 21585 | hardcode_shlibpath_var_F77=unsupported |
| 21586 | link_all_deplibs_F77=unknown |
| 21587 | hardcode_automatic_F77=no |
| 21588 | module_cmds_F77= |
| 21589 | module_expsym_cmds_F77= |
| 21590 | always_export_symbols_F77=no |
| 21591 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21592 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21593 | # included in the symbol list |
| 21594 | include_expsyms_F77= |
| 21595 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21596 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21597 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21598 | # as well as any symbol that contains `d'. |
| 21599 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21600 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21601 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21602 | # the symbol is explicitly referenced. Since portable code cannot |
| 21603 | # rely on this symbol name, it's probably fine to never include it in |
| 21604 | # preloaded symbol tables. |
| 21605 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21606 | # Just being paranoid about ensuring that cc_basename is set. |
| 21607 | for cc_temp in $compiler""; do |
| 21608 | case $cc_temp in |
| 21609 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21610 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21611 | \-*) ;; |
| 21612 | *) break;; |
| 21613 | esac |
| 21614 | done |
| 21615 | 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] | 21616 | |
| 21617 | case $host_os in |
| 21618 | cygwin* | mingw* | pw32*) |
| 21619 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21620 | # When not using gcc, we currently assume that we are using |
| 21621 | # Microsoft Visual C++. |
| 21622 | if test "$GCC" != yes; then |
| 21623 | with_gnu_ld=no |
| 21624 | fi |
| 21625 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21626 | interix*) |
| 21627 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21628 | with_gnu_ld=yes |
| 21629 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21630 | openbsd*) |
| 21631 | with_gnu_ld=no |
| 21632 | ;; |
| 21633 | esac |
| 21634 | |
| 21635 | ld_shlibs_F77=yes |
| 21636 | if test "$with_gnu_ld" = yes; then |
| 21637 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21638 | wlarc='${wl}' |
| 21639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21640 | # Set some defaults for GNU ld with shared library support. These |
| 21641 | # are reset later if shared libraries are not supported. Putting them |
| 21642 | # here allows them to be overridden if necessary. |
| 21643 | runpath_var=LD_RUN_PATH |
| 21644 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21645 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21646 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21647 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21648 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21649 | else |
| 21650 | whole_archive_flag_spec_F77= |
| 21651 | fi |
| 21652 | supports_anon_versioning=no |
| 21653 | case `$LD -v 2>/dev/null` in |
| 21654 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21655 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21656 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21657 | *\ 2.11.*) ;; # other 2.11 versions |
| 21658 | *) supports_anon_versioning=yes ;; |
| 21659 | esac |
| 21660 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21661 | # See if GNU ld supports shared libraries. |
| 21662 | case $host_os in |
| 21663 | aix3* | aix4* | aix5*) |
| 21664 | # On AIX/PPC, the GNU linker is very broken |
| 21665 | if test "$host_cpu" != ia64; then |
| 21666 | ld_shlibs_F77=no |
| 21667 | cat <<EOF 1>&2 |
| 21668 | |
| 21669 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21670 | *** to be unable to reliably create shared libraries on AIX. |
| 21671 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21672 | *** really care for shared libraries, you may want to modify your PATH |
| 21673 | *** so that a non-GNU linker is found, and then restart. |
| 21674 | |
| 21675 | EOF |
| 21676 | fi |
| 21677 | ;; |
| 21678 | |
| 21679 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21680 | 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] | 21681 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21682 | hardcode_minus_L_F77=yes |
| 21683 | |
| 21684 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21685 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21686 | # to version 4, is to share data among multiple programs linked |
| 21687 | # with the same dynamic library. Since this doesn't match the |
| 21688 | # behavior of shared libraries on other platforms, we can't use |
| 21689 | # them. |
| 21690 | ld_shlibs_F77=no |
| 21691 | ;; |
| 21692 | |
| 21693 | beos*) |
| 21694 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21695 | allow_undefined_flag_F77=unsupported |
| 21696 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21697 | # support --undefined. This deserves some investigation. FIXME |
| 21698 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21699 | else |
| 21700 | ld_shlibs_F77=no |
| 21701 | fi |
| 21702 | ;; |
| 21703 | |
| 21704 | cygwin* | mingw* | pw32*) |
| 21705 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21706 | # as there is no search path for DLLs. |
| 21707 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21708 | allow_undefined_flag_F77=unsupported |
| 21709 | always_export_symbols_F77=no |
| 21710 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21711 | 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] | 21712 | |
| 21713 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21714 | 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] | 21715 | # If the export-symbols file already is a .def file (1st line |
| 21716 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21717 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21718 | cp $export_symbols $output_objdir/$soname.def; |
| 21719 | else |
| 21720 | echo EXPORTS > $output_objdir/$soname.def; |
| 21721 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21722 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21723 | $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] | 21724 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21725 | ld_shlibs_F77=no |
| 21726 | fi |
| 21727 | ;; |
| 21728 | |
| 21729 | interix3*) |
| 21730 | hardcode_direct_F77=no |
| 21731 | hardcode_shlibpath_var_F77=no |
| 21732 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21733 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21734 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21735 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21736 | # default) and relocated if they conflict, which is a slow very memory |
| 21737 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21738 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21739 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21740 | 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' |
| 21741 | 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' |
| 21742 | ;; |
| 21743 | |
| 21744 | linux*) |
| 21745 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21746 | tmp_addflag= |
| 21747 | case $cc_basename,$host_cpu in |
| 21748 | pgcc*) # Portland Group C compiler |
| 21749 | 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' |
| 21750 | tmp_addflag=' $pic_flag' |
| 21751 | ;; |
| 21752 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21753 | 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' |
| 21754 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21755 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21756 | tmp_addflag=' -i_dynamic' ;; |
| 21757 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21758 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21759 | ifc* | ifort*) # Intel Fortran compiler |
| 21760 | tmp_addflag=' -nofor_main' ;; |
| 21761 | esac |
| 21762 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21763 | |
| 21764 | if test $supports_anon_versioning = yes; then |
| 21765 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21766 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21767 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21768 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21769 | fi |
| 21770 | else |
| 21771 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21772 | fi |
| 21773 | ;; |
| 21774 | |
| 21775 | netbsd*) |
| 21776 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21777 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21778 | wlarc= |
| 21779 | else |
| 21780 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21781 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21782 | fi |
| 21783 | ;; |
| 21784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21785 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21786 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21787 | ld_shlibs_F77=no |
| 21788 | cat <<EOF 1>&2 |
| 21789 | |
| 21790 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21791 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21792 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21793 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21794 | *** your PATH or compiler configuration so that the native linker is |
| 21795 | *** used, and then restart. |
| 21796 | |
| 21797 | EOF |
| 21798 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21799 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21800 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21801 | else |
| 21802 | ld_shlibs_F77=no |
| 21803 | fi |
| 21804 | ;; |
| 21805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21806 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21807 | case `$LD -v 2>&1` in |
| 21808 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 21809 | ld_shlibs_F77=no |
| 21810 | cat <<_LT_EOF 1>&2 |
| 21811 | |
| 21812 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21813 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21814 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21815 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21816 | *** your PATH or compiler configuration so that the native linker is |
| 21817 | *** used, and then restart. |
| 21818 | |
| 21819 | _LT_EOF |
| 21820 | ;; |
| 21821 | *) |
| 21822 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21823 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 21824 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 21825 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 21826 | else |
| 21827 | ld_shlibs_F77=no |
| 21828 | fi |
| 21829 | ;; |
| 21830 | esac |
| 21831 | ;; |
| 21832 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21833 | sunos4*) |
| 21834 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21835 | wlarc= |
| 21836 | hardcode_direct_F77=yes |
| 21837 | hardcode_shlibpath_var_F77=no |
| 21838 | ;; |
| 21839 | |
| 21840 | *) |
| 21841 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21842 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21843 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21844 | else |
| 21845 | ld_shlibs_F77=no |
| 21846 | fi |
| 21847 | ;; |
| 21848 | esac |
| 21849 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21850 | if test "$ld_shlibs_F77" = no; then |
| 21851 | runpath_var= |
| 21852 | hardcode_libdir_flag_spec_F77= |
| 21853 | export_dynamic_flag_spec_F77= |
| 21854 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21855 | fi |
| 21856 | else |
| 21857 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21858 | case $host_os in |
| 21859 | aix3*) |
| 21860 | allow_undefined_flag_F77=unsupported |
| 21861 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21862 | 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] | 21863 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21864 | # are no directories specified by -L. |
| 21865 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21866 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21867 | # Neither direct hardcoding nor static linking is supported with a |
| 21868 | # broken collect2. |
| 21869 | hardcode_direct_F77=unsupported |
| 21870 | fi |
| 21871 | ;; |
| 21872 | |
| 21873 | aix4* | aix5*) |
| 21874 | if test "$host_cpu" = ia64; then |
| 21875 | # On IA64, the linker does run time linking by default, so we don't |
| 21876 | # have to do anything special. |
| 21877 | aix_use_runtimelinking=no |
| 21878 | exp_sym_flag='-Bexport' |
| 21879 | no_entry_flag="" |
| 21880 | else |
| 21881 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21882 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21883 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21884 | 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' |
| 21885 | else |
| 21886 | 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' |
| 21887 | fi |
| 21888 | aix_use_runtimelinking=no |
| 21889 | |
| 21890 | # Test if we are trying to use run time linking or normal |
| 21891 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21892 | # need to do runtime linking. |
| 21893 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21894 | for ld_flag in $LDFLAGS; do |
| 21895 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21896 | aix_use_runtimelinking=yes |
| 21897 | break |
| 21898 | fi |
| 21899 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21900 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21901 | esac |
| 21902 | |
| 21903 | exp_sym_flag='-bexport' |
| 21904 | no_entry_flag='-bnoentry' |
| 21905 | fi |
| 21906 | |
| 21907 | # When large executables or shared objects are built, AIX ld can |
| 21908 | # have problems creating the table of contents. If linking a library |
| 21909 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21910 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21911 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21912 | |
| 21913 | archive_cmds_F77='' |
| 21914 | hardcode_direct_F77=yes |
| 21915 | hardcode_libdir_separator_F77=':' |
| 21916 | link_all_deplibs_F77=yes |
| 21917 | |
| 21918 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21919 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21920 | # We only want to do this on AIX 4.2 and lower, the check |
| 21921 | # below for broken collect2 doesn't work under 4.3+ |
| 21922 | collect2name=`${CC} -print-prog-name=collect2` |
| 21923 | if test -f "$collect2name" && \ |
| 21924 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21925 | then |
| 21926 | # We have reworked collect2 |
| 21927 | hardcode_direct_F77=yes |
| 21928 | else |
| 21929 | # We have old collect2 |
| 21930 | hardcode_direct_F77=unsupported |
| 21931 | # It fails to find uninstalled libraries when the uninstalled |
| 21932 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21933 | # to unsupported forces relinking |
| 21934 | hardcode_minus_L_F77=yes |
| 21935 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21936 | hardcode_libdir_separator_F77= |
| 21937 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21938 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21939 | esac |
| 21940 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21941 | if test "$aix_use_runtimelinking" = yes; then |
| 21942 | shared_flag="$shared_flag "'${wl}-G' |
| 21943 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21944 | else |
| 21945 | # not using gcc |
| 21946 | if test "$host_cpu" = ia64; then |
| 21947 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21948 | # chokes on -Wl,-G. The following line is correct: |
| 21949 | shared_flag='-G' |
| 21950 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21951 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21952 | shared_flag='${wl}-G' |
| 21953 | else |
| 21954 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21955 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21956 | fi |
| 21957 | fi |
| 21958 | |
| 21959 | # It seems that -bexpall does not export symbols beginning with |
| 21960 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21961 | always_export_symbols_F77=yes |
| 21962 | if test "$aix_use_runtimelinking" = yes; then |
| 21963 | # Warning - without using the other runtime loading flags (-brtl), |
| 21964 | # -berok will link without error, but may produce a broken library. |
| 21965 | allow_undefined_flag_F77='-berok' |
| 21966 | # Determine the default libpath from the value encoded in an empty executable. |
| 21967 | cat >conftest.$ac_ext <<_ACEOF |
| 21968 | program main |
| 21969 | |
| 21970 | end |
| 21971 | _ACEOF |
| 21972 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21973 | if { (ac_try="$ac_link" |
| 21974 | case "(($ac_try" in |
| 21975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21976 | *) ac_try_echo=$ac_try;; |
| 21977 | esac |
| 21978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21979 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21980 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21982 | rm -f conftest.er1 |
| 21983 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 21985 | (exit $ac_status); } && |
| 21986 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21987 | { (case "(($ac_try" in |
| 21988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21989 | *) ac_try_echo=$ac_try;; |
| 21990 | esac |
| 21991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21992 | (eval "$ac_try") 2>&5 |
| 21993 | ac_status=$? |
| 21994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21995 | (exit $ac_status); }; } && |
| 21996 | { ac_try='test -s conftest$ac_exeext' |
| 21997 | { (case "(($ac_try" in |
| 21998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21999 | *) ac_try_echo=$ac_try;; |
| 22000 | esac |
| 22001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22002 | (eval "$ac_try") 2>&5 |
| 22003 | ac_status=$? |
| 22004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22005 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22006 | |
| 22007 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22008 | }'` |
| 22009 | # Check for a 64-bit object if we didn't find anything. |
| 22010 | 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; } |
| 22011 | }'`; fi |
| 22012 | else |
| 22013 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22015 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22016 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22017 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22018 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22019 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22020 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22021 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22022 | |
| 22023 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22024 | 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] | 22025 | else |
| 22026 | if test "$host_cpu" = ia64; then |
| 22027 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 22028 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22029 | 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] | 22030 | else |
| 22031 | # Determine the default libpath from the value encoded in an empty executable. |
| 22032 | cat >conftest.$ac_ext <<_ACEOF |
| 22033 | program main |
| 22034 | |
| 22035 | end |
| 22036 | _ACEOF |
| 22037 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22038 | if { (ac_try="$ac_link" |
| 22039 | case "(($ac_try" in |
| 22040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22041 | *) ac_try_echo=$ac_try;; |
| 22042 | esac |
| 22043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22044 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22045 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22047 | rm -f conftest.er1 |
| 22048 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22050 | (exit $ac_status); } && |
| 22051 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22052 | { (case "(($ac_try" in |
| 22053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22054 | *) ac_try_echo=$ac_try;; |
| 22055 | esac |
| 22056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22057 | (eval "$ac_try") 2>&5 |
| 22058 | ac_status=$? |
| 22059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22060 | (exit $ac_status); }; } && |
| 22061 | { ac_try='test -s conftest$ac_exeext' |
| 22062 | { (case "(($ac_try" in |
| 22063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22064 | *) ac_try_echo=$ac_try;; |
| 22065 | esac |
| 22066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22067 | (eval "$ac_try") 2>&5 |
| 22068 | ac_status=$? |
| 22069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22070 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22071 | |
| 22072 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22073 | }'` |
| 22074 | # Check for a 64-bit object if we didn't find anything. |
| 22075 | 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; } |
| 22076 | }'`; fi |
| 22077 | else |
| 22078 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22081 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22082 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22083 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22084 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22085 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22086 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22087 | |
| 22088 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22089 | # Warning - without using the other run time loading flags, |
| 22090 | # -berok will link without error, but may produce a broken library. |
| 22091 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22092 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22093 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22094 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22095 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22096 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22097 | 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] | 22098 | fi |
| 22099 | fi |
| 22100 | ;; |
| 22101 | |
| 22102 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22103 | 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] | 22104 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22105 | hardcode_minus_L_F77=yes |
| 22106 | # see comment about different semantics on the GNU ld section |
| 22107 | ld_shlibs_F77=no |
| 22108 | ;; |
| 22109 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22110 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22111 | export_dynamic_flag_spec_F77=-rdynamic |
| 22112 | ;; |
| 22113 | |
| 22114 | cygwin* | mingw* | pw32*) |
| 22115 | # When not using gcc, we currently assume that we are using |
| 22116 | # Microsoft Visual C++. |
| 22117 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22118 | # no search path for DLLs. |
| 22119 | hardcode_libdir_flag_spec_F77=' ' |
| 22120 | allow_undefined_flag_F77=unsupported |
| 22121 | # Tell ltmain to make .lib files, not .a files. |
| 22122 | libext=lib |
| 22123 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22124 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22125 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22126 | 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] | 22127 | # The linker will automatically build a .lib file if we build a DLL. |
| 22128 | old_archive_From_new_cmds_F77='true' |
| 22129 | # FIXME: Should let the user specify the lib program. |
| 22130 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22131 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22132 | enable_shared_with_static_runtimes_F77=yes |
| 22133 | ;; |
| 22134 | |
| 22135 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22136 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22137 | rhapsody* | darwin1.[012]) |
| 22138 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22139 | ;; |
| 22140 | *) # Darwin 1.3 on |
| 22141 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22142 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22143 | else |
| 22144 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22145 | 10.[012]) |
| 22146 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22147 | ;; |
| 22148 | 10.*) |
| 22149 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22150 | ;; |
| 22151 | esac |
| 22152 | fi |
| 22153 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22154 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22155 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22156 | hardcode_direct_F77=no |
| 22157 | hardcode_automatic_F77=yes |
| 22158 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22159 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22160 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22161 | if test "$GCC" = yes ; then |
| 22162 | output_verbose_link_cmd='echo' |
| 22163 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22164 | 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] | 22165 | # 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] | 22166 | 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}' |
| 22167 | 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] | 22168 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22169 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22170 | xlc*) |
| 22171 | output_verbose_link_cmd='echo' |
| 22172 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22173 | 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] | 22174 | # 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] | 22175 | 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}' |
| 22176 | 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] | 22177 | ;; |
| 22178 | *) |
| 22179 | ld_shlibs_F77=no |
| 22180 | ;; |
| 22181 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22182 | fi |
| 22183 | ;; |
| 22184 | |
| 22185 | dgux*) |
| 22186 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22187 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22188 | hardcode_shlibpath_var_F77=no |
| 22189 | ;; |
| 22190 | |
| 22191 | freebsd1*) |
| 22192 | ld_shlibs_F77=no |
| 22193 | ;; |
| 22194 | |
| 22195 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22196 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22197 | # does not break anything, and helps significantly (at the cost of a little |
| 22198 | # extra space). |
| 22199 | freebsd2.2*) |
| 22200 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22201 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22202 | hardcode_direct_F77=yes |
| 22203 | hardcode_shlibpath_var_F77=no |
| 22204 | ;; |
| 22205 | |
| 22206 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22207 | freebsd2*) |
| 22208 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22209 | hardcode_direct_F77=yes |
| 22210 | hardcode_minus_L_F77=yes |
| 22211 | hardcode_shlibpath_var_F77=no |
| 22212 | ;; |
| 22213 | |
| 22214 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22215 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22216 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22217 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22218 | hardcode_direct_F77=yes |
| 22219 | hardcode_shlibpath_var_F77=no |
| 22220 | ;; |
| 22221 | |
| 22222 | hpux9*) |
| 22223 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22224 | 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] | 22225 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22226 | 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] | 22227 | fi |
| 22228 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22229 | hardcode_libdir_separator_F77=: |
| 22230 | hardcode_direct_F77=yes |
| 22231 | |
| 22232 | # hardcode_minus_L: Not really in the search PATH, |
| 22233 | # but as the default location of the library. |
| 22234 | hardcode_minus_L_F77=yes |
| 22235 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22236 | ;; |
| 22237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22238 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22239 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22240 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22241 | else |
| 22242 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22243 | fi |
| 22244 | if test "$with_gnu_ld" = no; then |
| 22245 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22246 | hardcode_libdir_separator_F77=: |
| 22247 | |
| 22248 | hardcode_direct_F77=yes |
| 22249 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22250 | |
| 22251 | # hardcode_minus_L: Not really in the search PATH, |
| 22252 | # but as the default location of the library. |
| 22253 | hardcode_minus_L_F77=yes |
| 22254 | fi |
| 22255 | ;; |
| 22256 | |
| 22257 | hpux11*) |
| 22258 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22259 | case $host_cpu in |
| 22260 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22261 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22262 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22263 | ia64*) |
| 22264 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22265 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22266 | *) |
| 22267 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22268 | ;; |
| 22269 | esac |
| 22270 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22271 | case $host_cpu in |
| 22272 | hppa*64*) |
| 22273 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22274 | ;; |
| 22275 | ia64*) |
| 22276 | 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] | 22277 | ;; |
| 22278 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22279 | 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] | 22280 | ;; |
| 22281 | esac |
| 22282 | fi |
| 22283 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22284 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22285 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22287 | case $host_cpu in |
| 22288 | hppa*64*|ia64*) |
| 22289 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22290 | hardcode_direct_F77=no |
| 22291 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22292 | ;; |
| 22293 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22294 | hardcode_direct_F77=yes |
| 22295 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22296 | |
| 22297 | # hardcode_minus_L: Not really in the search PATH, |
| 22298 | # but as the default location of the library. |
| 22299 | hardcode_minus_L_F77=yes |
| 22300 | ;; |
| 22301 | esac |
| 22302 | fi |
| 22303 | ;; |
| 22304 | |
| 22305 | irix5* | irix6* | nonstopux*) |
| 22306 | if test "$GCC" = yes; then |
| 22307 | 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' |
| 22308 | else |
| 22309 | 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' |
| 22310 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22311 | fi |
| 22312 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22313 | hardcode_libdir_separator_F77=: |
| 22314 | link_all_deplibs_F77=yes |
| 22315 | ;; |
| 22316 | |
| 22317 | netbsd*) |
| 22318 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22319 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22320 | else |
| 22321 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22322 | fi |
| 22323 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22324 | hardcode_direct_F77=yes |
| 22325 | hardcode_shlibpath_var_F77=no |
| 22326 | ;; |
| 22327 | |
| 22328 | newsos6) |
| 22329 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22330 | hardcode_direct_F77=yes |
| 22331 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22332 | hardcode_libdir_separator_F77=: |
| 22333 | hardcode_shlibpath_var_F77=no |
| 22334 | ;; |
| 22335 | |
| 22336 | openbsd*) |
| 22337 | hardcode_direct_F77=yes |
| 22338 | hardcode_shlibpath_var_F77=no |
| 22339 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22340 | 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] | 22341 | 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] | 22342 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22343 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22344 | else |
| 22345 | case $host_os in |
| 22346 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22347 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22348 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22349 | ;; |
| 22350 | *) |
| 22351 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22352 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22353 | ;; |
| 22354 | esac |
| 22355 | fi |
| 22356 | ;; |
| 22357 | |
| 22358 | os2*) |
| 22359 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22360 | hardcode_minus_L_F77=yes |
| 22361 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22362 | 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] | 22363 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22364 | ;; |
| 22365 | |
| 22366 | osf3*) |
| 22367 | if test "$GCC" = yes; then |
| 22368 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22369 | 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' |
| 22370 | else |
| 22371 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22372 | 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' |
| 22373 | fi |
| 22374 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22375 | hardcode_libdir_separator_F77=: |
| 22376 | ;; |
| 22377 | |
| 22378 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22379 | if test "$GCC" = yes; then |
| 22380 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22381 | 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' |
| 22382 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22383 | else |
| 22384 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22385 | 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] | 22386 | 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] | 22387 | $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] | 22388 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22389 | # Both c and cxx compiler support -rpath directly |
| 22390 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22391 | fi |
| 22392 | hardcode_libdir_separator_F77=: |
| 22393 | ;; |
| 22394 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22395 | solaris*) |
| 22396 | no_undefined_flag_F77=' -z text' |
| 22397 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22398 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22399 | 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] | 22400 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22401 | $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] | 22402 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22403 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22404 | 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] | 22405 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22406 | $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] | 22407 | fi |
| 22408 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22409 | hardcode_shlibpath_var_F77=no |
| 22410 | case $host_os in |
| 22411 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22412 | *) |
| 22413 | # The compiler driver will combine linker options so we |
| 22414 | # cannot just pass the convience library names through |
| 22415 | # without $wl, iff we do not link with $LD. |
| 22416 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22417 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22418 | case $wlarc in |
| 22419 | '') |
| 22420 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22421 | *) |
| 22422 | 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' ;; |
| 22423 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22424 | esac |
| 22425 | link_all_deplibs_F77=yes |
| 22426 | ;; |
| 22427 | |
| 22428 | sunos4*) |
| 22429 | if test "x$host_vendor" = xsequent; then |
| 22430 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22431 | # files that make .init and .fini sections work. |
| 22432 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22433 | else |
| 22434 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22435 | fi |
| 22436 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22437 | hardcode_direct_F77=yes |
| 22438 | hardcode_minus_L_F77=yes |
| 22439 | hardcode_shlibpath_var_F77=no |
| 22440 | ;; |
| 22441 | |
| 22442 | sysv4) |
| 22443 | case $host_vendor in |
| 22444 | sni) |
| 22445 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22446 | hardcode_direct_F77=yes # is this really true??? |
| 22447 | ;; |
| 22448 | siemens) |
| 22449 | ## LD is ld it makes a PLAMLIB |
| 22450 | ## CC just makes a GrossModule. |
| 22451 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22452 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22453 | hardcode_direct_F77=no |
| 22454 | ;; |
| 22455 | motorola) |
| 22456 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22457 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22458 | ;; |
| 22459 | esac |
| 22460 | runpath_var='LD_RUN_PATH' |
| 22461 | hardcode_shlibpath_var_F77=no |
| 22462 | ;; |
| 22463 | |
| 22464 | sysv4.3*) |
| 22465 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22466 | hardcode_shlibpath_var_F77=no |
| 22467 | export_dynamic_flag_spec_F77='-Bexport' |
| 22468 | ;; |
| 22469 | |
| 22470 | sysv4*MP*) |
| 22471 | if test -d /usr/nec; then |
| 22472 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22473 | hardcode_shlibpath_var_F77=no |
| 22474 | runpath_var=LD_RUN_PATH |
| 22475 | hardcode_runpath_var=yes |
| 22476 | ld_shlibs_F77=yes |
| 22477 | fi |
| 22478 | ;; |
| 22479 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22480 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22481 | no_undefined_flag_F77='${wl}-z,text' |
| 22482 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22483 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22484 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22485 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22486 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22487 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22488 | 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] | 22489 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22490 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22491 | 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] | 22492 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22493 | ;; |
| 22494 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22495 | sysv5* | sco3.2v5* | sco5v6*) |
| 22496 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22497 | # link with -lc, and that would cause any symbols used from libc to |
| 22498 | # always be unresolved, which means just about no library would |
| 22499 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22500 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22501 | # as -z defs. |
| 22502 | no_undefined_flag_F77='${wl}-z,text' |
| 22503 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22504 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22505 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22506 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22507 | hardcode_libdir_separator_F77=':' |
| 22508 | link_all_deplibs_F77=yes |
| 22509 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22510 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22511 | |
| 22512 | if test "$GCC" = yes; then |
| 22513 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22514 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22515 | else |
| 22516 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22517 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22518 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22519 | ;; |
| 22520 | |
| 22521 | uts4*) |
| 22522 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22523 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22524 | hardcode_shlibpath_var_F77=no |
| 22525 | ;; |
| 22526 | |
| 22527 | *) |
| 22528 | ld_shlibs_F77=no |
| 22529 | ;; |
| 22530 | esac |
| 22531 | fi |
| 22532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22533 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22534 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22535 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22536 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22537 | # |
| 22538 | # Do we need to explicitly link libc? |
| 22539 | # |
| 22540 | case "x$archive_cmds_need_lc_F77" in |
| 22541 | x|xyes) |
| 22542 | # Assume -lc should be added |
| 22543 | archive_cmds_need_lc_F77=yes |
| 22544 | |
| 22545 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22546 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22547 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22548 | # FIXME: we may have to deal with multi-command sequences. |
| 22549 | ;; |
| 22550 | '$CC '*) |
| 22551 | # Test whether the compiler implicitly links with -lc since on some |
| 22552 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22553 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22554 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22555 | 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] | 22556 | $rm conftest* |
| 22557 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22558 | |
| 22559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22560 | (eval $ac_compile) 2>&5 |
| 22561 | ac_status=$? |
| 22562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22563 | (exit $ac_status); } 2>conftest.err; then |
| 22564 | soname=conftest |
| 22565 | lib=conftest |
| 22566 | libobjs=conftest.$ac_objext |
| 22567 | deplibs= |
| 22568 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22569 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22570 | compiler_flags=-v |
| 22571 | linker_flags=-v |
| 22572 | verstring= |
| 22573 | output_objdir=. |
| 22574 | libname=conftest |
| 22575 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22576 | allow_undefined_flag_F77= |
| 22577 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22578 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22579 | ac_status=$? |
| 22580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22581 | (exit $ac_status); } |
| 22582 | then |
| 22583 | archive_cmds_need_lc_F77=no |
| 22584 | else |
| 22585 | archive_cmds_need_lc_F77=yes |
| 22586 | fi |
| 22587 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22588 | else |
| 22589 | cat conftest.err 1>&5 |
| 22590 | fi |
| 22591 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22592 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22593 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22594 | ;; |
| 22595 | esac |
| 22596 | fi |
| 22597 | ;; |
| 22598 | esac |
| 22599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22600 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22601 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22602 | library_names_spec= |
| 22603 | libname_spec='lib$name' |
| 22604 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22605 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22606 | postinstall_cmds= |
| 22607 | postuninstall_cmds= |
| 22608 | finish_cmds= |
| 22609 | finish_eval= |
| 22610 | shlibpath_var= |
| 22611 | shlibpath_overrides_runpath=unknown |
| 22612 | version_type=none |
| 22613 | dynamic_linker="$host_os ld.so" |
| 22614 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22615 | if test "$GCC" = yes; then |
| 22616 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22617 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22618 | # if the path contains ";" then we assume it to be the separator |
| 22619 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22620 | # assumed that no part of a normal pathname contains ";" but that should |
| 22621 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22622 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22623 | else |
| 22624 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22625 | fi |
| 22626 | else |
| 22627 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22628 | fi |
| 22629 | need_lib_prefix=unknown |
| 22630 | hardcode_into_libs=no |
| 22631 | |
| 22632 | # when you set need_version to no, make sure it does not cause -set_version |
| 22633 | # flags to be left without arguments |
| 22634 | need_version=unknown |
| 22635 | |
| 22636 | case $host_os in |
| 22637 | aix3*) |
| 22638 | version_type=linux |
| 22639 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22640 | shlibpath_var=LIBPATH |
| 22641 | |
| 22642 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22643 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22644 | ;; |
| 22645 | |
| 22646 | aix4* | aix5*) |
| 22647 | version_type=linux |
| 22648 | need_lib_prefix=no |
| 22649 | need_version=no |
| 22650 | hardcode_into_libs=yes |
| 22651 | if test "$host_cpu" = ia64; then |
| 22652 | # AIX 5 supports IA64 |
| 22653 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22654 | shlibpath_var=LD_LIBRARY_PATH |
| 22655 | else |
| 22656 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22657 | # for dependence libraries. The import file would start with |
| 22658 | # the line `#! .'. This would cause the generated library to |
| 22659 | # depend on `.', always an invalid library. This was fixed in |
| 22660 | # development snapshots of GCC prior to 3.0. |
| 22661 | case $host_os in |
| 22662 | aix4 | aix4.[01] | aix4.[01].*) |
| 22663 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22664 | echo ' yes ' |
| 22665 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22666 | : |
| 22667 | else |
| 22668 | can_build_shared=no |
| 22669 | fi |
| 22670 | ;; |
| 22671 | esac |
| 22672 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22673 | # soname into executable. Probably we can add versioning support to |
| 22674 | # collect2, so additional links can be useful in future. |
| 22675 | if test "$aix_use_runtimelinking" = yes; then |
| 22676 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22677 | # instead of lib<name>.a to let people know that these are not |
| 22678 | # typical AIX shared libraries. |
| 22679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22680 | else |
| 22681 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22682 | # and later when we are not doing run time linking. |
| 22683 | library_names_spec='${libname}${release}.a $libname.a' |
| 22684 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22685 | fi |
| 22686 | shlibpath_var=LIBPATH |
| 22687 | fi |
| 22688 | ;; |
| 22689 | |
| 22690 | amigaos*) |
| 22691 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22692 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22693 | 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] | 22694 | ;; |
| 22695 | |
| 22696 | beos*) |
| 22697 | library_names_spec='${libname}${shared_ext}' |
| 22698 | dynamic_linker="$host_os ld.so" |
| 22699 | shlibpath_var=LIBRARY_PATH |
| 22700 | ;; |
| 22701 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22702 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22703 | version_type=linux |
| 22704 | need_version=no |
| 22705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22706 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22707 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22708 | shlibpath_var=LD_LIBRARY_PATH |
| 22709 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22710 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22711 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22712 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22713 | # libtool to hard-code these into programs |
| 22714 | ;; |
| 22715 | |
| 22716 | cygwin* | mingw* | pw32*) |
| 22717 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22718 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22719 | need_version=no |
| 22720 | need_lib_prefix=no |
| 22721 | |
| 22722 | case $GCC,$host_os in |
| 22723 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22724 | library_names_spec='$libname.dll.a' |
| 22725 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22726 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22727 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22728 | dldir=$destdir/`dirname \$dlpath`~ |
| 22729 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22730 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22731 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22732 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22733 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22734 | $rm \$dlpath' |
| 22735 | shlibpath_overrides_runpath=yes |
| 22736 | |
| 22737 | case $host_os in |
| 22738 | cygwin*) |
| 22739 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22740 | 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] | 22741 | 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] | 22742 | ;; |
| 22743 | mingw*) |
| 22744 | # MinGW DLLs use traditional 'lib' prefix |
| 22745 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22746 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22747 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22748 | # It is most probably a Windows format PATH printed by |
| 22749 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22750 | # path with ; separators, and with drive letters. We can handle the |
| 22751 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22752 | # especially as we might pass files found there to a mingw objdump, |
| 22753 | # which wouldn't understand a cygwinified path. Ahh. |
| 22754 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22755 | else |
| 22756 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22757 | fi |
| 22758 | ;; |
| 22759 | pw32*) |
| 22760 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22761 | 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] | 22762 | ;; |
| 22763 | esac |
| 22764 | ;; |
| 22765 | |
| 22766 | *) |
| 22767 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22768 | ;; |
| 22769 | esac |
| 22770 | dynamic_linker='Win32 ld.exe' |
| 22771 | # FIXME: first we should search . and the directory the executable is in |
| 22772 | shlibpath_var=PATH |
| 22773 | ;; |
| 22774 | |
| 22775 | darwin* | rhapsody*) |
| 22776 | dynamic_linker="$host_os dyld" |
| 22777 | version_type=darwin |
| 22778 | need_lib_prefix=no |
| 22779 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22780 | 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] | 22781 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22782 | shlibpath_overrides_runpath=yes |
| 22783 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 22784 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22785 | # 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] | 22786 | if test "$GCC" = yes; then |
| 22787 | 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"` |
| 22788 | else |
| 22789 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22790 | fi |
| 22791 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22792 | ;; |
| 22793 | |
| 22794 | dgux*) |
| 22795 | version_type=linux |
| 22796 | need_lib_prefix=no |
| 22797 | need_version=no |
| 22798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22799 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22800 | shlibpath_var=LD_LIBRARY_PATH |
| 22801 | ;; |
| 22802 | |
| 22803 | freebsd1*) |
| 22804 | dynamic_linker=no |
| 22805 | ;; |
| 22806 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22807 | kfreebsd*-gnu) |
| 22808 | version_type=linux |
| 22809 | need_lib_prefix=no |
| 22810 | need_version=no |
| 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 | shlibpath_overrides_runpath=no |
| 22815 | hardcode_into_libs=yes |
| 22816 | dynamic_linker='GNU ld.so' |
| 22817 | ;; |
| 22818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22819 | freebsd* | dragonfly*) |
| 22820 | # DragonFly does not have aout. When/if they implement a new |
| 22821 | # versioning mechanism, adjust this. |
| 22822 | if test -x /usr/bin/objformat; then |
| 22823 | objformat=`/usr/bin/objformat` |
| 22824 | else |
| 22825 | case $host_os in |
| 22826 | freebsd[123]*) objformat=aout ;; |
| 22827 | *) objformat=elf ;; |
| 22828 | esac |
| 22829 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22830 | version_type=freebsd-$objformat |
| 22831 | case $version_type in |
| 22832 | freebsd-elf*) |
| 22833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22834 | need_version=no |
| 22835 | need_lib_prefix=no |
| 22836 | ;; |
| 22837 | freebsd-*) |
| 22838 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22839 | need_version=yes |
| 22840 | ;; |
| 22841 | esac |
| 22842 | shlibpath_var=LD_LIBRARY_PATH |
| 22843 | case $host_os in |
| 22844 | freebsd2*) |
| 22845 | shlibpath_overrides_runpath=yes |
| 22846 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22847 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22848 | shlibpath_overrides_runpath=yes |
| 22849 | hardcode_into_libs=yes |
| 22850 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22851 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 22852 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22853 | shlibpath_overrides_runpath=no |
| 22854 | hardcode_into_libs=yes |
| 22855 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22856 | freebsd*) # from 4.6 on |
| 22857 | shlibpath_overrides_runpath=yes |
| 22858 | hardcode_into_libs=yes |
| 22859 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22860 | esac |
| 22861 | ;; |
| 22862 | |
| 22863 | gnu*) |
| 22864 | version_type=linux |
| 22865 | need_lib_prefix=no |
| 22866 | need_version=no |
| 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 | hardcode_into_libs=yes |
| 22871 | ;; |
| 22872 | |
| 22873 | hpux9* | hpux10* | hpux11*) |
| 22874 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22875 | # link against other versions. |
| 22876 | version_type=sunos |
| 22877 | need_lib_prefix=no |
| 22878 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22879 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22880 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22881 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22882 | hardcode_into_libs=yes |
| 22883 | dynamic_linker="$host_os dld.so" |
| 22884 | shlibpath_var=LD_LIBRARY_PATH |
| 22885 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22887 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22888 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22889 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22890 | else |
| 22891 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22892 | fi |
| 22893 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22894 | ;; |
| 22895 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22896 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22897 | hardcode_into_libs=yes |
| 22898 | dynamic_linker="$host_os dld.sl" |
| 22899 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22900 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22902 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22903 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22904 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22905 | ;; |
| 22906 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22907 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22908 | dynamic_linker="$host_os dld.sl" |
| 22909 | shlibpath_var=SHLIB_PATH |
| 22910 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22912 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22913 | ;; |
| 22914 | esac |
| 22915 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22916 | postinstall_cmds='chmod 555 $lib' |
| 22917 | ;; |
| 22918 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22919 | interix3*) |
| 22920 | version_type=linux |
| 22921 | need_lib_prefix=no |
| 22922 | need_version=no |
| 22923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22924 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22925 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 22926 | shlibpath_var=LD_LIBRARY_PATH |
| 22927 | shlibpath_overrides_runpath=no |
| 22928 | hardcode_into_libs=yes |
| 22929 | ;; |
| 22930 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22931 | irix5* | irix6* | nonstopux*) |
| 22932 | case $host_os in |
| 22933 | nonstopux*) version_type=nonstopux ;; |
| 22934 | *) |
| 22935 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22936 | version_type=linux |
| 22937 | else |
| 22938 | version_type=irix |
| 22939 | fi ;; |
| 22940 | esac |
| 22941 | need_lib_prefix=no |
| 22942 | need_version=no |
| 22943 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22945 | case $host_os in |
| 22946 | irix5* | nonstopux*) |
| 22947 | libsuff= shlibsuff= |
| 22948 | ;; |
| 22949 | *) |
| 22950 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22951 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22952 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22953 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22954 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22955 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22956 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22957 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22958 | esac |
| 22959 | ;; |
| 22960 | esac |
| 22961 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22962 | shlibpath_overrides_runpath=no |
| 22963 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22964 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22965 | hardcode_into_libs=yes |
| 22966 | ;; |
| 22967 | |
| 22968 | # No shared lib support for Linux oldld, aout, or coff. |
| 22969 | linux*oldld* | linux*aout* | linux*coff*) |
| 22970 | dynamic_linker=no |
| 22971 | ;; |
| 22972 | |
| 22973 | # This must be Linux ELF. |
| 22974 | linux*) |
| 22975 | version_type=linux |
| 22976 | need_lib_prefix=no |
| 22977 | need_version=no |
| 22978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22979 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22980 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22981 | shlibpath_var=LD_LIBRARY_PATH |
| 22982 | shlibpath_overrides_runpath=no |
| 22983 | # This implies no fast_install, which is unacceptable. |
| 22984 | # Some rework will be needed to allow for fast_install |
| 22985 | # before this can be enabled. |
| 22986 | hardcode_into_libs=yes |
| 22987 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22988 | # Append ld.so.conf contents to the search path |
| 22989 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22990 | 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] | 22991 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22992 | fi |
| 22993 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22994 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22995 | # powerpc, because MkLinux only supported shared libraries with the |
| 22996 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22997 | # most powerpc-linux boxes support dynamic linking these days and |
| 22998 | # people can always --disable-shared, the test was removed, and we |
| 22999 | # assume the GNU/Linux dynamic linker is in use. |
| 23000 | dynamic_linker='GNU/Linux ld.so' |
| 23001 | ;; |
| 23002 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23003 | knetbsd*-gnu) |
| 23004 | version_type=linux |
| 23005 | need_lib_prefix=no |
| 23006 | need_version=no |
| 23007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23008 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23009 | shlibpath_var=LD_LIBRARY_PATH |
| 23010 | shlibpath_overrides_runpath=no |
| 23011 | hardcode_into_libs=yes |
| 23012 | dynamic_linker='GNU ld.so' |
| 23013 | ;; |
| 23014 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23015 | netbsd*) |
| 23016 | version_type=sunos |
| 23017 | need_lib_prefix=no |
| 23018 | need_version=no |
| 23019 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23021 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23022 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23023 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23024 | 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] | 23025 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23026 | dynamic_linker='NetBSD ld.elf_so' |
| 23027 | fi |
| 23028 | shlibpath_var=LD_LIBRARY_PATH |
| 23029 | shlibpath_overrides_runpath=yes |
| 23030 | hardcode_into_libs=yes |
| 23031 | ;; |
| 23032 | |
| 23033 | newsos6) |
| 23034 | version_type=linux |
| 23035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23036 | shlibpath_var=LD_LIBRARY_PATH |
| 23037 | shlibpath_overrides_runpath=yes |
| 23038 | ;; |
| 23039 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23040 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23041 | version_type=linux |
| 23042 | need_lib_prefix=no |
| 23043 | need_version=no |
| 23044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23045 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23046 | shlibpath_var=LD_LIBRARY_PATH |
| 23047 | shlibpath_overrides_runpath=yes |
| 23048 | ;; |
| 23049 | |
| 23050 | openbsd*) |
| 23051 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23052 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23053 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23054 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23055 | case $host_os in |
| 23056 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23057 | *) need_version=no ;; |
| 23058 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23060 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23061 | shlibpath_var=LD_LIBRARY_PATH |
| 23062 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23063 | case $host_os in |
| 23064 | openbsd2.[89] | openbsd2.[89].*) |
| 23065 | shlibpath_overrides_runpath=no |
| 23066 | ;; |
| 23067 | *) |
| 23068 | shlibpath_overrides_runpath=yes |
| 23069 | ;; |
| 23070 | esac |
| 23071 | else |
| 23072 | shlibpath_overrides_runpath=yes |
| 23073 | fi |
| 23074 | ;; |
| 23075 | |
| 23076 | os2*) |
| 23077 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23078 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23079 | need_lib_prefix=no |
| 23080 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23081 | dynamic_linker='OS/2 ld.exe' |
| 23082 | shlibpath_var=LIBPATH |
| 23083 | ;; |
| 23084 | |
| 23085 | osf3* | osf4* | osf5*) |
| 23086 | version_type=osf |
| 23087 | need_lib_prefix=no |
| 23088 | need_version=no |
| 23089 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23091 | shlibpath_var=LD_LIBRARY_PATH |
| 23092 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23093 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23094 | ;; |
| 23095 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23096 | solaris*) |
| 23097 | version_type=linux |
| 23098 | need_lib_prefix=no |
| 23099 | need_version=no |
| 23100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23101 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23102 | shlibpath_var=LD_LIBRARY_PATH |
| 23103 | shlibpath_overrides_runpath=yes |
| 23104 | hardcode_into_libs=yes |
| 23105 | # ldd complains unless libraries are executable |
| 23106 | postinstall_cmds='chmod +x $lib' |
| 23107 | ;; |
| 23108 | |
| 23109 | sunos4*) |
| 23110 | version_type=sunos |
| 23111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23112 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23113 | shlibpath_var=LD_LIBRARY_PATH |
| 23114 | shlibpath_overrides_runpath=yes |
| 23115 | if test "$with_gnu_ld" = yes; then |
| 23116 | need_lib_prefix=no |
| 23117 | fi |
| 23118 | need_version=yes |
| 23119 | ;; |
| 23120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23121 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23122 | version_type=linux |
| 23123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23124 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23125 | shlibpath_var=LD_LIBRARY_PATH |
| 23126 | case $host_vendor in |
| 23127 | sni) |
| 23128 | shlibpath_overrides_runpath=no |
| 23129 | need_lib_prefix=no |
| 23130 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23131 | runpath_var=LD_RUN_PATH |
| 23132 | ;; |
| 23133 | siemens) |
| 23134 | need_lib_prefix=no |
| 23135 | ;; |
| 23136 | motorola) |
| 23137 | need_lib_prefix=no |
| 23138 | need_version=no |
| 23139 | shlibpath_overrides_runpath=no |
| 23140 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23141 | ;; |
| 23142 | esac |
| 23143 | ;; |
| 23144 | |
| 23145 | sysv4*MP*) |
| 23146 | if test -d /usr/nec ;then |
| 23147 | version_type=linux |
| 23148 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23149 | soname_spec='$libname${shared_ext}.$major' |
| 23150 | shlibpath_var=LD_LIBRARY_PATH |
| 23151 | fi |
| 23152 | ;; |
| 23153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23154 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23155 | version_type=freebsd-elf |
| 23156 | need_lib_prefix=no |
| 23157 | need_version=no |
| 23158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23159 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23160 | shlibpath_var=LD_LIBRARY_PATH |
| 23161 | hardcode_into_libs=yes |
| 23162 | if test "$with_gnu_ld" = yes; then |
| 23163 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23164 | shlibpath_overrides_runpath=no |
| 23165 | else |
| 23166 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23167 | shlibpath_overrides_runpath=yes |
| 23168 | case $host_os in |
| 23169 | sco3.2v5*) |
| 23170 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23171 | ;; |
| 23172 | esac |
| 23173 | fi |
| 23174 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23175 | ;; |
| 23176 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23177 | uts4*) |
| 23178 | version_type=linux |
| 23179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23180 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23181 | shlibpath_var=LD_LIBRARY_PATH |
| 23182 | ;; |
| 23183 | |
| 23184 | *) |
| 23185 | dynamic_linker=no |
| 23186 | ;; |
| 23187 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23188 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23189 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23190 | test "$dynamic_linker" = no && can_build_shared=no |
| 23191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23192 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23193 | if test "$GCC" = yes; then |
| 23194 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23195 | fi |
| 23196 | |
| 23197 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23198 | 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] | 23199 | hardcode_action_F77= |
| 23200 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23201 | test -n "$runpath_var_F77" || \ |
| 23202 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23203 | |
| 23204 | # We can hardcode non-existant directories. |
| 23205 | if test "$hardcode_direct_F77" != no && |
| 23206 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23207 | # have to relink, otherwise we might link with an installed library |
| 23208 | # when we should be linking with a yet-to-be-installed one |
| 23209 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23210 | test "$hardcode_minus_L_F77" != no; then |
| 23211 | # Linking always hardcodes the temporary library directory. |
| 23212 | hardcode_action_F77=relink |
| 23213 | else |
| 23214 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23215 | hardcode_action_F77=immediate |
| 23216 | fi |
| 23217 | else |
| 23218 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23219 | # directories. |
| 23220 | hardcode_action_F77=unsupported |
| 23221 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23222 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23223 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23224 | |
| 23225 | if test "$hardcode_action_F77" = relink; then |
| 23226 | # Fast installation is not supported |
| 23227 | enable_fast_install=no |
| 23228 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23229 | test "$enable_shared" = no; then |
| 23230 | # Fast installation is not necessary |
| 23231 | enable_fast_install=needless |
| 23232 | fi |
| 23233 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23234 | |
| 23235 | # The else clause should only fire when bootstrapping the |
| 23236 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23237 | # with your package, and you will get complaints that there are |
| 23238 | # no rules to generate ltmain.sh. |
| 23239 | if test -f "$ltmain"; then |
| 23240 | # See if we are running on zsh, and set the options which allow our commands through |
| 23241 | # without removal of \ escapes. |
| 23242 | if test -n "${ZSH_VERSION+set}" ; then |
| 23243 | setopt NO_GLOB_SUBST |
| 23244 | fi |
| 23245 | # Now quote all the things that may contain metacharacters while being |
| 23246 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23247 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23248 | 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] | 23249 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23250 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23251 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23252 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23253 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23254 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23255 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23256 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23257 | compiler_F77 \ |
| 23258 | CC_F77 \ |
| 23259 | LD_F77 \ |
| 23260 | lt_prog_compiler_wl_F77 \ |
| 23261 | lt_prog_compiler_pic_F77 \ |
| 23262 | lt_prog_compiler_static_F77 \ |
| 23263 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23264 | export_dynamic_flag_spec_F77 \ |
| 23265 | thread_safe_flag_spec_F77 \ |
| 23266 | whole_archive_flag_spec_F77 \ |
| 23267 | enable_shared_with_static_runtimes_F77 \ |
| 23268 | old_archive_cmds_F77 \ |
| 23269 | old_archive_from_new_cmds_F77 \ |
| 23270 | predep_objects_F77 \ |
| 23271 | postdep_objects_F77 \ |
| 23272 | predeps_F77 \ |
| 23273 | postdeps_F77 \ |
| 23274 | compiler_lib_search_path_F77 \ |
| 23275 | archive_cmds_F77 \ |
| 23276 | archive_expsym_cmds_F77 \ |
| 23277 | postinstall_cmds_F77 \ |
| 23278 | postuninstall_cmds_F77 \ |
| 23279 | old_archive_from_expsyms_cmds_F77 \ |
| 23280 | allow_undefined_flag_F77 \ |
| 23281 | no_undefined_flag_F77 \ |
| 23282 | export_symbols_cmds_F77 \ |
| 23283 | hardcode_libdir_flag_spec_F77 \ |
| 23284 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23285 | hardcode_libdir_separator_F77 \ |
| 23286 | hardcode_automatic_F77 \ |
| 23287 | module_cmds_F77 \ |
| 23288 | module_expsym_cmds_F77 \ |
| 23289 | lt_cv_prog_compiler_c_o_F77 \ |
| 23290 | exclude_expsyms_F77 \ |
| 23291 | include_expsyms_F77; do |
| 23292 | |
| 23293 | case $var in |
| 23294 | old_archive_cmds_F77 | \ |
| 23295 | old_archive_from_new_cmds_F77 | \ |
| 23296 | archive_cmds_F77 | \ |
| 23297 | archive_expsym_cmds_F77 | \ |
| 23298 | module_cmds_F77 | \ |
| 23299 | module_expsym_cmds_F77 | \ |
| 23300 | old_archive_from_expsyms_cmds_F77 | \ |
| 23301 | export_symbols_cmds_F77 | \ |
| 23302 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23303 | postinstall_cmds | postuninstall_cmds | \ |
| 23304 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23305 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23306 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23307 | 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] | 23308 | ;; |
| 23309 | *) |
| 23310 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23311 | ;; |
| 23312 | esac |
| 23313 | done |
| 23314 | |
| 23315 | case $lt_echo in |
| 23316 | *'\$0 --fallback-echo"') |
| 23317 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23318 | ;; |
| 23319 | esac |
| 23320 | |
| 23321 | cfgfile="$ofile" |
| 23322 | |
| 23323 | cat <<__EOF__ >> "$cfgfile" |
| 23324 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23325 | |
| 23326 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23327 | |
| 23328 | # Shell to use when invoking shell scripts. |
| 23329 | SHELL=$lt_SHELL |
| 23330 | |
| 23331 | # Whether or not to build shared libraries. |
| 23332 | build_libtool_libs=$enable_shared |
| 23333 | |
| 23334 | # Whether or not to build static libraries. |
| 23335 | build_old_libs=$enable_static |
| 23336 | |
| 23337 | # Whether or not to add -lc for building shared libraries. |
| 23338 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23339 | |
| 23340 | # Whether or not to disallow shared libs when runtime libs are static |
| 23341 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23342 | |
| 23343 | # Whether or not to optimize for fast installation. |
| 23344 | fast_install=$enable_fast_install |
| 23345 | |
| 23346 | # The host system. |
| 23347 | host_alias=$host_alias |
| 23348 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23349 | host_os=$host_os |
| 23350 | |
| 23351 | # The build system. |
| 23352 | build_alias=$build_alias |
| 23353 | build=$build |
| 23354 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23355 | |
| 23356 | # An echo program that does not interpret backslashes. |
| 23357 | echo=$lt_echo |
| 23358 | |
| 23359 | # The archiver. |
| 23360 | AR=$lt_AR |
| 23361 | AR_FLAGS=$lt_AR_FLAGS |
| 23362 | |
| 23363 | # A C compiler. |
| 23364 | LTCC=$lt_LTCC |
| 23365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23366 | # LTCC compiler flags. |
| 23367 | LTCFLAGS=$lt_LTCFLAGS |
| 23368 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23369 | # A language-specific compiler. |
| 23370 | CC=$lt_compiler_F77 |
| 23371 | |
| 23372 | # Is the compiler the GNU C compiler? |
| 23373 | with_gcc=$GCC_F77 |
| 23374 | |
| 23375 | # An ERE matcher. |
| 23376 | EGREP=$lt_EGREP |
| 23377 | |
| 23378 | # The linker used to build libraries. |
| 23379 | LD=$lt_LD_F77 |
| 23380 | |
| 23381 | # Whether we need hard or soft links. |
| 23382 | LN_S=$lt_LN_S |
| 23383 | |
| 23384 | # A BSD-compatible nm program. |
| 23385 | NM=$lt_NM |
| 23386 | |
| 23387 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23388 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23389 | |
| 23390 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23391 | MAGIC_CMD=$MAGIC_CMD |
| 23392 | |
| 23393 | # Used on cygwin: DLL creation program. |
| 23394 | DLLTOOL="$DLLTOOL" |
| 23395 | |
| 23396 | # Used on cygwin: object dumper. |
| 23397 | OBJDUMP="$OBJDUMP" |
| 23398 | |
| 23399 | # Used on cygwin: assembler. |
| 23400 | AS="$AS" |
| 23401 | |
| 23402 | # The name of the directory that contains temporary libtool files. |
| 23403 | objdir=$objdir |
| 23404 | |
| 23405 | # How to create reloadable object files. |
| 23406 | reload_flag=$lt_reload_flag |
| 23407 | reload_cmds=$lt_reload_cmds |
| 23408 | |
| 23409 | # How to pass a linker flag through the compiler. |
| 23410 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23411 | |
| 23412 | # Object file suffix (normally "o"). |
| 23413 | objext="$ac_objext" |
| 23414 | |
| 23415 | # Old archive suffix (normally "a"). |
| 23416 | libext="$libext" |
| 23417 | |
| 23418 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23419 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23420 | |
| 23421 | # Executable file suffix (normally ""). |
| 23422 | exeext="$exeext" |
| 23423 | |
| 23424 | # Additional compiler flags for building library objects. |
| 23425 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23426 | pic_mode=$pic_mode |
| 23427 | |
| 23428 | # What is the maximum length of a command? |
| 23429 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23430 | |
| 23431 | # Does compiler simultaneously support -c and -o options? |
| 23432 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23434 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23435 | need_locks=$lt_need_locks |
| 23436 | |
| 23437 | # Do we need the lib prefix for modules? |
| 23438 | need_lib_prefix=$need_lib_prefix |
| 23439 | |
| 23440 | # Do we need a version for libraries? |
| 23441 | need_version=$need_version |
| 23442 | |
| 23443 | # Whether dlopen is supported. |
| 23444 | dlopen_support=$enable_dlopen |
| 23445 | |
| 23446 | # Whether dlopen of programs is supported. |
| 23447 | dlopen_self=$enable_dlopen_self |
| 23448 | |
| 23449 | # Whether dlopen of statically linked programs is supported. |
| 23450 | dlopen_self_static=$enable_dlopen_self_static |
| 23451 | |
| 23452 | # Compiler flag to prevent dynamic linking. |
| 23453 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23454 | |
| 23455 | # Compiler flag to turn off builtin functions. |
| 23456 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23457 | |
| 23458 | # Compiler flag to allow reflexive dlopens. |
| 23459 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23460 | |
| 23461 | # Compiler flag to generate shared objects directly from archives. |
| 23462 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23463 | |
| 23464 | # Compiler flag to generate thread-safe objects. |
| 23465 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23466 | |
| 23467 | # Library versioning type. |
| 23468 | version_type=$version_type |
| 23469 | |
| 23470 | # Format of library name prefix. |
| 23471 | libname_spec=$lt_libname_spec |
| 23472 | |
| 23473 | # List of archive names. First name is the real one, the rest are links. |
| 23474 | # The last name is the one that the linker finds with -lNAME. |
| 23475 | library_names_spec=$lt_library_names_spec |
| 23476 | |
| 23477 | # The coded name of the library, if different from the real name. |
| 23478 | soname_spec=$lt_soname_spec |
| 23479 | |
| 23480 | # Commands used to build and install an old-style archive. |
| 23481 | RANLIB=$lt_RANLIB |
| 23482 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23483 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23484 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23485 | |
| 23486 | # Create an old-style archive from a shared archive. |
| 23487 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23488 | |
| 23489 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23490 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23491 | |
| 23492 | # Commands used to build and install a shared archive. |
| 23493 | archive_cmds=$lt_archive_cmds_F77 |
| 23494 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23495 | postinstall_cmds=$lt_postinstall_cmds |
| 23496 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23497 | |
| 23498 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23499 | module_cmds=$lt_module_cmds_F77 |
| 23500 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23501 | |
| 23502 | # Commands to strip libraries. |
| 23503 | old_striplib=$lt_old_striplib |
| 23504 | striplib=$lt_striplib |
| 23505 | |
| 23506 | # Dependencies to place before the objects being linked to create a |
| 23507 | # shared library. |
| 23508 | predep_objects=$lt_predep_objects_F77 |
| 23509 | |
| 23510 | # Dependencies to place after the objects being linked to create a |
| 23511 | # shared library. |
| 23512 | postdep_objects=$lt_postdep_objects_F77 |
| 23513 | |
| 23514 | # Dependencies to place before the objects being linked to create a |
| 23515 | # shared library. |
| 23516 | predeps=$lt_predeps_F77 |
| 23517 | |
| 23518 | # Dependencies to place after the objects being linked to create a |
| 23519 | # shared library. |
| 23520 | postdeps=$lt_postdeps_F77 |
| 23521 | |
| 23522 | # The library search path used internally by the compiler when linking |
| 23523 | # a shared library. |
| 23524 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23525 | |
| 23526 | # Method to check whether dependent libraries are shared objects. |
| 23527 | deplibs_check_method=$lt_deplibs_check_method |
| 23528 | |
| 23529 | # Command to use when deplibs_check_method == file_magic. |
| 23530 | file_magic_cmd=$lt_file_magic_cmd |
| 23531 | |
| 23532 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23533 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23534 | |
| 23535 | # Flag that forces no undefined symbols. |
| 23536 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23537 | |
| 23538 | # Commands used to finish a libtool library installation in a directory. |
| 23539 | finish_cmds=$lt_finish_cmds |
| 23540 | |
| 23541 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23542 | finish_eval=$lt_finish_eval |
| 23543 | |
| 23544 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23545 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23546 | |
| 23547 | # Transform the output of nm in a proper C declaration |
| 23548 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23549 | |
| 23550 | # Transform the output of nm in a C name address pair |
| 23551 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23552 | |
| 23553 | # This is the shared library runtime path variable. |
| 23554 | runpath_var=$runpath_var |
| 23555 | |
| 23556 | # This is the shared library path variable. |
| 23557 | shlibpath_var=$shlibpath_var |
| 23558 | |
| 23559 | # Is shlibpath searched before the hard-coded library search path? |
| 23560 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23561 | |
| 23562 | # How to hardcode a shared library path into an executable. |
| 23563 | hardcode_action=$hardcode_action_F77 |
| 23564 | |
| 23565 | # Whether we should hardcode library paths into libraries. |
| 23566 | hardcode_into_libs=$hardcode_into_libs |
| 23567 | |
| 23568 | # Flag to hardcode \$libdir into a binary during linking. |
| 23569 | # This must work even if \$libdir does not exist. |
| 23570 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23571 | |
| 23572 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23573 | # a binary during linking. This must work even if \$libdir does |
| 23574 | # not exist. |
| 23575 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23576 | |
| 23577 | # Whether we need a single -rpath flag with a separated argument. |
| 23578 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23579 | |
| 23580 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23581 | # resulting binary. |
| 23582 | hardcode_direct=$hardcode_direct_F77 |
| 23583 | |
| 23584 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23585 | # resulting binary. |
| 23586 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23587 | |
| 23588 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23589 | # the resulting binary. |
| 23590 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23591 | |
| 23592 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23593 | # and all subsequent libraries and executables linked against it. |
| 23594 | hardcode_automatic=$hardcode_automatic_F77 |
| 23595 | |
| 23596 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23597 | # restored at relink time. |
| 23598 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23599 | |
| 23600 | # Whether libtool must link a program against all its dependency libraries. |
| 23601 | link_all_deplibs=$link_all_deplibs_F77 |
| 23602 | |
| 23603 | # Compile-time system search path for libraries |
| 23604 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23605 | |
| 23606 | # Run-time system search path for libraries |
| 23607 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23608 | |
| 23609 | # Fix the shell variable \$srcfile for the compiler. |
| 23610 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23611 | |
| 23612 | # Set to yes if exported symbols are required. |
| 23613 | always_export_symbols=$always_export_symbols_F77 |
| 23614 | |
| 23615 | # The commands to list exported symbols. |
| 23616 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23617 | |
| 23618 | # The commands to extract the exported symbol list from a shared archive. |
| 23619 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23620 | |
| 23621 | # Symbols that should not be listed in the preloaded symbols. |
| 23622 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23623 | |
| 23624 | # Symbols that must always be exported. |
| 23625 | include_expsyms=$lt_include_expsyms_F77 |
| 23626 | |
| 23627 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23628 | |
| 23629 | __EOF__ |
| 23630 | |
| 23631 | |
| 23632 | else |
| 23633 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23634 | # `config.status --recheck' to rerun these tests and create the |
| 23635 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23636 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23637 | if test -f "$ltmain_in"; then |
| 23638 | test -f Makefile && make "$ltmain" |
| 23639 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23640 | fi |
| 23641 | |
| 23642 | |
| 23643 | ac_ext=c |
| 23644 | ac_cpp='$CPP $CPPFLAGS' |
| 23645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23648 | |
| 23649 | CC="$lt_save_CC" |
| 23650 | |
| 23651 | else |
| 23652 | tagname="" |
| 23653 | fi |
| 23654 | ;; |
| 23655 | |
| 23656 | GCJ) |
| 23657 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23658 | ac_ext=c |
| 23659 | ac_cpp='$CPP $CPPFLAGS' |
| 23660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23663 | |
| 23664 | |
| 23665 | # Source file extension for Java test sources. |
| 23666 | ac_ext=java |
| 23667 | |
| 23668 | # Object file extension for compiled Java test sources. |
| 23669 | objext=o |
| 23670 | objext_GCJ=$objext |
| 23671 | |
| 23672 | # Code to be used in simple compile tests |
| 23673 | lt_simple_compile_test_code="class foo {}\n" |
| 23674 | |
| 23675 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23676 | 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] | 23677 | |
| 23678 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23679 | |
| 23680 | # If no C compiler was specified, use CC. |
| 23681 | LTCC=${LTCC-"$CC"} |
| 23682 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23683 | # If no C compiler flags were specified, use CFLAGS. |
| 23684 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23685 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23686 | # Allow CC to be a program name with arguments. |
| 23687 | compiler=$CC |
| 23688 | |
| 23689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23690 | # save warnings/boilerplate of simple test code |
| 23691 | ac_outfile=conftest.$ac_objext |
| 23692 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23693 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23694 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23695 | $rm conftest* |
| 23696 | |
| 23697 | ac_outfile=conftest.$ac_objext |
| 23698 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23699 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23700 | _lt_linker_boilerplate=`cat conftest.err` |
| 23701 | $rm conftest* |
| 23702 | |
| 23703 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23704 | # Allow CC to be a program name with arguments. |
| 23705 | lt_save_CC="$CC" |
| 23706 | CC=${GCJ-"gcj"} |
| 23707 | compiler=$CC |
| 23708 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23709 | for cc_temp in $compiler""; do |
| 23710 | case $cc_temp in |
| 23711 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23712 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23713 | \-*) ;; |
| 23714 | *) break;; |
| 23715 | esac |
| 23716 | done |
| 23717 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23718 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23719 | |
| 23720 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23721 | archive_cmds_need_lc_GCJ=no |
| 23722 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23723 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23724 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23725 | |
| 23726 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23727 | |
| 23728 | if test "$GCC" = yes; then |
| 23729 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23730 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23732 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23733 | 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] | 23734 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23736 | else |
| 23737 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23738 | ac_outfile=conftest.$ac_objext |
| 23739 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23740 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23741 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23742 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23743 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23744 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23745 | # The option is referenced via a variable to avoid confusing sed. |
| 23746 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23747 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23748 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23749 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 23750 | (eval echo "\"\$as_me:23750: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23751 | (eval "$lt_compile" 2>conftest.err) |
| 23752 | ac_status=$? |
| 23753 | cat conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 23754 | echo "$as_me:23754: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23755 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23756 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23757 | # So say no if there are warnings other than the usual output. |
| 23758 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23759 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23760 | 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] | 23761 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 23762 | fi |
| 23763 | fi |
| 23764 | $rm conftest* |
| 23765 | |
| 23766 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23767 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 23768 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23769 | |
| 23770 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 23771 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 23772 | else |
| 23773 | : |
| 23774 | fi |
| 23775 | |
| 23776 | fi |
| 23777 | |
| 23778 | lt_prog_compiler_wl_GCJ= |
| 23779 | lt_prog_compiler_pic_GCJ= |
| 23780 | lt_prog_compiler_static_GCJ= |
| 23781 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23782 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 23783 | 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] | 23784 | |
| 23785 | if test "$GCC" = yes; then |
| 23786 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23787 | lt_prog_compiler_static_GCJ='-static' |
| 23788 | |
| 23789 | case $host_os in |
| 23790 | aix*) |
| 23791 | # All AIX code is PIC. |
| 23792 | if test "$host_cpu" = ia64; then |
| 23793 | # AIX 5 now supports IA64 processor |
| 23794 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23795 | fi |
| 23796 | ;; |
| 23797 | |
| 23798 | amigaos*) |
| 23799 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 23800 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 23801 | # like `-m68040'. |
| 23802 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 23803 | ;; |
| 23804 | |
| 23805 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23806 | # PIC is the default for these OSes. |
| 23807 | ;; |
| 23808 | |
| 23809 | mingw* | pw32* | os2*) |
| 23810 | # This hack is so that the source file can tell whether it is being |
| 23811 | # built for inclusion in a dll (and should export symbols for example). |
| 23812 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23813 | ;; |
| 23814 | |
| 23815 | darwin* | rhapsody*) |
| 23816 | # PIC is the default on this platform |
| 23817 | # Common symbols not allowed in MH_DYLIB files |
| 23818 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 23819 | ;; |
| 23820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23821 | interix3*) |
| 23822 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23823 | # Instead, we relocate shared libraries at runtime. |
| 23824 | ;; |
| 23825 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23826 | msdosdjgpp*) |
| 23827 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23828 | # on systems that don't support them. |
| 23829 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23830 | enable_shared=no |
| 23831 | ;; |
| 23832 | |
| 23833 | sysv4*MP*) |
| 23834 | if test -d /usr/nec; then |
| 23835 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 23836 | fi |
| 23837 | ;; |
| 23838 | |
| 23839 | hpux*) |
| 23840 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23841 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23842 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23843 | hppa*64*|ia64*) |
| 23844 | # +Z the default |
| 23845 | ;; |
| 23846 | *) |
| 23847 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23848 | ;; |
| 23849 | esac |
| 23850 | ;; |
| 23851 | |
| 23852 | *) |
| 23853 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23854 | ;; |
| 23855 | esac |
| 23856 | else |
| 23857 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 23858 | case $host_os in |
| 23859 | aix*) |
| 23860 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23861 | if test "$host_cpu" = ia64; then |
| 23862 | # AIX 5 now supports IA64 processor |
| 23863 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23864 | else |
| 23865 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 23866 | fi |
| 23867 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23868 | darwin*) |
| 23869 | # PIC is the default on this platform |
| 23870 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23871 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23872 | xlc*) |
| 23873 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 23874 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23875 | ;; |
| 23876 | esac |
| 23877 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23878 | |
| 23879 | mingw* | pw32* | os2*) |
| 23880 | # This hack is so that the source file can tell whether it is being |
| 23881 | # built for inclusion in a dll (and should export symbols for example). |
| 23882 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23883 | ;; |
| 23884 | |
| 23885 | hpux9* | hpux10* | hpux11*) |
| 23886 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23887 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23888 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23889 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23890 | hppa*64*|ia64*) |
| 23891 | # +Z the default |
| 23892 | ;; |
| 23893 | *) |
| 23894 | lt_prog_compiler_pic_GCJ='+Z' |
| 23895 | ;; |
| 23896 | esac |
| 23897 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23898 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 23899 | ;; |
| 23900 | |
| 23901 | irix5* | irix6* | nonstopux*) |
| 23902 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23903 | # PIC (with -KPIC) is the default. |
| 23904 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23905 | ;; |
| 23906 | |
| 23907 | newsos6) |
| 23908 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23909 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23910 | ;; |
| 23911 | |
| 23912 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23913 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23914 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23915 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23916 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23917 | lt_prog_compiler_static_GCJ='-static' |
| 23918 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23919 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 23920 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23921 | # which looks to be a dead project) |
| 23922 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23923 | lt_prog_compiler_pic_GCJ='-fpic' |
| 23924 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23925 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23926 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23927 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23928 | # All Alpha code is PIC. |
| 23929 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23930 | ;; |
| 23931 | esac |
| 23932 | ;; |
| 23933 | |
| 23934 | osf3* | osf4* | osf5*) |
| 23935 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23936 | # All OSF/1 code is PIC. |
| 23937 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23938 | ;; |
| 23939 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23940 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23941 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23942 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23943 | case $cc_basename in |
| 23944 | f77* | f90* | f95*) |
| 23945 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 23946 | *) |
| 23947 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 23948 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23949 | ;; |
| 23950 | |
| 23951 | sunos4*) |
| 23952 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 23953 | lt_prog_compiler_pic_GCJ='-PIC' |
| 23954 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23955 | ;; |
| 23956 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23957 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23958 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23959 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23960 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23961 | ;; |
| 23962 | |
| 23963 | sysv4*MP*) |
| 23964 | if test -d /usr/nec ;then |
| 23965 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 23966 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23967 | fi |
| 23968 | ;; |
| 23969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23970 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 23971 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23972 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23973 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23974 | ;; |
| 23975 | |
| 23976 | unicos*) |
| 23977 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23978 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23979 | ;; |
| 23980 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23981 | uts4*) |
| 23982 | lt_prog_compiler_pic_GCJ='-pic' |
| 23983 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23984 | ;; |
| 23985 | |
| 23986 | *) |
| 23987 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23988 | ;; |
| 23989 | esac |
| 23990 | fi |
| 23991 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23992 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 23993 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23994 | |
| 23995 | # |
| 23996 | # Check to make sure the PIC flag actually works. |
| 23997 | # |
| 23998 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24000 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 24001 | 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] | 24002 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 24003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24004 | else |
| 24005 | lt_prog_compiler_pic_works_GCJ=no |
| 24006 | ac_outfile=conftest.$ac_objext |
| 24007 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24008 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 24009 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24010 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24011 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24012 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24013 | # The option is referenced via a variable to avoid confusing sed. |
| 24014 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24015 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24016 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24017 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24018 | (eval echo "\"\$as_me:24018: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24019 | (eval "$lt_compile" 2>conftest.err) |
| 24020 | ac_status=$? |
| 24021 | cat conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24022 | echo "$as_me:24022: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24023 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24024 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24025 | # So say no if there are warnings other than the usual output. |
| 24026 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24027 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24028 | 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] | 24029 | lt_prog_compiler_pic_works_GCJ=yes |
| 24030 | fi |
| 24031 | fi |
| 24032 | $rm conftest* |
| 24033 | |
| 24034 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24035 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24036 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24037 | |
| 24038 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24039 | case $lt_prog_compiler_pic_GCJ in |
| 24040 | "" | " "*) ;; |
| 24041 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24042 | esac |
| 24043 | else |
| 24044 | lt_prog_compiler_pic_GCJ= |
| 24045 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24046 | fi |
| 24047 | |
| 24048 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24049 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24050 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24051 | *djgpp*) |
| 24052 | lt_prog_compiler_pic_GCJ= |
| 24053 | ;; |
| 24054 | *) |
| 24055 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24056 | ;; |
| 24057 | esac |
| 24058 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24059 | # |
| 24060 | # Check to make sure the static flag actually works. |
| 24061 | # |
| 24062 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24063 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24064 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24065 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24067 | else |
| 24068 | lt_prog_compiler_static_works_GCJ=no |
| 24069 | save_LDFLAGS="$LDFLAGS" |
| 24070 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24071 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24072 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24073 | # The linker can only warn and ignore the option if not recognized |
| 24074 | # So say no if there are warnings |
| 24075 | if test -s conftest.err; then |
| 24076 | # Append any errors to the config.log. |
| 24077 | cat conftest.err 1>&5 |
| 24078 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24079 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24080 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24081 | lt_prog_compiler_static_works_GCJ=yes |
| 24082 | fi |
| 24083 | else |
| 24084 | lt_prog_compiler_static_works_GCJ=yes |
| 24085 | fi |
| 24086 | fi |
| 24087 | $rm conftest* |
| 24088 | LDFLAGS="$save_LDFLAGS" |
| 24089 | |
| 24090 | fi |
| 24091 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24092 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24093 | |
| 24094 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24095 | : |
| 24096 | else |
| 24097 | lt_prog_compiler_static_GCJ= |
| 24098 | fi |
| 24099 | |
| 24100 | |
| 24101 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24102 | 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] | 24103 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24105 | else |
| 24106 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24107 | $rm -r conftest 2>/dev/null |
| 24108 | mkdir conftest |
| 24109 | cd conftest |
| 24110 | mkdir out |
| 24111 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24112 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24113 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24114 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24115 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24116 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24117 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24118 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24119 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24120 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24121 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24122 | (eval echo "\"\$as_me:24122: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24123 | (eval "$lt_compile" 2>out/conftest.err) |
| 24124 | ac_status=$? |
| 24125 | cat out/conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24126 | echo "$as_me:24126: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24127 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24128 | then |
| 24129 | # The compiler can only warn and ignore the option if not recognized |
| 24130 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24131 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24132 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24133 | 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] | 24134 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24135 | fi |
| 24136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24137 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24138 | $rm conftest* |
| 24139 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24140 | # template instantiation |
| 24141 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24142 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24143 | cd .. |
| 24144 | rmdir conftest |
| 24145 | $rm conftest* |
| 24146 | |
| 24147 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24148 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24149 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24150 | |
| 24151 | |
| 24152 | hard_links="nottested" |
| 24153 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24154 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24155 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24156 | 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] | 24157 | hard_links=yes |
| 24158 | $rm conftest* |
| 24159 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24160 | touch conftest.a |
| 24161 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24162 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24163 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24164 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24165 | if test "$hard_links" = no; then |
| 24166 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24167 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24168 | need_locks=warn |
| 24169 | fi |
| 24170 | else |
| 24171 | need_locks=no |
| 24172 | fi |
| 24173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24174 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24175 | 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] | 24176 | |
| 24177 | runpath_var= |
| 24178 | allow_undefined_flag_GCJ= |
| 24179 | enable_shared_with_static_runtimes_GCJ=no |
| 24180 | archive_cmds_GCJ= |
| 24181 | archive_expsym_cmds_GCJ= |
| 24182 | old_archive_From_new_cmds_GCJ= |
| 24183 | old_archive_from_expsyms_cmds_GCJ= |
| 24184 | export_dynamic_flag_spec_GCJ= |
| 24185 | whole_archive_flag_spec_GCJ= |
| 24186 | thread_safe_flag_spec_GCJ= |
| 24187 | hardcode_libdir_flag_spec_GCJ= |
| 24188 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24189 | hardcode_libdir_separator_GCJ= |
| 24190 | hardcode_direct_GCJ=no |
| 24191 | hardcode_minus_L_GCJ=no |
| 24192 | hardcode_shlibpath_var_GCJ=unsupported |
| 24193 | link_all_deplibs_GCJ=unknown |
| 24194 | hardcode_automatic_GCJ=no |
| 24195 | module_cmds_GCJ= |
| 24196 | module_expsym_cmds_GCJ= |
| 24197 | always_export_symbols_GCJ=no |
| 24198 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24199 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24200 | # included in the symbol list |
| 24201 | include_expsyms_GCJ= |
| 24202 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24203 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24204 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24205 | # as well as any symbol that contains `d'. |
| 24206 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24207 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24208 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24209 | # the symbol is explicitly referenced. Since portable code cannot |
| 24210 | # rely on this symbol name, it's probably fine to never include it in |
| 24211 | # preloaded symbol tables. |
| 24212 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24213 | # Just being paranoid about ensuring that cc_basename is set. |
| 24214 | for cc_temp in $compiler""; do |
| 24215 | case $cc_temp in |
| 24216 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24217 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24218 | \-*) ;; |
| 24219 | *) break;; |
| 24220 | esac |
| 24221 | done |
| 24222 | 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] | 24223 | |
| 24224 | case $host_os in |
| 24225 | cygwin* | mingw* | pw32*) |
| 24226 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24227 | # When not using gcc, we currently assume that we are using |
| 24228 | # Microsoft Visual C++. |
| 24229 | if test "$GCC" != yes; then |
| 24230 | with_gnu_ld=no |
| 24231 | fi |
| 24232 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24233 | interix*) |
| 24234 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24235 | with_gnu_ld=yes |
| 24236 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24237 | openbsd*) |
| 24238 | with_gnu_ld=no |
| 24239 | ;; |
| 24240 | esac |
| 24241 | |
| 24242 | ld_shlibs_GCJ=yes |
| 24243 | if test "$with_gnu_ld" = yes; then |
| 24244 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24245 | wlarc='${wl}' |
| 24246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24247 | # Set some defaults for GNU ld with shared library support. These |
| 24248 | # are reset later if shared libraries are not supported. Putting them |
| 24249 | # here allows them to be overridden if necessary. |
| 24250 | runpath_var=LD_RUN_PATH |
| 24251 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24252 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24253 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24254 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24255 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24256 | else |
| 24257 | whole_archive_flag_spec_GCJ= |
| 24258 | fi |
| 24259 | supports_anon_versioning=no |
| 24260 | case `$LD -v 2>/dev/null` in |
| 24261 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24262 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24263 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24264 | *\ 2.11.*) ;; # other 2.11 versions |
| 24265 | *) supports_anon_versioning=yes ;; |
| 24266 | esac |
| 24267 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24268 | # See if GNU ld supports shared libraries. |
| 24269 | case $host_os in |
| 24270 | aix3* | aix4* | aix5*) |
| 24271 | # On AIX/PPC, the GNU linker is very broken |
| 24272 | if test "$host_cpu" != ia64; then |
| 24273 | ld_shlibs_GCJ=no |
| 24274 | cat <<EOF 1>&2 |
| 24275 | |
| 24276 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24277 | *** to be unable to reliably create shared libraries on AIX. |
| 24278 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24279 | *** really care for shared libraries, you may want to modify your PATH |
| 24280 | *** so that a non-GNU linker is found, and then restart. |
| 24281 | |
| 24282 | EOF |
| 24283 | fi |
| 24284 | ;; |
| 24285 | |
| 24286 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24287 | 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] | 24288 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24289 | hardcode_minus_L_GCJ=yes |
| 24290 | |
| 24291 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24292 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24293 | # to version 4, is to share data among multiple programs linked |
| 24294 | # with the same dynamic library. Since this doesn't match the |
| 24295 | # behavior of shared libraries on other platforms, we can't use |
| 24296 | # them. |
| 24297 | ld_shlibs_GCJ=no |
| 24298 | ;; |
| 24299 | |
| 24300 | beos*) |
| 24301 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24302 | allow_undefined_flag_GCJ=unsupported |
| 24303 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24304 | # support --undefined. This deserves some investigation. FIXME |
| 24305 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24306 | else |
| 24307 | ld_shlibs_GCJ=no |
| 24308 | fi |
| 24309 | ;; |
| 24310 | |
| 24311 | cygwin* | mingw* | pw32*) |
| 24312 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24313 | # as there is no search path for DLLs. |
| 24314 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24315 | allow_undefined_flag_GCJ=unsupported |
| 24316 | always_export_symbols_GCJ=no |
| 24317 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24318 | 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] | 24319 | |
| 24320 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24321 | 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] | 24322 | # If the export-symbols file already is a .def file (1st line |
| 24323 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24324 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24325 | cp $export_symbols $output_objdir/$soname.def; |
| 24326 | else |
| 24327 | echo EXPORTS > $output_objdir/$soname.def; |
| 24328 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24329 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24330 | $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] | 24331 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24332 | ld_shlibs_GCJ=no |
| 24333 | fi |
| 24334 | ;; |
| 24335 | |
| 24336 | interix3*) |
| 24337 | hardcode_direct_GCJ=no |
| 24338 | hardcode_shlibpath_var_GCJ=no |
| 24339 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24340 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24341 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24342 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24343 | # default) and relocated if they conflict, which is a slow very memory |
| 24344 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24345 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24346 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24347 | 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' |
| 24348 | 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' |
| 24349 | ;; |
| 24350 | |
| 24351 | linux*) |
| 24352 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24353 | tmp_addflag= |
| 24354 | case $cc_basename,$host_cpu in |
| 24355 | pgcc*) # Portland Group C compiler |
| 24356 | 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' |
| 24357 | tmp_addflag=' $pic_flag' |
| 24358 | ;; |
| 24359 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24360 | 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' |
| 24361 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24362 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24363 | tmp_addflag=' -i_dynamic' ;; |
| 24364 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24365 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24366 | ifc* | ifort*) # Intel Fortran compiler |
| 24367 | tmp_addflag=' -nofor_main' ;; |
| 24368 | esac |
| 24369 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24370 | |
| 24371 | if test $supports_anon_versioning = yes; then |
| 24372 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24373 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24374 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24375 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24376 | fi |
| 24377 | else |
| 24378 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24379 | fi |
| 24380 | ;; |
| 24381 | |
| 24382 | netbsd*) |
| 24383 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24384 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24385 | wlarc= |
| 24386 | else |
| 24387 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24388 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24389 | fi |
| 24390 | ;; |
| 24391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24392 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24393 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24394 | ld_shlibs_GCJ=no |
| 24395 | cat <<EOF 1>&2 |
| 24396 | |
| 24397 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24398 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24399 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24400 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24401 | *** your PATH or compiler configuration so that the native linker is |
| 24402 | *** used, and then restart. |
| 24403 | |
| 24404 | EOF |
| 24405 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24406 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24407 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24408 | else |
| 24409 | ld_shlibs_GCJ=no |
| 24410 | fi |
| 24411 | ;; |
| 24412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24413 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24414 | case `$LD -v 2>&1` in |
| 24415 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24416 | ld_shlibs_GCJ=no |
| 24417 | cat <<_LT_EOF 1>&2 |
| 24418 | |
| 24419 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24420 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24421 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24422 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24423 | *** your PATH or compiler configuration so that the native linker is |
| 24424 | *** used, and then restart. |
| 24425 | |
| 24426 | _LT_EOF |
| 24427 | ;; |
| 24428 | *) |
| 24429 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24430 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24431 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24432 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24433 | else |
| 24434 | ld_shlibs_GCJ=no |
| 24435 | fi |
| 24436 | ;; |
| 24437 | esac |
| 24438 | ;; |
| 24439 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24440 | sunos4*) |
| 24441 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24442 | wlarc= |
| 24443 | hardcode_direct_GCJ=yes |
| 24444 | hardcode_shlibpath_var_GCJ=no |
| 24445 | ;; |
| 24446 | |
| 24447 | *) |
| 24448 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24449 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24450 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24451 | else |
| 24452 | ld_shlibs_GCJ=no |
| 24453 | fi |
| 24454 | ;; |
| 24455 | esac |
| 24456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24457 | if test "$ld_shlibs_GCJ" = no; then |
| 24458 | runpath_var= |
| 24459 | hardcode_libdir_flag_spec_GCJ= |
| 24460 | export_dynamic_flag_spec_GCJ= |
| 24461 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24462 | fi |
| 24463 | else |
| 24464 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24465 | case $host_os in |
| 24466 | aix3*) |
| 24467 | allow_undefined_flag_GCJ=unsupported |
| 24468 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24469 | 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] | 24470 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24471 | # are no directories specified by -L. |
| 24472 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24473 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24474 | # Neither direct hardcoding nor static linking is supported with a |
| 24475 | # broken collect2. |
| 24476 | hardcode_direct_GCJ=unsupported |
| 24477 | fi |
| 24478 | ;; |
| 24479 | |
| 24480 | aix4* | aix5*) |
| 24481 | if test "$host_cpu" = ia64; then |
| 24482 | # On IA64, the linker does run time linking by default, so we don't |
| 24483 | # have to do anything special. |
| 24484 | aix_use_runtimelinking=no |
| 24485 | exp_sym_flag='-Bexport' |
| 24486 | no_entry_flag="" |
| 24487 | else |
| 24488 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24489 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24490 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24491 | 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' |
| 24492 | else |
| 24493 | 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' |
| 24494 | fi |
| 24495 | aix_use_runtimelinking=no |
| 24496 | |
| 24497 | # Test if we are trying to use run time linking or normal |
| 24498 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24499 | # need to do runtime linking. |
| 24500 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24501 | for ld_flag in $LDFLAGS; do |
| 24502 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24503 | aix_use_runtimelinking=yes |
| 24504 | break |
| 24505 | fi |
| 24506 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24507 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24508 | esac |
| 24509 | |
| 24510 | exp_sym_flag='-bexport' |
| 24511 | no_entry_flag='-bnoentry' |
| 24512 | fi |
| 24513 | |
| 24514 | # When large executables or shared objects are built, AIX ld can |
| 24515 | # have problems creating the table of contents. If linking a library |
| 24516 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24517 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24518 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24519 | |
| 24520 | archive_cmds_GCJ='' |
| 24521 | hardcode_direct_GCJ=yes |
| 24522 | hardcode_libdir_separator_GCJ=':' |
| 24523 | link_all_deplibs_GCJ=yes |
| 24524 | |
| 24525 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24526 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24527 | # We only want to do this on AIX 4.2 and lower, the check |
| 24528 | # below for broken collect2 doesn't work under 4.3+ |
| 24529 | collect2name=`${CC} -print-prog-name=collect2` |
| 24530 | if test -f "$collect2name" && \ |
| 24531 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24532 | then |
| 24533 | # We have reworked collect2 |
| 24534 | hardcode_direct_GCJ=yes |
| 24535 | else |
| 24536 | # We have old collect2 |
| 24537 | hardcode_direct_GCJ=unsupported |
| 24538 | # It fails to find uninstalled libraries when the uninstalled |
| 24539 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24540 | # to unsupported forces relinking |
| 24541 | hardcode_minus_L_GCJ=yes |
| 24542 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24543 | hardcode_libdir_separator_GCJ= |
| 24544 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24545 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24546 | esac |
| 24547 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24548 | if test "$aix_use_runtimelinking" = yes; then |
| 24549 | shared_flag="$shared_flag "'${wl}-G' |
| 24550 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24551 | else |
| 24552 | # not using gcc |
| 24553 | if test "$host_cpu" = ia64; then |
| 24554 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24555 | # chokes on -Wl,-G. The following line is correct: |
| 24556 | shared_flag='-G' |
| 24557 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24558 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24559 | shared_flag='${wl}-G' |
| 24560 | else |
| 24561 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24562 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24563 | fi |
| 24564 | fi |
| 24565 | |
| 24566 | # It seems that -bexpall does not export symbols beginning with |
| 24567 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24568 | always_export_symbols_GCJ=yes |
| 24569 | if test "$aix_use_runtimelinking" = yes; then |
| 24570 | # Warning - without using the other runtime loading flags (-brtl), |
| 24571 | # -berok will link without error, but may produce a broken library. |
| 24572 | allow_undefined_flag_GCJ='-berok' |
| 24573 | # Determine the default libpath from the value encoded in an empty executable. |
| 24574 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24575 | /* confdefs.h. */ |
| 24576 | _ACEOF |
| 24577 | cat confdefs.h >>conftest.$ac_ext |
| 24578 | cat >>conftest.$ac_ext <<_ACEOF |
| 24579 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24580 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24581 | int |
| 24582 | main () |
| 24583 | { |
| 24584 | |
| 24585 | ; |
| 24586 | return 0; |
| 24587 | } |
| 24588 | _ACEOF |
| 24589 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24590 | if { (ac_try="$ac_link" |
| 24591 | case "(($ac_try" in |
| 24592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24593 | *) ac_try_echo=$ac_try;; |
| 24594 | esac |
| 24595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24596 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24597 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24599 | rm -f conftest.er1 |
| 24600 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24602 | (exit $ac_status); } && |
| 24603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24604 | { (case "(($ac_try" in |
| 24605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24606 | *) ac_try_echo=$ac_try;; |
| 24607 | esac |
| 24608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24609 | (eval "$ac_try") 2>&5 |
| 24610 | ac_status=$? |
| 24611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24612 | (exit $ac_status); }; } && |
| 24613 | { ac_try='test -s conftest$ac_exeext' |
| 24614 | { (case "(($ac_try" in |
| 24615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24616 | *) ac_try_echo=$ac_try;; |
| 24617 | esac |
| 24618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24619 | (eval "$ac_try") 2>&5 |
| 24620 | ac_status=$? |
| 24621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24622 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24623 | |
| 24624 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24625 | }'` |
| 24626 | # Check for a 64-bit object if we didn't find anything. |
| 24627 | 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; } |
| 24628 | }'`; fi |
| 24629 | else |
| 24630 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24633 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24634 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24635 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24636 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24637 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24638 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24639 | |
| 24640 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24641 | 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] | 24642 | else |
| 24643 | if test "$host_cpu" = ia64; then |
| 24644 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24645 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24646 | 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] | 24647 | else |
| 24648 | # Determine the default libpath from the value encoded in an empty executable. |
| 24649 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24650 | /* confdefs.h. */ |
| 24651 | _ACEOF |
| 24652 | cat confdefs.h >>conftest.$ac_ext |
| 24653 | cat >>conftest.$ac_ext <<_ACEOF |
| 24654 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24655 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24656 | int |
| 24657 | main () |
| 24658 | { |
| 24659 | |
| 24660 | ; |
| 24661 | return 0; |
| 24662 | } |
| 24663 | _ACEOF |
| 24664 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24665 | if { (ac_try="$ac_link" |
| 24666 | case "(($ac_try" in |
| 24667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24668 | *) ac_try_echo=$ac_try;; |
| 24669 | esac |
| 24670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24671 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24672 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24674 | rm -f conftest.er1 |
| 24675 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24677 | (exit $ac_status); } && |
| 24678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24679 | { (case "(($ac_try" in |
| 24680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24681 | *) ac_try_echo=$ac_try;; |
| 24682 | esac |
| 24683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24684 | (eval "$ac_try") 2>&5 |
| 24685 | ac_status=$? |
| 24686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24687 | (exit $ac_status); }; } && |
| 24688 | { ac_try='test -s conftest$ac_exeext' |
| 24689 | { (case "(($ac_try" in |
| 24690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24691 | *) ac_try_echo=$ac_try;; |
| 24692 | esac |
| 24693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24694 | (eval "$ac_try") 2>&5 |
| 24695 | ac_status=$? |
| 24696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24697 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24698 | |
| 24699 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24700 | }'` |
| 24701 | # Check for a 64-bit object if we didn't find anything. |
| 24702 | 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; } |
| 24703 | }'`; fi |
| 24704 | else |
| 24705 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24707 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24708 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24709 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24710 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24711 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24712 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24713 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24714 | |
| 24715 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24716 | # Warning - without using the other run time loading flags, |
| 24717 | # -berok will link without error, but may produce a broken library. |
| 24718 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24719 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24720 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24721 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24722 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24723 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24724 | 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] | 24725 | fi |
| 24726 | fi |
| 24727 | ;; |
| 24728 | |
| 24729 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24730 | 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] | 24731 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24732 | hardcode_minus_L_GCJ=yes |
| 24733 | # see comment about different semantics on the GNU ld section |
| 24734 | ld_shlibs_GCJ=no |
| 24735 | ;; |
| 24736 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24737 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24738 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24739 | ;; |
| 24740 | |
| 24741 | cygwin* | mingw* | pw32*) |
| 24742 | # When not using gcc, we currently assume that we are using |
| 24743 | # Microsoft Visual C++. |
| 24744 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24745 | # no search path for DLLs. |
| 24746 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24747 | allow_undefined_flag_GCJ=unsupported |
| 24748 | # Tell ltmain to make .lib files, not .a files. |
| 24749 | libext=lib |
| 24750 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24751 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24752 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24753 | 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] | 24754 | # The linker will automatically build a .lib file if we build a DLL. |
| 24755 | old_archive_From_new_cmds_GCJ='true' |
| 24756 | # FIXME: Should let the user specify the lib program. |
| 24757 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24758 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24759 | enable_shared_with_static_runtimes_GCJ=yes |
| 24760 | ;; |
| 24761 | |
| 24762 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24763 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24764 | rhapsody* | darwin1.[012]) |
| 24765 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 24766 | ;; |
| 24767 | *) # Darwin 1.3 on |
| 24768 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24769 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24770 | else |
| 24771 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24772 | 10.[012]) |
| 24773 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24774 | ;; |
| 24775 | 10.*) |
| 24776 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 24777 | ;; |
| 24778 | esac |
| 24779 | fi |
| 24780 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24781 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24782 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24783 | hardcode_direct_GCJ=no |
| 24784 | hardcode_automatic_GCJ=yes |
| 24785 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24786 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24787 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24788 | if test "$GCC" = yes ; then |
| 24789 | output_verbose_link_cmd='echo' |
| 24790 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 24791 | 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] | 24792 | # 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] | 24793 | 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}' |
| 24794 | 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] | 24795 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24796 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24797 | xlc*) |
| 24798 | output_verbose_link_cmd='echo' |
| 24799 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 24800 | 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] | 24801 | # 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] | 24802 | 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}' |
| 24803 | 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] | 24804 | ;; |
| 24805 | *) |
| 24806 | ld_shlibs_GCJ=no |
| 24807 | ;; |
| 24808 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24809 | fi |
| 24810 | ;; |
| 24811 | |
| 24812 | dgux*) |
| 24813 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24814 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24815 | hardcode_shlibpath_var_GCJ=no |
| 24816 | ;; |
| 24817 | |
| 24818 | freebsd1*) |
| 24819 | ld_shlibs_GCJ=no |
| 24820 | ;; |
| 24821 | |
| 24822 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 24823 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 24824 | # does not break anything, and helps significantly (at the cost of a little |
| 24825 | # extra space). |
| 24826 | freebsd2.2*) |
| 24827 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 24828 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24829 | hardcode_direct_GCJ=yes |
| 24830 | hardcode_shlibpath_var_GCJ=no |
| 24831 | ;; |
| 24832 | |
| 24833 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 24834 | freebsd2*) |
| 24835 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24836 | hardcode_direct_GCJ=yes |
| 24837 | hardcode_minus_L_GCJ=yes |
| 24838 | hardcode_shlibpath_var_GCJ=no |
| 24839 | ;; |
| 24840 | |
| 24841 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24842 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24843 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 24844 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24845 | hardcode_direct_GCJ=yes |
| 24846 | hardcode_shlibpath_var_GCJ=no |
| 24847 | ;; |
| 24848 | |
| 24849 | hpux9*) |
| 24850 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24851 | 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] | 24852 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24853 | 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] | 24854 | fi |
| 24855 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24856 | hardcode_libdir_separator_GCJ=: |
| 24857 | hardcode_direct_GCJ=yes |
| 24858 | |
| 24859 | # hardcode_minus_L: Not really in the search PATH, |
| 24860 | # but as the default location of the library. |
| 24861 | hardcode_minus_L_GCJ=yes |
| 24862 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24863 | ;; |
| 24864 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24865 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24866 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24867 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24868 | else |
| 24869 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 24870 | fi |
| 24871 | if test "$with_gnu_ld" = no; then |
| 24872 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24873 | hardcode_libdir_separator_GCJ=: |
| 24874 | |
| 24875 | hardcode_direct_GCJ=yes |
| 24876 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24877 | |
| 24878 | # hardcode_minus_L: Not really in the search PATH, |
| 24879 | # but as the default location of the library. |
| 24880 | hardcode_minus_L_GCJ=yes |
| 24881 | fi |
| 24882 | ;; |
| 24883 | |
| 24884 | hpux11*) |
| 24885 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 24886 | case $host_cpu in |
| 24887 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24888 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24889 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24890 | ia64*) |
| 24891 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 24892 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24893 | *) |
| 24894 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24895 | ;; |
| 24896 | esac |
| 24897 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24898 | case $host_cpu in |
| 24899 | hppa*64*) |
| 24900 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24901 | ;; |
| 24902 | ia64*) |
| 24903 | 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] | 24904 | ;; |
| 24905 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24906 | 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] | 24907 | ;; |
| 24908 | esac |
| 24909 | fi |
| 24910 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24911 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24912 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24914 | case $host_cpu in |
| 24915 | hppa*64*|ia64*) |
| 24916 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 24917 | hardcode_direct_GCJ=no |
| 24918 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24919 | ;; |
| 24920 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24921 | hardcode_direct_GCJ=yes |
| 24922 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24923 | |
| 24924 | # hardcode_minus_L: Not really in the search PATH, |
| 24925 | # but as the default location of the library. |
| 24926 | hardcode_minus_L_GCJ=yes |
| 24927 | ;; |
| 24928 | esac |
| 24929 | fi |
| 24930 | ;; |
| 24931 | |
| 24932 | irix5* | irix6* | nonstopux*) |
| 24933 | if test "$GCC" = yes; then |
| 24934 | 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' |
| 24935 | else |
| 24936 | 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' |
| 24937 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 24938 | fi |
| 24939 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24940 | hardcode_libdir_separator_GCJ=: |
| 24941 | link_all_deplibs_GCJ=yes |
| 24942 | ;; |
| 24943 | |
| 24944 | netbsd*) |
| 24945 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24946 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 24947 | else |
| 24948 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 24949 | fi |
| 24950 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24951 | hardcode_direct_GCJ=yes |
| 24952 | hardcode_shlibpath_var_GCJ=no |
| 24953 | ;; |
| 24954 | |
| 24955 | newsos6) |
| 24956 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24957 | hardcode_direct_GCJ=yes |
| 24958 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24959 | hardcode_libdir_separator_GCJ=: |
| 24960 | hardcode_shlibpath_var_GCJ=no |
| 24961 | ;; |
| 24962 | |
| 24963 | openbsd*) |
| 24964 | hardcode_direct_GCJ=yes |
| 24965 | hardcode_shlibpath_var_GCJ=no |
| 24966 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 24967 | 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] | 24968 | 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] | 24969 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24970 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24971 | else |
| 24972 | case $host_os in |
| 24973 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 24974 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24975 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24976 | ;; |
| 24977 | *) |
| 24978 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 24979 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24980 | ;; |
| 24981 | esac |
| 24982 | fi |
| 24983 | ;; |
| 24984 | |
| 24985 | os2*) |
| 24986 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24987 | hardcode_minus_L_GCJ=yes |
| 24988 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24989 | 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] | 24990 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 24991 | ;; |
| 24992 | |
| 24993 | osf3*) |
| 24994 | if test "$GCC" = yes; then |
| 24995 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24996 | 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' |
| 24997 | else |
| 24998 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24999 | 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' |
| 25000 | fi |
| 25001 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25002 | hardcode_libdir_separator_GCJ=: |
| 25003 | ;; |
| 25004 | |
| 25005 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25006 | if test "$GCC" = yes; then |
| 25007 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25008 | 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' |
| 25009 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25010 | else |
| 25011 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25012 | 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] | 25013 | 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] | 25014 | $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] | 25015 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25016 | # Both c and cxx compiler support -rpath directly |
| 25017 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 25018 | fi |
| 25019 | hardcode_libdir_separator_GCJ=: |
| 25020 | ;; |
| 25021 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25022 | solaris*) |
| 25023 | no_undefined_flag_GCJ=' -z text' |
| 25024 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25025 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25026 | 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] | 25027 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25028 | $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] | 25029 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25030 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25031 | 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] | 25032 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25033 | $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] | 25034 | fi |
| 25035 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25036 | hardcode_shlibpath_var_GCJ=no |
| 25037 | case $host_os in |
| 25038 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25039 | *) |
| 25040 | # The compiler driver will combine linker options so we |
| 25041 | # cannot just pass the convience library names through |
| 25042 | # without $wl, iff we do not link with $LD. |
| 25043 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25044 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25045 | case $wlarc in |
| 25046 | '') |
| 25047 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25048 | *) |
| 25049 | 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' ;; |
| 25050 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25051 | esac |
| 25052 | link_all_deplibs_GCJ=yes |
| 25053 | ;; |
| 25054 | |
| 25055 | sunos4*) |
| 25056 | if test "x$host_vendor" = xsequent; then |
| 25057 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25058 | # files that make .init and .fini sections work. |
| 25059 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25060 | else |
| 25061 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25062 | fi |
| 25063 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25064 | hardcode_direct_GCJ=yes |
| 25065 | hardcode_minus_L_GCJ=yes |
| 25066 | hardcode_shlibpath_var_GCJ=no |
| 25067 | ;; |
| 25068 | |
| 25069 | sysv4) |
| 25070 | case $host_vendor in |
| 25071 | sni) |
| 25072 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25073 | hardcode_direct_GCJ=yes # is this really true??? |
| 25074 | ;; |
| 25075 | siemens) |
| 25076 | ## LD is ld it makes a PLAMLIB |
| 25077 | ## CC just makes a GrossModule. |
| 25078 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25079 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25080 | hardcode_direct_GCJ=no |
| 25081 | ;; |
| 25082 | motorola) |
| 25083 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25084 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25085 | ;; |
| 25086 | esac |
| 25087 | runpath_var='LD_RUN_PATH' |
| 25088 | hardcode_shlibpath_var_GCJ=no |
| 25089 | ;; |
| 25090 | |
| 25091 | sysv4.3*) |
| 25092 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25093 | hardcode_shlibpath_var_GCJ=no |
| 25094 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25095 | ;; |
| 25096 | |
| 25097 | sysv4*MP*) |
| 25098 | if test -d /usr/nec; then |
| 25099 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25100 | hardcode_shlibpath_var_GCJ=no |
| 25101 | runpath_var=LD_RUN_PATH |
| 25102 | hardcode_runpath_var=yes |
| 25103 | ld_shlibs_GCJ=yes |
| 25104 | fi |
| 25105 | ;; |
| 25106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25107 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25108 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25109 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25110 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25111 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25112 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25113 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25114 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25115 | 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] | 25116 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25117 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25118 | 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] | 25119 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25120 | ;; |
| 25121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25122 | sysv5* | sco3.2v5* | sco5v6*) |
| 25123 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25124 | # link with -lc, and that would cause any symbols used from libc to |
| 25125 | # always be unresolved, which means just about no library would |
| 25126 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25127 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25128 | # as -z defs. |
| 25129 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25130 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25131 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25132 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25133 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25134 | hardcode_libdir_separator_GCJ=':' |
| 25135 | link_all_deplibs_GCJ=yes |
| 25136 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25137 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25138 | |
| 25139 | if test "$GCC" = yes; then |
| 25140 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25141 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25142 | else |
| 25143 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25144 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25145 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25146 | ;; |
| 25147 | |
| 25148 | uts4*) |
| 25149 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25150 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25151 | hardcode_shlibpath_var_GCJ=no |
| 25152 | ;; |
| 25153 | |
| 25154 | *) |
| 25155 | ld_shlibs_GCJ=no |
| 25156 | ;; |
| 25157 | esac |
| 25158 | fi |
| 25159 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25160 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25161 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25162 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25163 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25164 | # |
| 25165 | # Do we need to explicitly link libc? |
| 25166 | # |
| 25167 | case "x$archive_cmds_need_lc_GCJ" in |
| 25168 | x|xyes) |
| 25169 | # Assume -lc should be added |
| 25170 | archive_cmds_need_lc_GCJ=yes |
| 25171 | |
| 25172 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25173 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25174 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25175 | # FIXME: we may have to deal with multi-command sequences. |
| 25176 | ;; |
| 25177 | '$CC '*) |
| 25178 | # Test whether the compiler implicitly links with -lc since on some |
| 25179 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25180 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25181 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25182 | 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] | 25183 | $rm conftest* |
| 25184 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25185 | |
| 25186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25187 | (eval $ac_compile) 2>&5 |
| 25188 | ac_status=$? |
| 25189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25190 | (exit $ac_status); } 2>conftest.err; then |
| 25191 | soname=conftest |
| 25192 | lib=conftest |
| 25193 | libobjs=conftest.$ac_objext |
| 25194 | deplibs= |
| 25195 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25196 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25197 | compiler_flags=-v |
| 25198 | linker_flags=-v |
| 25199 | verstring= |
| 25200 | output_objdir=. |
| 25201 | libname=conftest |
| 25202 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25203 | allow_undefined_flag_GCJ= |
| 25204 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25205 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25206 | ac_status=$? |
| 25207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25208 | (exit $ac_status); } |
| 25209 | then |
| 25210 | archive_cmds_need_lc_GCJ=no |
| 25211 | else |
| 25212 | archive_cmds_need_lc_GCJ=yes |
| 25213 | fi |
| 25214 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25215 | else |
| 25216 | cat conftest.err 1>&5 |
| 25217 | fi |
| 25218 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25219 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25220 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25221 | ;; |
| 25222 | esac |
| 25223 | fi |
| 25224 | ;; |
| 25225 | esac |
| 25226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25227 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25228 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25229 | library_names_spec= |
| 25230 | libname_spec='lib$name' |
| 25231 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25232 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25233 | postinstall_cmds= |
| 25234 | postuninstall_cmds= |
| 25235 | finish_cmds= |
| 25236 | finish_eval= |
| 25237 | shlibpath_var= |
| 25238 | shlibpath_overrides_runpath=unknown |
| 25239 | version_type=none |
| 25240 | dynamic_linker="$host_os ld.so" |
| 25241 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25242 | if test "$GCC" = yes; then |
| 25243 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25244 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25245 | # if the path contains ";" then we assume it to be the separator |
| 25246 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25247 | # assumed that no part of a normal pathname contains ";" but that should |
| 25248 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25249 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25250 | else |
| 25251 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25252 | fi |
| 25253 | else |
| 25254 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25255 | fi |
| 25256 | need_lib_prefix=unknown |
| 25257 | hardcode_into_libs=no |
| 25258 | |
| 25259 | # when you set need_version to no, make sure it does not cause -set_version |
| 25260 | # flags to be left without arguments |
| 25261 | need_version=unknown |
| 25262 | |
| 25263 | case $host_os in |
| 25264 | aix3*) |
| 25265 | version_type=linux |
| 25266 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25267 | shlibpath_var=LIBPATH |
| 25268 | |
| 25269 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25270 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25271 | ;; |
| 25272 | |
| 25273 | aix4* | aix5*) |
| 25274 | version_type=linux |
| 25275 | need_lib_prefix=no |
| 25276 | need_version=no |
| 25277 | hardcode_into_libs=yes |
| 25278 | if test "$host_cpu" = ia64; then |
| 25279 | # AIX 5 supports IA64 |
| 25280 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25281 | shlibpath_var=LD_LIBRARY_PATH |
| 25282 | else |
| 25283 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25284 | # for dependence libraries. The import file would start with |
| 25285 | # the line `#! .'. This would cause the generated library to |
| 25286 | # depend on `.', always an invalid library. This was fixed in |
| 25287 | # development snapshots of GCC prior to 3.0. |
| 25288 | case $host_os in |
| 25289 | aix4 | aix4.[01] | aix4.[01].*) |
| 25290 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25291 | echo ' yes ' |
| 25292 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25293 | : |
| 25294 | else |
| 25295 | can_build_shared=no |
| 25296 | fi |
| 25297 | ;; |
| 25298 | esac |
| 25299 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25300 | # soname into executable. Probably we can add versioning support to |
| 25301 | # collect2, so additional links can be useful in future. |
| 25302 | if test "$aix_use_runtimelinking" = yes; then |
| 25303 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25304 | # instead of lib<name>.a to let people know that these are not |
| 25305 | # typical AIX shared libraries. |
| 25306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25307 | else |
| 25308 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25309 | # and later when we are not doing run time linking. |
| 25310 | library_names_spec='${libname}${release}.a $libname.a' |
| 25311 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25312 | fi |
| 25313 | shlibpath_var=LIBPATH |
| 25314 | fi |
| 25315 | ;; |
| 25316 | |
| 25317 | amigaos*) |
| 25318 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25319 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25320 | 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] | 25321 | ;; |
| 25322 | |
| 25323 | beos*) |
| 25324 | library_names_spec='${libname}${shared_ext}' |
| 25325 | dynamic_linker="$host_os ld.so" |
| 25326 | shlibpath_var=LIBRARY_PATH |
| 25327 | ;; |
| 25328 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25329 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25330 | version_type=linux |
| 25331 | need_version=no |
| 25332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25333 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25334 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25335 | shlibpath_var=LD_LIBRARY_PATH |
| 25336 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25337 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25338 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25339 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25340 | # libtool to hard-code these into programs |
| 25341 | ;; |
| 25342 | |
| 25343 | cygwin* | mingw* | pw32*) |
| 25344 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25345 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25346 | need_version=no |
| 25347 | need_lib_prefix=no |
| 25348 | |
| 25349 | case $GCC,$host_os in |
| 25350 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25351 | library_names_spec='$libname.dll.a' |
| 25352 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25353 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25354 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25355 | dldir=$destdir/`dirname \$dlpath`~ |
| 25356 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25357 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25358 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25359 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25360 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25361 | $rm \$dlpath' |
| 25362 | shlibpath_overrides_runpath=yes |
| 25363 | |
| 25364 | case $host_os in |
| 25365 | cygwin*) |
| 25366 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25367 | 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] | 25368 | 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] | 25369 | ;; |
| 25370 | mingw*) |
| 25371 | # MinGW DLLs use traditional 'lib' prefix |
| 25372 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25373 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25374 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25375 | # It is most probably a Windows format PATH printed by |
| 25376 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25377 | # path with ; separators, and with drive letters. We can handle the |
| 25378 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25379 | # especially as we might pass files found there to a mingw objdump, |
| 25380 | # which wouldn't understand a cygwinified path. Ahh. |
| 25381 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25382 | else |
| 25383 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25384 | fi |
| 25385 | ;; |
| 25386 | pw32*) |
| 25387 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25388 | 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] | 25389 | ;; |
| 25390 | esac |
| 25391 | ;; |
| 25392 | |
| 25393 | *) |
| 25394 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25395 | ;; |
| 25396 | esac |
| 25397 | dynamic_linker='Win32 ld.exe' |
| 25398 | # FIXME: first we should search . and the directory the executable is in |
| 25399 | shlibpath_var=PATH |
| 25400 | ;; |
| 25401 | |
| 25402 | darwin* | rhapsody*) |
| 25403 | dynamic_linker="$host_os dyld" |
| 25404 | version_type=darwin |
| 25405 | need_lib_prefix=no |
| 25406 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25407 | 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] | 25408 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25409 | shlibpath_overrides_runpath=yes |
| 25410 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25411 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25412 | # 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] | 25413 | if test "$GCC" = yes; then |
| 25414 | 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"` |
| 25415 | else |
| 25416 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25417 | fi |
| 25418 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25419 | ;; |
| 25420 | |
| 25421 | dgux*) |
| 25422 | version_type=linux |
| 25423 | need_lib_prefix=no |
| 25424 | need_version=no |
| 25425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25426 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25427 | shlibpath_var=LD_LIBRARY_PATH |
| 25428 | ;; |
| 25429 | |
| 25430 | freebsd1*) |
| 25431 | dynamic_linker=no |
| 25432 | ;; |
| 25433 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25434 | kfreebsd*-gnu) |
| 25435 | version_type=linux |
| 25436 | need_lib_prefix=no |
| 25437 | need_version=no |
| 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 | shlibpath_overrides_runpath=no |
| 25442 | hardcode_into_libs=yes |
| 25443 | dynamic_linker='GNU ld.so' |
| 25444 | ;; |
| 25445 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25446 | freebsd* | dragonfly*) |
| 25447 | # DragonFly does not have aout. When/if they implement a new |
| 25448 | # versioning mechanism, adjust this. |
| 25449 | if test -x /usr/bin/objformat; then |
| 25450 | objformat=`/usr/bin/objformat` |
| 25451 | else |
| 25452 | case $host_os in |
| 25453 | freebsd[123]*) objformat=aout ;; |
| 25454 | *) objformat=elf ;; |
| 25455 | esac |
| 25456 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25457 | version_type=freebsd-$objformat |
| 25458 | case $version_type in |
| 25459 | freebsd-elf*) |
| 25460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25461 | need_version=no |
| 25462 | need_lib_prefix=no |
| 25463 | ;; |
| 25464 | freebsd-*) |
| 25465 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25466 | need_version=yes |
| 25467 | ;; |
| 25468 | esac |
| 25469 | shlibpath_var=LD_LIBRARY_PATH |
| 25470 | case $host_os in |
| 25471 | freebsd2*) |
| 25472 | shlibpath_overrides_runpath=yes |
| 25473 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25474 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25475 | shlibpath_overrides_runpath=yes |
| 25476 | hardcode_into_libs=yes |
| 25477 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25478 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25479 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25480 | shlibpath_overrides_runpath=no |
| 25481 | hardcode_into_libs=yes |
| 25482 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25483 | freebsd*) # from 4.6 on |
| 25484 | shlibpath_overrides_runpath=yes |
| 25485 | hardcode_into_libs=yes |
| 25486 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25487 | esac |
| 25488 | ;; |
| 25489 | |
| 25490 | gnu*) |
| 25491 | version_type=linux |
| 25492 | need_lib_prefix=no |
| 25493 | need_version=no |
| 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 | hardcode_into_libs=yes |
| 25498 | ;; |
| 25499 | |
| 25500 | hpux9* | hpux10* | hpux11*) |
| 25501 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25502 | # link against other versions. |
| 25503 | version_type=sunos |
| 25504 | need_lib_prefix=no |
| 25505 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25506 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25507 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25508 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25509 | hardcode_into_libs=yes |
| 25510 | dynamic_linker="$host_os dld.so" |
| 25511 | shlibpath_var=LD_LIBRARY_PATH |
| 25512 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25514 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25515 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25516 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25517 | else |
| 25518 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25519 | fi |
| 25520 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25521 | ;; |
| 25522 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25523 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25524 | hardcode_into_libs=yes |
| 25525 | dynamic_linker="$host_os dld.sl" |
| 25526 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25527 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25529 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25530 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25531 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25532 | ;; |
| 25533 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25534 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25535 | dynamic_linker="$host_os dld.sl" |
| 25536 | shlibpath_var=SHLIB_PATH |
| 25537 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25539 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25540 | ;; |
| 25541 | esac |
| 25542 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25543 | postinstall_cmds='chmod 555 $lib' |
| 25544 | ;; |
| 25545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25546 | interix3*) |
| 25547 | version_type=linux |
| 25548 | need_lib_prefix=no |
| 25549 | need_version=no |
| 25550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25551 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25552 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25553 | shlibpath_var=LD_LIBRARY_PATH |
| 25554 | shlibpath_overrides_runpath=no |
| 25555 | hardcode_into_libs=yes |
| 25556 | ;; |
| 25557 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25558 | irix5* | irix6* | nonstopux*) |
| 25559 | case $host_os in |
| 25560 | nonstopux*) version_type=nonstopux ;; |
| 25561 | *) |
| 25562 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25563 | version_type=linux |
| 25564 | else |
| 25565 | version_type=irix |
| 25566 | fi ;; |
| 25567 | esac |
| 25568 | need_lib_prefix=no |
| 25569 | need_version=no |
| 25570 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25572 | case $host_os in |
| 25573 | irix5* | nonstopux*) |
| 25574 | libsuff= shlibsuff= |
| 25575 | ;; |
| 25576 | *) |
| 25577 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25578 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25579 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25580 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25581 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25582 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25583 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25584 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25585 | esac |
| 25586 | ;; |
| 25587 | esac |
| 25588 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25589 | shlibpath_overrides_runpath=no |
| 25590 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25591 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25592 | hardcode_into_libs=yes |
| 25593 | ;; |
| 25594 | |
| 25595 | # No shared lib support for Linux oldld, aout, or coff. |
| 25596 | linux*oldld* | linux*aout* | linux*coff*) |
| 25597 | dynamic_linker=no |
| 25598 | ;; |
| 25599 | |
| 25600 | # This must be Linux ELF. |
| 25601 | linux*) |
| 25602 | version_type=linux |
| 25603 | need_lib_prefix=no |
| 25604 | need_version=no |
| 25605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25606 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25607 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25608 | shlibpath_var=LD_LIBRARY_PATH |
| 25609 | shlibpath_overrides_runpath=no |
| 25610 | # This implies no fast_install, which is unacceptable. |
| 25611 | # Some rework will be needed to allow for fast_install |
| 25612 | # before this can be enabled. |
| 25613 | hardcode_into_libs=yes |
| 25614 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25615 | # Append ld.so.conf contents to the search path |
| 25616 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25617 | 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] | 25618 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25619 | fi |
| 25620 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25621 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25622 | # powerpc, because MkLinux only supported shared libraries with the |
| 25623 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25624 | # most powerpc-linux boxes support dynamic linking these days and |
| 25625 | # people can always --disable-shared, the test was removed, and we |
| 25626 | # assume the GNU/Linux dynamic linker is in use. |
| 25627 | dynamic_linker='GNU/Linux ld.so' |
| 25628 | ;; |
| 25629 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25630 | knetbsd*-gnu) |
| 25631 | version_type=linux |
| 25632 | need_lib_prefix=no |
| 25633 | need_version=no |
| 25634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25635 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25636 | shlibpath_var=LD_LIBRARY_PATH |
| 25637 | shlibpath_overrides_runpath=no |
| 25638 | hardcode_into_libs=yes |
| 25639 | dynamic_linker='GNU ld.so' |
| 25640 | ;; |
| 25641 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25642 | netbsd*) |
| 25643 | version_type=sunos |
| 25644 | need_lib_prefix=no |
| 25645 | need_version=no |
| 25646 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25648 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25649 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25650 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25651 | 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] | 25652 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25653 | dynamic_linker='NetBSD ld.elf_so' |
| 25654 | fi |
| 25655 | shlibpath_var=LD_LIBRARY_PATH |
| 25656 | shlibpath_overrides_runpath=yes |
| 25657 | hardcode_into_libs=yes |
| 25658 | ;; |
| 25659 | |
| 25660 | newsos6) |
| 25661 | version_type=linux |
| 25662 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25663 | shlibpath_var=LD_LIBRARY_PATH |
| 25664 | shlibpath_overrides_runpath=yes |
| 25665 | ;; |
| 25666 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25667 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25668 | version_type=linux |
| 25669 | need_lib_prefix=no |
| 25670 | need_version=no |
| 25671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25672 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25673 | shlibpath_var=LD_LIBRARY_PATH |
| 25674 | shlibpath_overrides_runpath=yes |
| 25675 | ;; |
| 25676 | |
| 25677 | openbsd*) |
| 25678 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25679 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25680 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25681 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25682 | case $host_os in |
| 25683 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25684 | *) need_version=no ;; |
| 25685 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25687 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25688 | shlibpath_var=LD_LIBRARY_PATH |
| 25689 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25690 | case $host_os in |
| 25691 | openbsd2.[89] | openbsd2.[89].*) |
| 25692 | shlibpath_overrides_runpath=no |
| 25693 | ;; |
| 25694 | *) |
| 25695 | shlibpath_overrides_runpath=yes |
| 25696 | ;; |
| 25697 | esac |
| 25698 | else |
| 25699 | shlibpath_overrides_runpath=yes |
| 25700 | fi |
| 25701 | ;; |
| 25702 | |
| 25703 | os2*) |
| 25704 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25705 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25706 | need_lib_prefix=no |
| 25707 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25708 | dynamic_linker='OS/2 ld.exe' |
| 25709 | shlibpath_var=LIBPATH |
| 25710 | ;; |
| 25711 | |
| 25712 | osf3* | osf4* | osf5*) |
| 25713 | version_type=osf |
| 25714 | need_lib_prefix=no |
| 25715 | need_version=no |
| 25716 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25718 | shlibpath_var=LD_LIBRARY_PATH |
| 25719 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25720 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25721 | ;; |
| 25722 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25723 | solaris*) |
| 25724 | version_type=linux |
| 25725 | need_lib_prefix=no |
| 25726 | need_version=no |
| 25727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25728 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25729 | shlibpath_var=LD_LIBRARY_PATH |
| 25730 | shlibpath_overrides_runpath=yes |
| 25731 | hardcode_into_libs=yes |
| 25732 | # ldd complains unless libraries are executable |
| 25733 | postinstall_cmds='chmod +x $lib' |
| 25734 | ;; |
| 25735 | |
| 25736 | sunos4*) |
| 25737 | version_type=sunos |
| 25738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25739 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25740 | shlibpath_var=LD_LIBRARY_PATH |
| 25741 | shlibpath_overrides_runpath=yes |
| 25742 | if test "$with_gnu_ld" = yes; then |
| 25743 | need_lib_prefix=no |
| 25744 | fi |
| 25745 | need_version=yes |
| 25746 | ;; |
| 25747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25748 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25749 | version_type=linux |
| 25750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25751 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25752 | shlibpath_var=LD_LIBRARY_PATH |
| 25753 | case $host_vendor in |
| 25754 | sni) |
| 25755 | shlibpath_overrides_runpath=no |
| 25756 | need_lib_prefix=no |
| 25757 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 25758 | runpath_var=LD_RUN_PATH |
| 25759 | ;; |
| 25760 | siemens) |
| 25761 | need_lib_prefix=no |
| 25762 | ;; |
| 25763 | motorola) |
| 25764 | need_lib_prefix=no |
| 25765 | need_version=no |
| 25766 | shlibpath_overrides_runpath=no |
| 25767 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 25768 | ;; |
| 25769 | esac |
| 25770 | ;; |
| 25771 | |
| 25772 | sysv4*MP*) |
| 25773 | if test -d /usr/nec ;then |
| 25774 | version_type=linux |
| 25775 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 25776 | soname_spec='$libname${shared_ext}.$major' |
| 25777 | shlibpath_var=LD_LIBRARY_PATH |
| 25778 | fi |
| 25779 | ;; |
| 25780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25781 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 25782 | version_type=freebsd-elf |
| 25783 | need_lib_prefix=no |
| 25784 | need_version=no |
| 25785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25786 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25787 | shlibpath_var=LD_LIBRARY_PATH |
| 25788 | hardcode_into_libs=yes |
| 25789 | if test "$with_gnu_ld" = yes; then |
| 25790 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 25791 | shlibpath_overrides_runpath=no |
| 25792 | else |
| 25793 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 25794 | shlibpath_overrides_runpath=yes |
| 25795 | case $host_os in |
| 25796 | sco3.2v5*) |
| 25797 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 25798 | ;; |
| 25799 | esac |
| 25800 | fi |
| 25801 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 25802 | ;; |
| 25803 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25804 | uts4*) |
| 25805 | version_type=linux |
| 25806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25807 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25808 | shlibpath_var=LD_LIBRARY_PATH |
| 25809 | ;; |
| 25810 | |
| 25811 | *) |
| 25812 | dynamic_linker=no |
| 25813 | ;; |
| 25814 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25815 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 25816 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25817 | test "$dynamic_linker" = no && can_build_shared=no |
| 25818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25819 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 25820 | if test "$GCC" = yes; then |
| 25821 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 25822 | fi |
| 25823 | |
| 25824 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 25825 | 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] | 25826 | hardcode_action_GCJ= |
| 25827 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 25828 | test -n "$runpath_var_GCJ" || \ |
| 25829 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 25830 | |
| 25831 | # We can hardcode non-existant directories. |
| 25832 | if test "$hardcode_direct_GCJ" != no && |
| 25833 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 25834 | # have to relink, otherwise we might link with an installed library |
| 25835 | # when we should be linking with a yet-to-be-installed one |
| 25836 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 25837 | test "$hardcode_minus_L_GCJ" != no; then |
| 25838 | # Linking always hardcodes the temporary library directory. |
| 25839 | hardcode_action_GCJ=relink |
| 25840 | else |
| 25841 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 25842 | hardcode_action_GCJ=immediate |
| 25843 | fi |
| 25844 | else |
| 25845 | # We cannot hardcode anything, or else we can only hardcode existing |
| 25846 | # directories. |
| 25847 | hardcode_action_GCJ=unsupported |
| 25848 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25849 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 25850 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25851 | |
| 25852 | if test "$hardcode_action_GCJ" = relink; then |
| 25853 | # Fast installation is not supported |
| 25854 | enable_fast_install=no |
| 25855 | elif test "$shlibpath_overrides_runpath" = yes || |
| 25856 | test "$enable_shared" = no; then |
| 25857 | # Fast installation is not necessary |
| 25858 | enable_fast_install=needless |
| 25859 | fi |
| 25860 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25861 | |
| 25862 | # The else clause should only fire when bootstrapping the |
| 25863 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25864 | # with your package, and you will get complaints that there are |
| 25865 | # no rules to generate ltmain.sh. |
| 25866 | if test -f "$ltmain"; then |
| 25867 | # See if we are running on zsh, and set the options which allow our commands through |
| 25868 | # without removal of \ escapes. |
| 25869 | if test -n "${ZSH_VERSION+set}" ; then |
| 25870 | setopt NO_GLOB_SUBST |
| 25871 | fi |
| 25872 | # Now quote all the things that may contain metacharacters while being |
| 25873 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25874 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25875 | 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] | 25876 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25877 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25878 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25879 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25880 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25881 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25882 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25883 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25884 | compiler_GCJ \ |
| 25885 | CC_GCJ \ |
| 25886 | LD_GCJ \ |
| 25887 | lt_prog_compiler_wl_GCJ \ |
| 25888 | lt_prog_compiler_pic_GCJ \ |
| 25889 | lt_prog_compiler_static_GCJ \ |
| 25890 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 25891 | export_dynamic_flag_spec_GCJ \ |
| 25892 | thread_safe_flag_spec_GCJ \ |
| 25893 | whole_archive_flag_spec_GCJ \ |
| 25894 | enable_shared_with_static_runtimes_GCJ \ |
| 25895 | old_archive_cmds_GCJ \ |
| 25896 | old_archive_from_new_cmds_GCJ \ |
| 25897 | predep_objects_GCJ \ |
| 25898 | postdep_objects_GCJ \ |
| 25899 | predeps_GCJ \ |
| 25900 | postdeps_GCJ \ |
| 25901 | compiler_lib_search_path_GCJ \ |
| 25902 | archive_cmds_GCJ \ |
| 25903 | archive_expsym_cmds_GCJ \ |
| 25904 | postinstall_cmds_GCJ \ |
| 25905 | postuninstall_cmds_GCJ \ |
| 25906 | old_archive_from_expsyms_cmds_GCJ \ |
| 25907 | allow_undefined_flag_GCJ \ |
| 25908 | no_undefined_flag_GCJ \ |
| 25909 | export_symbols_cmds_GCJ \ |
| 25910 | hardcode_libdir_flag_spec_GCJ \ |
| 25911 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 25912 | hardcode_libdir_separator_GCJ \ |
| 25913 | hardcode_automatic_GCJ \ |
| 25914 | module_cmds_GCJ \ |
| 25915 | module_expsym_cmds_GCJ \ |
| 25916 | lt_cv_prog_compiler_c_o_GCJ \ |
| 25917 | exclude_expsyms_GCJ \ |
| 25918 | include_expsyms_GCJ; do |
| 25919 | |
| 25920 | case $var in |
| 25921 | old_archive_cmds_GCJ | \ |
| 25922 | old_archive_from_new_cmds_GCJ | \ |
| 25923 | archive_cmds_GCJ | \ |
| 25924 | archive_expsym_cmds_GCJ | \ |
| 25925 | module_cmds_GCJ | \ |
| 25926 | module_expsym_cmds_GCJ | \ |
| 25927 | old_archive_from_expsyms_cmds_GCJ | \ |
| 25928 | export_symbols_cmds_GCJ | \ |
| 25929 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25930 | postinstall_cmds | postuninstall_cmds | \ |
| 25931 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25932 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25933 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25934 | 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] | 25935 | ;; |
| 25936 | *) |
| 25937 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 25938 | ;; |
| 25939 | esac |
| 25940 | done |
| 25941 | |
| 25942 | case $lt_echo in |
| 25943 | *'\$0 --fallback-echo"') |
| 25944 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 25945 | ;; |
| 25946 | esac |
| 25947 | |
| 25948 | cfgfile="$ofile" |
| 25949 | |
| 25950 | cat <<__EOF__ >> "$cfgfile" |
| 25951 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 25952 | |
| 25953 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 25954 | |
| 25955 | # Shell to use when invoking shell scripts. |
| 25956 | SHELL=$lt_SHELL |
| 25957 | |
| 25958 | # Whether or not to build shared libraries. |
| 25959 | build_libtool_libs=$enable_shared |
| 25960 | |
| 25961 | # Whether or not to build static libraries. |
| 25962 | build_old_libs=$enable_static |
| 25963 | |
| 25964 | # Whether or not to add -lc for building shared libraries. |
| 25965 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 25966 | |
| 25967 | # Whether or not to disallow shared libs when runtime libs are static |
| 25968 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 25969 | |
| 25970 | # Whether or not to optimize for fast installation. |
| 25971 | fast_install=$enable_fast_install |
| 25972 | |
| 25973 | # The host system. |
| 25974 | host_alias=$host_alias |
| 25975 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25976 | host_os=$host_os |
| 25977 | |
| 25978 | # The build system. |
| 25979 | build_alias=$build_alias |
| 25980 | build=$build |
| 25981 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25982 | |
| 25983 | # An echo program that does not interpret backslashes. |
| 25984 | echo=$lt_echo |
| 25985 | |
| 25986 | # The archiver. |
| 25987 | AR=$lt_AR |
| 25988 | AR_FLAGS=$lt_AR_FLAGS |
| 25989 | |
| 25990 | # A C compiler. |
| 25991 | LTCC=$lt_LTCC |
| 25992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25993 | # LTCC compiler flags. |
| 25994 | LTCFLAGS=$lt_LTCFLAGS |
| 25995 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25996 | # A language-specific compiler. |
| 25997 | CC=$lt_compiler_GCJ |
| 25998 | |
| 25999 | # Is the compiler the GNU C compiler? |
| 26000 | with_gcc=$GCC_GCJ |
| 26001 | |
| 26002 | # An ERE matcher. |
| 26003 | EGREP=$lt_EGREP |
| 26004 | |
| 26005 | # The linker used to build libraries. |
| 26006 | LD=$lt_LD_GCJ |
| 26007 | |
| 26008 | # Whether we need hard or soft links. |
| 26009 | LN_S=$lt_LN_S |
| 26010 | |
| 26011 | # A BSD-compatible nm program. |
| 26012 | NM=$lt_NM |
| 26013 | |
| 26014 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26015 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26016 | |
| 26017 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26018 | MAGIC_CMD=$MAGIC_CMD |
| 26019 | |
| 26020 | # Used on cygwin: DLL creation program. |
| 26021 | DLLTOOL="$DLLTOOL" |
| 26022 | |
| 26023 | # Used on cygwin: object dumper. |
| 26024 | OBJDUMP="$OBJDUMP" |
| 26025 | |
| 26026 | # Used on cygwin: assembler. |
| 26027 | AS="$AS" |
| 26028 | |
| 26029 | # The name of the directory that contains temporary libtool files. |
| 26030 | objdir=$objdir |
| 26031 | |
| 26032 | # How to create reloadable object files. |
| 26033 | reload_flag=$lt_reload_flag |
| 26034 | reload_cmds=$lt_reload_cmds |
| 26035 | |
| 26036 | # How to pass a linker flag through the compiler. |
| 26037 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26038 | |
| 26039 | # Object file suffix (normally "o"). |
| 26040 | objext="$ac_objext" |
| 26041 | |
| 26042 | # Old archive suffix (normally "a"). |
| 26043 | libext="$libext" |
| 26044 | |
| 26045 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26046 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26047 | |
| 26048 | # Executable file suffix (normally ""). |
| 26049 | exeext="$exeext" |
| 26050 | |
| 26051 | # Additional compiler flags for building library objects. |
| 26052 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26053 | pic_mode=$pic_mode |
| 26054 | |
| 26055 | # What is the maximum length of a command? |
| 26056 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26057 | |
| 26058 | # Does compiler simultaneously support -c and -o options? |
| 26059 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26060 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26061 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26062 | need_locks=$lt_need_locks |
| 26063 | |
| 26064 | # Do we need the lib prefix for modules? |
| 26065 | need_lib_prefix=$need_lib_prefix |
| 26066 | |
| 26067 | # Do we need a version for libraries? |
| 26068 | need_version=$need_version |
| 26069 | |
| 26070 | # Whether dlopen is supported. |
| 26071 | dlopen_support=$enable_dlopen |
| 26072 | |
| 26073 | # Whether dlopen of programs is supported. |
| 26074 | dlopen_self=$enable_dlopen_self |
| 26075 | |
| 26076 | # Whether dlopen of statically linked programs is supported. |
| 26077 | dlopen_self_static=$enable_dlopen_self_static |
| 26078 | |
| 26079 | # Compiler flag to prevent dynamic linking. |
| 26080 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26081 | |
| 26082 | # Compiler flag to turn off builtin functions. |
| 26083 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26084 | |
| 26085 | # Compiler flag to allow reflexive dlopens. |
| 26086 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26087 | |
| 26088 | # Compiler flag to generate shared objects directly from archives. |
| 26089 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26090 | |
| 26091 | # Compiler flag to generate thread-safe objects. |
| 26092 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26093 | |
| 26094 | # Library versioning type. |
| 26095 | version_type=$version_type |
| 26096 | |
| 26097 | # Format of library name prefix. |
| 26098 | libname_spec=$lt_libname_spec |
| 26099 | |
| 26100 | # List of archive names. First name is the real one, the rest are links. |
| 26101 | # The last name is the one that the linker finds with -lNAME. |
| 26102 | library_names_spec=$lt_library_names_spec |
| 26103 | |
| 26104 | # The coded name of the library, if different from the real name. |
| 26105 | soname_spec=$lt_soname_spec |
| 26106 | |
| 26107 | # Commands used to build and install an old-style archive. |
| 26108 | RANLIB=$lt_RANLIB |
| 26109 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26110 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26111 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26112 | |
| 26113 | # Create an old-style archive from a shared archive. |
| 26114 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26115 | |
| 26116 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26117 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26118 | |
| 26119 | # Commands used to build and install a shared archive. |
| 26120 | archive_cmds=$lt_archive_cmds_GCJ |
| 26121 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26122 | postinstall_cmds=$lt_postinstall_cmds |
| 26123 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26124 | |
| 26125 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26126 | module_cmds=$lt_module_cmds_GCJ |
| 26127 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26128 | |
| 26129 | # Commands to strip libraries. |
| 26130 | old_striplib=$lt_old_striplib |
| 26131 | striplib=$lt_striplib |
| 26132 | |
| 26133 | # Dependencies to place before the objects being linked to create a |
| 26134 | # shared library. |
| 26135 | predep_objects=$lt_predep_objects_GCJ |
| 26136 | |
| 26137 | # Dependencies to place after the objects being linked to create a |
| 26138 | # shared library. |
| 26139 | postdep_objects=$lt_postdep_objects_GCJ |
| 26140 | |
| 26141 | # Dependencies to place before the objects being linked to create a |
| 26142 | # shared library. |
| 26143 | predeps=$lt_predeps_GCJ |
| 26144 | |
| 26145 | # Dependencies to place after the objects being linked to create a |
| 26146 | # shared library. |
| 26147 | postdeps=$lt_postdeps_GCJ |
| 26148 | |
| 26149 | # The library search path used internally by the compiler when linking |
| 26150 | # a shared library. |
| 26151 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26152 | |
| 26153 | # Method to check whether dependent libraries are shared objects. |
| 26154 | deplibs_check_method=$lt_deplibs_check_method |
| 26155 | |
| 26156 | # Command to use when deplibs_check_method == file_magic. |
| 26157 | file_magic_cmd=$lt_file_magic_cmd |
| 26158 | |
| 26159 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26160 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26161 | |
| 26162 | # Flag that forces no undefined symbols. |
| 26163 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26164 | |
| 26165 | # Commands used to finish a libtool library installation in a directory. |
| 26166 | finish_cmds=$lt_finish_cmds |
| 26167 | |
| 26168 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26169 | finish_eval=$lt_finish_eval |
| 26170 | |
| 26171 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26172 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26173 | |
| 26174 | # Transform the output of nm in a proper C declaration |
| 26175 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26176 | |
| 26177 | # Transform the output of nm in a C name address pair |
| 26178 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26179 | |
| 26180 | # This is the shared library runtime path variable. |
| 26181 | runpath_var=$runpath_var |
| 26182 | |
| 26183 | # This is the shared library path variable. |
| 26184 | shlibpath_var=$shlibpath_var |
| 26185 | |
| 26186 | # Is shlibpath searched before the hard-coded library search path? |
| 26187 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26188 | |
| 26189 | # How to hardcode a shared library path into an executable. |
| 26190 | hardcode_action=$hardcode_action_GCJ |
| 26191 | |
| 26192 | # Whether we should hardcode library paths into libraries. |
| 26193 | hardcode_into_libs=$hardcode_into_libs |
| 26194 | |
| 26195 | # Flag to hardcode \$libdir into a binary during linking. |
| 26196 | # This must work even if \$libdir does not exist. |
| 26197 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26198 | |
| 26199 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26200 | # a binary during linking. This must work even if \$libdir does |
| 26201 | # not exist. |
| 26202 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26203 | |
| 26204 | # Whether we need a single -rpath flag with a separated argument. |
| 26205 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26206 | |
| 26207 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26208 | # resulting binary. |
| 26209 | hardcode_direct=$hardcode_direct_GCJ |
| 26210 | |
| 26211 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26212 | # resulting binary. |
| 26213 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26214 | |
| 26215 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26216 | # the resulting binary. |
| 26217 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26218 | |
| 26219 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26220 | # and all subsequent libraries and executables linked against it. |
| 26221 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26222 | |
| 26223 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26224 | # restored at relink time. |
| 26225 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26226 | |
| 26227 | # Whether libtool must link a program against all its dependency libraries. |
| 26228 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26229 | |
| 26230 | # Compile-time system search path for libraries |
| 26231 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26232 | |
| 26233 | # Run-time system search path for libraries |
| 26234 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26235 | |
| 26236 | # Fix the shell variable \$srcfile for the compiler. |
| 26237 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26238 | |
| 26239 | # Set to yes if exported symbols are required. |
| 26240 | always_export_symbols=$always_export_symbols_GCJ |
| 26241 | |
| 26242 | # The commands to list exported symbols. |
| 26243 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26244 | |
| 26245 | # The commands to extract the exported symbol list from a shared archive. |
| 26246 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26247 | |
| 26248 | # Symbols that should not be listed in the preloaded symbols. |
| 26249 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26250 | |
| 26251 | # Symbols that must always be exported. |
| 26252 | include_expsyms=$lt_include_expsyms_GCJ |
| 26253 | |
| 26254 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26255 | |
| 26256 | __EOF__ |
| 26257 | |
| 26258 | |
| 26259 | else |
| 26260 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26261 | # `config.status --recheck' to rerun these tests and create the |
| 26262 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26263 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26264 | if test -f "$ltmain_in"; then |
| 26265 | test -f Makefile && make "$ltmain" |
| 26266 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26267 | fi |
| 26268 | |
| 26269 | |
| 26270 | ac_ext=c |
| 26271 | ac_cpp='$CPP $CPPFLAGS' |
| 26272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26275 | |
| 26276 | CC="$lt_save_CC" |
| 26277 | |
| 26278 | else |
| 26279 | tagname="" |
| 26280 | fi |
| 26281 | ;; |
| 26282 | |
| 26283 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26284 | ac_ext=c |
| 26285 | ac_cpp='$CPP $CPPFLAGS' |
| 26286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26289 | |
| 26290 | |
| 26291 | # Source file extension for RC test sources. |
| 26292 | ac_ext=rc |
| 26293 | |
| 26294 | # Object file extension for compiled RC test sources. |
| 26295 | objext=o |
| 26296 | objext_RC=$objext |
| 26297 | |
| 26298 | # Code to be used in simple compile tests |
| 26299 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26300 | |
| 26301 | # Code to be used in simple link tests |
| 26302 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26303 | |
| 26304 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26305 | |
| 26306 | # If no C compiler was specified, use CC. |
| 26307 | LTCC=${LTCC-"$CC"} |
| 26308 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26309 | # If no C compiler flags were specified, use CFLAGS. |
| 26310 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26311 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26312 | # Allow CC to be a program name with arguments. |
| 26313 | compiler=$CC |
| 26314 | |
| 26315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26316 | # save warnings/boilerplate of simple test code |
| 26317 | ac_outfile=conftest.$ac_objext |
| 26318 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26319 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26320 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26321 | $rm conftest* |
| 26322 | |
| 26323 | ac_outfile=conftest.$ac_objext |
| 26324 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26325 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26326 | _lt_linker_boilerplate=`cat conftest.err` |
| 26327 | $rm conftest* |
| 26328 | |
| 26329 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26330 | # Allow CC to be a program name with arguments. |
| 26331 | lt_save_CC="$CC" |
| 26332 | CC=${RC-"windres"} |
| 26333 | compiler=$CC |
| 26334 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26335 | for cc_temp in $compiler""; do |
| 26336 | case $cc_temp in |
| 26337 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26338 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26339 | \-*) ;; |
| 26340 | *) break;; |
| 26341 | esac |
| 26342 | done |
| 26343 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26344 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26345 | lt_cv_prog_compiler_c_o_RC=yes |
| 26346 | |
| 26347 | # The else clause should only fire when bootstrapping the |
| 26348 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26349 | # with your package, and you will get complaints that there are |
| 26350 | # no rules to generate ltmain.sh. |
| 26351 | if test -f "$ltmain"; then |
| 26352 | # See if we are running on zsh, and set the options which allow our commands through |
| 26353 | # without removal of \ escapes. |
| 26354 | if test -n "${ZSH_VERSION+set}" ; then |
| 26355 | setopt NO_GLOB_SUBST |
| 26356 | fi |
| 26357 | # Now quote all the things that may contain metacharacters while being |
| 26358 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26359 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26360 | 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] | 26361 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26362 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26363 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26364 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26365 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26366 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26367 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26368 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26369 | compiler_RC \ |
| 26370 | CC_RC \ |
| 26371 | LD_RC \ |
| 26372 | lt_prog_compiler_wl_RC \ |
| 26373 | lt_prog_compiler_pic_RC \ |
| 26374 | lt_prog_compiler_static_RC \ |
| 26375 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26376 | export_dynamic_flag_spec_RC \ |
| 26377 | thread_safe_flag_spec_RC \ |
| 26378 | whole_archive_flag_spec_RC \ |
| 26379 | enable_shared_with_static_runtimes_RC \ |
| 26380 | old_archive_cmds_RC \ |
| 26381 | old_archive_from_new_cmds_RC \ |
| 26382 | predep_objects_RC \ |
| 26383 | postdep_objects_RC \ |
| 26384 | predeps_RC \ |
| 26385 | postdeps_RC \ |
| 26386 | compiler_lib_search_path_RC \ |
| 26387 | archive_cmds_RC \ |
| 26388 | archive_expsym_cmds_RC \ |
| 26389 | postinstall_cmds_RC \ |
| 26390 | postuninstall_cmds_RC \ |
| 26391 | old_archive_from_expsyms_cmds_RC \ |
| 26392 | allow_undefined_flag_RC \ |
| 26393 | no_undefined_flag_RC \ |
| 26394 | export_symbols_cmds_RC \ |
| 26395 | hardcode_libdir_flag_spec_RC \ |
| 26396 | hardcode_libdir_flag_spec_ld_RC \ |
| 26397 | hardcode_libdir_separator_RC \ |
| 26398 | hardcode_automatic_RC \ |
| 26399 | module_cmds_RC \ |
| 26400 | module_expsym_cmds_RC \ |
| 26401 | lt_cv_prog_compiler_c_o_RC \ |
| 26402 | exclude_expsyms_RC \ |
| 26403 | include_expsyms_RC; do |
| 26404 | |
| 26405 | case $var in |
| 26406 | old_archive_cmds_RC | \ |
| 26407 | old_archive_from_new_cmds_RC | \ |
| 26408 | archive_cmds_RC | \ |
| 26409 | archive_expsym_cmds_RC | \ |
| 26410 | module_cmds_RC | \ |
| 26411 | module_expsym_cmds_RC | \ |
| 26412 | old_archive_from_expsyms_cmds_RC | \ |
| 26413 | export_symbols_cmds_RC | \ |
| 26414 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26415 | postinstall_cmds | postuninstall_cmds | \ |
| 26416 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26417 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26418 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26419 | 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] | 26420 | ;; |
| 26421 | *) |
| 26422 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26423 | ;; |
| 26424 | esac |
| 26425 | done |
| 26426 | |
| 26427 | case $lt_echo in |
| 26428 | *'\$0 --fallback-echo"') |
| 26429 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26430 | ;; |
| 26431 | esac |
| 26432 | |
| 26433 | cfgfile="$ofile" |
| 26434 | |
| 26435 | cat <<__EOF__ >> "$cfgfile" |
| 26436 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26437 | |
| 26438 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26439 | |
| 26440 | # Shell to use when invoking shell scripts. |
| 26441 | SHELL=$lt_SHELL |
| 26442 | |
| 26443 | # Whether or not to build shared libraries. |
| 26444 | build_libtool_libs=$enable_shared |
| 26445 | |
| 26446 | # Whether or not to build static libraries. |
| 26447 | build_old_libs=$enable_static |
| 26448 | |
| 26449 | # Whether or not to add -lc for building shared libraries. |
| 26450 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26451 | |
| 26452 | # Whether or not to disallow shared libs when runtime libs are static |
| 26453 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26454 | |
| 26455 | # Whether or not to optimize for fast installation. |
| 26456 | fast_install=$enable_fast_install |
| 26457 | |
| 26458 | # The host system. |
| 26459 | host_alias=$host_alias |
| 26460 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26461 | host_os=$host_os |
| 26462 | |
| 26463 | # The build system. |
| 26464 | build_alias=$build_alias |
| 26465 | build=$build |
| 26466 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26467 | |
| 26468 | # An echo program that does not interpret backslashes. |
| 26469 | echo=$lt_echo |
| 26470 | |
| 26471 | # The archiver. |
| 26472 | AR=$lt_AR |
| 26473 | AR_FLAGS=$lt_AR_FLAGS |
| 26474 | |
| 26475 | # A C compiler. |
| 26476 | LTCC=$lt_LTCC |
| 26477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26478 | # LTCC compiler flags. |
| 26479 | LTCFLAGS=$lt_LTCFLAGS |
| 26480 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26481 | # A language-specific compiler. |
| 26482 | CC=$lt_compiler_RC |
| 26483 | |
| 26484 | # Is the compiler the GNU C compiler? |
| 26485 | with_gcc=$GCC_RC |
| 26486 | |
| 26487 | # An ERE matcher. |
| 26488 | EGREP=$lt_EGREP |
| 26489 | |
| 26490 | # The linker used to build libraries. |
| 26491 | LD=$lt_LD_RC |
| 26492 | |
| 26493 | # Whether we need hard or soft links. |
| 26494 | LN_S=$lt_LN_S |
| 26495 | |
| 26496 | # A BSD-compatible nm program. |
| 26497 | NM=$lt_NM |
| 26498 | |
| 26499 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26500 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26501 | |
| 26502 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26503 | MAGIC_CMD=$MAGIC_CMD |
| 26504 | |
| 26505 | # Used on cygwin: DLL creation program. |
| 26506 | DLLTOOL="$DLLTOOL" |
| 26507 | |
| 26508 | # Used on cygwin: object dumper. |
| 26509 | OBJDUMP="$OBJDUMP" |
| 26510 | |
| 26511 | # Used on cygwin: assembler. |
| 26512 | AS="$AS" |
| 26513 | |
| 26514 | # The name of the directory that contains temporary libtool files. |
| 26515 | objdir=$objdir |
| 26516 | |
| 26517 | # How to create reloadable object files. |
| 26518 | reload_flag=$lt_reload_flag |
| 26519 | reload_cmds=$lt_reload_cmds |
| 26520 | |
| 26521 | # How to pass a linker flag through the compiler. |
| 26522 | wl=$lt_lt_prog_compiler_wl_RC |
| 26523 | |
| 26524 | # Object file suffix (normally "o"). |
| 26525 | objext="$ac_objext" |
| 26526 | |
| 26527 | # Old archive suffix (normally "a"). |
| 26528 | libext="$libext" |
| 26529 | |
| 26530 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26531 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26532 | |
| 26533 | # Executable file suffix (normally ""). |
| 26534 | exeext="$exeext" |
| 26535 | |
| 26536 | # Additional compiler flags for building library objects. |
| 26537 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26538 | pic_mode=$pic_mode |
| 26539 | |
| 26540 | # What is the maximum length of a command? |
| 26541 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26542 | |
| 26543 | # Does compiler simultaneously support -c and -o options? |
| 26544 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26546 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26547 | need_locks=$lt_need_locks |
| 26548 | |
| 26549 | # Do we need the lib prefix for modules? |
| 26550 | need_lib_prefix=$need_lib_prefix |
| 26551 | |
| 26552 | # Do we need a version for libraries? |
| 26553 | need_version=$need_version |
| 26554 | |
| 26555 | # Whether dlopen is supported. |
| 26556 | dlopen_support=$enable_dlopen |
| 26557 | |
| 26558 | # Whether dlopen of programs is supported. |
| 26559 | dlopen_self=$enable_dlopen_self |
| 26560 | |
| 26561 | # Whether dlopen of statically linked programs is supported. |
| 26562 | dlopen_self_static=$enable_dlopen_self_static |
| 26563 | |
| 26564 | # Compiler flag to prevent dynamic linking. |
| 26565 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26566 | |
| 26567 | # Compiler flag to turn off builtin functions. |
| 26568 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26569 | |
| 26570 | # Compiler flag to allow reflexive dlopens. |
| 26571 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26572 | |
| 26573 | # Compiler flag to generate shared objects directly from archives. |
| 26574 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26575 | |
| 26576 | # Compiler flag to generate thread-safe objects. |
| 26577 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26578 | |
| 26579 | # Library versioning type. |
| 26580 | version_type=$version_type |
| 26581 | |
| 26582 | # Format of library name prefix. |
| 26583 | libname_spec=$lt_libname_spec |
| 26584 | |
| 26585 | # List of archive names. First name is the real one, the rest are links. |
| 26586 | # The last name is the one that the linker finds with -lNAME. |
| 26587 | library_names_spec=$lt_library_names_spec |
| 26588 | |
| 26589 | # The coded name of the library, if different from the real name. |
| 26590 | soname_spec=$lt_soname_spec |
| 26591 | |
| 26592 | # Commands used to build and install an old-style archive. |
| 26593 | RANLIB=$lt_RANLIB |
| 26594 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26595 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26596 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26597 | |
| 26598 | # Create an old-style archive from a shared archive. |
| 26599 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26600 | |
| 26601 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26602 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26603 | |
| 26604 | # Commands used to build and install a shared archive. |
| 26605 | archive_cmds=$lt_archive_cmds_RC |
| 26606 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26607 | postinstall_cmds=$lt_postinstall_cmds |
| 26608 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26609 | |
| 26610 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26611 | module_cmds=$lt_module_cmds_RC |
| 26612 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26613 | |
| 26614 | # Commands to strip libraries. |
| 26615 | old_striplib=$lt_old_striplib |
| 26616 | striplib=$lt_striplib |
| 26617 | |
| 26618 | # Dependencies to place before the objects being linked to create a |
| 26619 | # shared library. |
| 26620 | predep_objects=$lt_predep_objects_RC |
| 26621 | |
| 26622 | # Dependencies to place after the objects being linked to create a |
| 26623 | # shared library. |
| 26624 | postdep_objects=$lt_postdep_objects_RC |
| 26625 | |
| 26626 | # Dependencies to place before the objects being linked to create a |
| 26627 | # shared library. |
| 26628 | predeps=$lt_predeps_RC |
| 26629 | |
| 26630 | # Dependencies to place after the objects being linked to create a |
| 26631 | # shared library. |
| 26632 | postdeps=$lt_postdeps_RC |
| 26633 | |
| 26634 | # The library search path used internally by the compiler when linking |
| 26635 | # a shared library. |
| 26636 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26637 | |
| 26638 | # Method to check whether dependent libraries are shared objects. |
| 26639 | deplibs_check_method=$lt_deplibs_check_method |
| 26640 | |
| 26641 | # Command to use when deplibs_check_method == file_magic. |
| 26642 | file_magic_cmd=$lt_file_magic_cmd |
| 26643 | |
| 26644 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26645 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26646 | |
| 26647 | # Flag that forces no undefined symbols. |
| 26648 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26649 | |
| 26650 | # Commands used to finish a libtool library installation in a directory. |
| 26651 | finish_cmds=$lt_finish_cmds |
| 26652 | |
| 26653 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26654 | finish_eval=$lt_finish_eval |
| 26655 | |
| 26656 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26657 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26658 | |
| 26659 | # Transform the output of nm in a proper C declaration |
| 26660 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26661 | |
| 26662 | # Transform the output of nm in a C name address pair |
| 26663 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26664 | |
| 26665 | # This is the shared library runtime path variable. |
| 26666 | runpath_var=$runpath_var |
| 26667 | |
| 26668 | # This is the shared library path variable. |
| 26669 | shlibpath_var=$shlibpath_var |
| 26670 | |
| 26671 | # Is shlibpath searched before the hard-coded library search path? |
| 26672 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26673 | |
| 26674 | # How to hardcode a shared library path into an executable. |
| 26675 | hardcode_action=$hardcode_action_RC |
| 26676 | |
| 26677 | # Whether we should hardcode library paths into libraries. |
| 26678 | hardcode_into_libs=$hardcode_into_libs |
| 26679 | |
| 26680 | # Flag to hardcode \$libdir into a binary during linking. |
| 26681 | # This must work even if \$libdir does not exist. |
| 26682 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26683 | |
| 26684 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26685 | # a binary during linking. This must work even if \$libdir does |
| 26686 | # not exist. |
| 26687 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26688 | |
| 26689 | # Whether we need a single -rpath flag with a separated argument. |
| 26690 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26691 | |
| 26692 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26693 | # resulting binary. |
| 26694 | hardcode_direct=$hardcode_direct_RC |
| 26695 | |
| 26696 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26697 | # resulting binary. |
| 26698 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26699 | |
| 26700 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26701 | # the resulting binary. |
| 26702 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26703 | |
| 26704 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26705 | # and all subsequent libraries and executables linked against it. |
| 26706 | hardcode_automatic=$hardcode_automatic_RC |
| 26707 | |
| 26708 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26709 | # restored at relink time. |
| 26710 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26711 | |
| 26712 | # Whether libtool must link a program against all its dependency libraries. |
| 26713 | link_all_deplibs=$link_all_deplibs_RC |
| 26714 | |
| 26715 | # Compile-time system search path for libraries |
| 26716 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26717 | |
| 26718 | # Run-time system search path for libraries |
| 26719 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26720 | |
| 26721 | # Fix the shell variable \$srcfile for the compiler. |
| 26722 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26723 | |
| 26724 | # Set to yes if exported symbols are required. |
| 26725 | always_export_symbols=$always_export_symbols_RC |
| 26726 | |
| 26727 | # The commands to list exported symbols. |
| 26728 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26729 | |
| 26730 | # The commands to extract the exported symbol list from a shared archive. |
| 26731 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26732 | |
| 26733 | # Symbols that should not be listed in the preloaded symbols. |
| 26734 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26735 | |
| 26736 | # Symbols that must always be exported. |
| 26737 | include_expsyms=$lt_include_expsyms_RC |
| 26738 | |
| 26739 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26740 | |
| 26741 | __EOF__ |
| 26742 | |
| 26743 | |
| 26744 | else |
| 26745 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26746 | # `config.status --recheck' to rerun these tests and create the |
| 26747 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26748 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26749 | if test -f "$ltmain_in"; then |
| 26750 | test -f Makefile && make "$ltmain" |
| 26751 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26752 | fi |
| 26753 | |
| 26754 | |
| 26755 | ac_ext=c |
| 26756 | ac_cpp='$CPP $CPPFLAGS' |
| 26757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26760 | |
| 26761 | CC="$lt_save_CC" |
| 26762 | |
| 26763 | ;; |
| 26764 | |
| 26765 | *) |
| 26766 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 26767 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 26768 | { (exit 1); exit 1; }; } |
| 26769 | ;; |
| 26770 | esac |
| 26771 | |
| 26772 | # Append the new tag name to the list of available tags. |
| 26773 | if test -n "$tagname" ; then |
| 26774 | available_tags="$available_tags $tagname" |
| 26775 | fi |
| 26776 | fi |
| 26777 | done |
| 26778 | IFS="$lt_save_ifs" |
| 26779 | |
| 26780 | # Now substitute the updated list of available tags. |
| 26781 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 26782 | mv "${ofile}T" "$ofile" |
| 26783 | chmod +x "$ofile" |
| 26784 | else |
| 26785 | rm -f "${ofile}T" |
| 26786 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 26787 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 26788 | { (exit 1); exit 1; }; } |
| 26789 | fi |
| 26790 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26791 | |
| 26792 | |
| 26793 | |
| 26794 | # This can be used to rebuild libtool when needed |
| 26795 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 26796 | |
| 26797 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26798 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26799 | |
| 26800 | # Prevent multiple expansion |
| 26801 | |
| 26802 | |
| 26803 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26804 | |
| 26805 | |
| 26806 | |
| 26807 | |
| 26808 | |
| 26809 | |
| 26810 | |
| 26811 | |
| 26812 | |
| 26813 | |
| 26814 | |
| 26815 | |
| 26816 | |
| 26817 | |
| 26818 | |
| 26819 | |
| 26820 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26821 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 26822 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 26823 | |
| 26824 | cat >>confdefs.h <<\_ACEOF |
| 26825 | #define CAN_DLOPEN_SELF 1 |
| 26826 | _ACEOF |
| 26827 | |
| 26828 | fi |
| 26829 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26830 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26831 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 26832 | LLVMGXX="llvm-g++${EXEEXT}" |
| 26833 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 26834 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26835 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26837 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 26838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26839 | else |
| 26840 | case $LLVMGCC in |
| 26841 | [\\/]* | ?:[\\/]*) |
| 26842 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 26843 | ;; |
| 26844 | *) |
| 26845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26846 | for as_dir in $PATH |
| 26847 | do |
| 26848 | IFS=$as_save_IFS |
| 26849 | test -z "$as_dir" && as_dir=. |
| 26850 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 26851 | 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] | 26852 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 26853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26854 | break 2 |
| 26855 | fi |
| 26856 | done |
| 26857 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26858 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26859 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26860 | ;; |
| 26861 | esac |
| 26862 | fi |
| 26863 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26864 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26865 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 26866 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26867 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26868 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26869 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26870 | fi |
| 26871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26872 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26873 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 26874 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26875 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26877 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 26878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26879 | else |
| 26880 | case $LLVMGXX in |
| 26881 | [\\/]* | ?:[\\/]*) |
| 26882 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 26883 | ;; |
| 26884 | *) |
| 26885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26886 | for as_dir in $PATH |
| 26887 | do |
| 26888 | IFS=$as_save_IFS |
| 26889 | test -z "$as_dir" && as_dir=. |
| 26890 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 26891 | 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] | 26892 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 26893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26894 | break 2 |
| 26895 | fi |
| 26896 | done |
| 26897 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26898 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26899 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26900 | ;; |
| 26901 | esac |
| 26902 | fi |
| 26903 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26904 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26905 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 26906 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26907 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26908 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26909 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26910 | fi |
| 26911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26912 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26913 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 26914 | if test -z "$LLVMGCC"; then |
| 26915 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 26916 | fi |
| 26917 | if test -z "$LLVMGXX"; then |
| 26918 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
| 26919 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26920 | LLVMGCC=$LLVMGCC |
| 26921 | |
| 26922 | LLVMGXX=$LLVMGXX |
| 26923 | |
| 26924 | fi |
| 26925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26926 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 26927 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26928 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26929 | ICC=no |
| 26930 | IXX=no |
| 26931 | case $CC in |
| 26932 | icc*|icpc*) |
| 26933 | ICC=yes |
| 26934 | IXX=yes |
| 26935 | ;; |
| 26936 | *) |
| 26937 | ;; |
| 26938 | esac |
| 26939 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 26940 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 26941 | then |
| 26942 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 26943 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 26944 | { (exit 1); exit 1; }; } |
| 26945 | fi |
| 26946 | |
| 26947 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 26948 | then |
| 26949 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 26950 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 26951 | { (exit 1); exit 1; }; } |
| 26952 | fi |
| 26953 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26954 | if test "$GCC" = "yes" |
| 26955 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame^] | 26956 | cat >conftest.$ac_ext <<_ACEOF |
| 26957 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 26958 | #error Unsupported GCC version |
| 26959 | #endif |
| 26960 | |
| 26961 | _ACEOF |
| 26962 | rm -f conftest.$ac_objext |
| 26963 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 26970 | ac_status=$? |
| 26971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26972 | rm -f conftest.er1 |
| 26973 | cat conftest.err >&5 |
| 26974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26975 | (exit $ac_status); } && |
| 26976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26977 | { (case "(($ac_try" in |
| 26978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26979 | *) ac_try_echo=$ac_try;; |
| 26980 | esac |
| 26981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26982 | (eval "$ac_try") 2>&5 |
| 26983 | ac_status=$? |
| 26984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26985 | (exit $ac_status); }; } && |
| 26986 | { ac_try='test -s conftest.$ac_objext' |
| 26987 | { (case "(($ac_try" in |
| 26988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26989 | *) ac_try_echo=$ac_try;; |
| 26990 | esac |
| 26991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26992 | (eval "$ac_try") 2>&5 |
| 26993 | ac_status=$? |
| 26994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26995 | (exit $ac_status); }; }; then |
| 26996 | : |
| 26997 | else |
| 26998 | echo "$as_me: failed program was:" >&5 |
| 26999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27000 | |
| 27001 | { { 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] | 27002 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 27003 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame^] | 27004 | fi |
| 27005 | |
| 27006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27007 | fi |
| 27008 | |
| 27009 | if test -z "$llvm_cv_gnu_make_command" |
| 27010 | then |
| 27011 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 27012 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 27013 | { (exit 1); exit 1; }; } |
| 27014 | fi |
| 27015 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27016 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 27017 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27018 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27019 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27021 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 27022 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27023 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 27024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27025 | else |
| 27026 | ac_check_lib_save_LIBS=$LIBS |
| 27027 | LIBS="-lelf $LIBS" |
| 27028 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27029 | /* confdefs.h. */ |
| 27030 | _ACEOF |
| 27031 | cat confdefs.h >>conftest.$ac_ext |
| 27032 | cat >>conftest.$ac_ext <<_ACEOF |
| 27033 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27035 | /* Override any GCC internal prototype to avoid an error. |
| 27036 | Use char because int might match the return type of a GCC |
| 27037 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27038 | #ifdef __cplusplus |
| 27039 | extern "C" |
| 27040 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27041 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27042 | int |
| 27043 | main () |
| 27044 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27045 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27046 | ; |
| 27047 | return 0; |
| 27048 | } |
| 27049 | _ACEOF |
| 27050 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27051 | if { (ac_try="$ac_link" |
| 27052 | case "(($ac_try" in |
| 27053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27054 | *) ac_try_echo=$ac_try;; |
| 27055 | esac |
| 27056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27057 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27058 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27060 | rm -f conftest.er1 |
| 27061 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27063 | (exit $ac_status); } && |
| 27064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27065 | { (case "(($ac_try" in |
| 27066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27067 | *) ac_try_echo=$ac_try;; |
| 27068 | esac |
| 27069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27070 | (eval "$ac_try") 2>&5 |
| 27071 | ac_status=$? |
| 27072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27073 | (exit $ac_status); }; } && |
| 27074 | { ac_try='test -s conftest$ac_exeext' |
| 27075 | { (case "(($ac_try" in |
| 27076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27077 | *) ac_try_echo=$ac_try;; |
| 27078 | esac |
| 27079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27080 | (eval "$ac_try") 2>&5 |
| 27081 | ac_status=$? |
| 27082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27083 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27084 | ac_cv_lib_elf_elf_begin=yes |
| 27085 | else |
| 27086 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27088 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27089 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27090 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27091 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27092 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27093 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27094 | LIBS=$ac_check_lib_save_LIBS |
| 27095 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27096 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 27097 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27098 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 27099 | cat >>confdefs.h <<_ACEOF |
| 27100 | #define HAVE_LIBELF 1 |
| 27101 | _ACEOF |
| 27102 | |
| 27103 | LIBS="-lelf $LIBS" |
| 27104 | |
| 27105 | fi |
| 27106 | |
| 27107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27108 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27109 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27110 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27112 | else |
| 27113 | ac_check_lib_save_LIBS=$LIBS |
| 27114 | LIBS="-lm $LIBS" |
| 27115 | cat >conftest.$ac_ext <<_ACEOF |
| 27116 | /* confdefs.h. */ |
| 27117 | _ACEOF |
| 27118 | cat confdefs.h >>conftest.$ac_ext |
| 27119 | cat >>conftest.$ac_ext <<_ACEOF |
| 27120 | /* end confdefs.h. */ |
| 27121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27122 | /* Override any GCC internal prototype to avoid an error. |
| 27123 | Use char because int might match the return type of a GCC |
| 27124 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27125 | #ifdef __cplusplus |
| 27126 | extern "C" |
| 27127 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27128 | char sin (); |
| 27129 | int |
| 27130 | main () |
| 27131 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27132 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27133 | ; |
| 27134 | return 0; |
| 27135 | } |
| 27136 | _ACEOF |
| 27137 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27138 | if { (ac_try="$ac_link" |
| 27139 | case "(($ac_try" in |
| 27140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27141 | *) ac_try_echo=$ac_try;; |
| 27142 | esac |
| 27143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27144 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27145 | ac_status=$? |
| 27146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27147 | rm -f conftest.er1 |
| 27148 | cat conftest.err >&5 |
| 27149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27150 | (exit $ac_status); } && |
| 27151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27152 | { (case "(($ac_try" in |
| 27153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27154 | *) ac_try_echo=$ac_try;; |
| 27155 | esac |
| 27156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27157 | (eval "$ac_try") 2>&5 |
| 27158 | ac_status=$? |
| 27159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27160 | (exit $ac_status); }; } && |
| 27161 | { ac_try='test -s conftest$ac_exeext' |
| 27162 | { (case "(($ac_try" in |
| 27163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27164 | *) ac_try_echo=$ac_try;; |
| 27165 | esac |
| 27166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27167 | (eval "$ac_try") 2>&5 |
| 27168 | ac_status=$? |
| 27169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27170 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27171 | ac_cv_lib_m_sin=yes |
| 27172 | else |
| 27173 | echo "$as_me: failed program was:" >&5 |
| 27174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27176 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27177 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27178 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27179 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27180 | conftest$ac_exeext conftest.$ac_ext |
| 27181 | LIBS=$ac_check_lib_save_LIBS |
| 27182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27183 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27184 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27185 | if test $ac_cv_lib_m_sin = yes; then |
| 27186 | cat >>confdefs.h <<_ACEOF |
| 27187 | #define HAVE_LIBM 1 |
| 27188 | _ACEOF |
| 27189 | |
| 27190 | LIBS="-lm $LIBS" |
| 27191 | |
| 27192 | fi |
| 27193 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27194 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27195 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27196 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27197 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27198 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27200 | else |
| 27201 | ac_check_lib_save_LIBS=$LIBS |
| 27202 | LIBS="-limagehlp $LIBS" |
| 27203 | cat >conftest.$ac_ext <<_ACEOF |
| 27204 | /* confdefs.h. */ |
| 27205 | _ACEOF |
| 27206 | cat confdefs.h >>conftest.$ac_ext |
| 27207 | cat >>conftest.$ac_ext <<_ACEOF |
| 27208 | /* end confdefs.h. */ |
| 27209 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27210 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27211 | int |
| 27212 | main () |
| 27213 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27214 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27215 | ; |
| 27216 | return 0; |
| 27217 | } |
| 27218 | _ACEOF |
| 27219 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27220 | if { (ac_try="$ac_link" |
| 27221 | case "(($ac_try" in |
| 27222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27223 | *) ac_try_echo=$ac_try;; |
| 27224 | esac |
| 27225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27226 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27227 | ac_status=$? |
| 27228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27229 | rm -f conftest.er1 |
| 27230 | cat conftest.err >&5 |
| 27231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27232 | (exit $ac_status); } && |
| 27233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27234 | { (case "(($ac_try" in |
| 27235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27236 | *) ac_try_echo=$ac_try;; |
| 27237 | esac |
| 27238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27239 | (eval "$ac_try") 2>&5 |
| 27240 | ac_status=$? |
| 27241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27242 | (exit $ac_status); }; } && |
| 27243 | { ac_try='test -s conftest$ac_exeext' |
| 27244 | { (case "(($ac_try" in |
| 27245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27246 | *) ac_try_echo=$ac_try;; |
| 27247 | esac |
| 27248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27249 | (eval "$ac_try") 2>&5 |
| 27250 | ac_status=$? |
| 27251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27252 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27253 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27254 | else |
| 27255 | echo "$as_me: failed program was:" >&5 |
| 27256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27258 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27259 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27260 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27261 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27262 | conftest$ac_exeext conftest.$ac_ext |
| 27263 | LIBS=$ac_check_lib_save_LIBS |
| 27264 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27265 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27266 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27267 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27268 | cat >>confdefs.h <<_ACEOF |
| 27269 | #define HAVE_LIBIMAGEHLP 1 |
| 27270 | _ACEOF |
| 27271 | |
| 27272 | LIBS="-limagehlp $LIBS" |
| 27273 | |
| 27274 | fi |
| 27275 | |
| 27276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27277 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27278 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27279 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27281 | else |
| 27282 | ac_check_lib_save_LIBS=$LIBS |
| 27283 | LIBS="-lpsapi $LIBS" |
| 27284 | cat >conftest.$ac_ext <<_ACEOF |
| 27285 | /* confdefs.h. */ |
| 27286 | _ACEOF |
| 27287 | cat confdefs.h >>conftest.$ac_ext |
| 27288 | cat >>conftest.$ac_ext <<_ACEOF |
| 27289 | /* end confdefs.h. */ |
| 27290 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27291 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27292 | int |
| 27293 | main () |
| 27294 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27295 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27296 | ; |
| 27297 | return 0; |
| 27298 | } |
| 27299 | _ACEOF |
| 27300 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27301 | if { (ac_try="$ac_link" |
| 27302 | case "(($ac_try" in |
| 27303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27304 | *) ac_try_echo=$ac_try;; |
| 27305 | esac |
| 27306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27307 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27308 | ac_status=$? |
| 27309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27310 | rm -f conftest.er1 |
| 27311 | cat conftest.err >&5 |
| 27312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27313 | (exit $ac_status); } && |
| 27314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27315 | { (case "(($ac_try" in |
| 27316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27317 | *) ac_try_echo=$ac_try;; |
| 27318 | esac |
| 27319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27320 | (eval "$ac_try") 2>&5 |
| 27321 | ac_status=$? |
| 27322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27323 | (exit $ac_status); }; } && |
| 27324 | { ac_try='test -s conftest$ac_exeext' |
| 27325 | { (case "(($ac_try" in |
| 27326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27327 | *) ac_try_echo=$ac_try;; |
| 27328 | esac |
| 27329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27330 | (eval "$ac_try") 2>&5 |
| 27331 | ac_status=$? |
| 27332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27333 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27334 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27335 | else |
| 27336 | echo "$as_me: failed program was:" >&5 |
| 27337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27339 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27340 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27341 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27342 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27343 | conftest$ac_exeext conftest.$ac_ext |
| 27344 | LIBS=$ac_check_lib_save_LIBS |
| 27345 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27346 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27347 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27348 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27349 | cat >>confdefs.h <<_ACEOF |
| 27350 | #define HAVE_LIBPSAPI 1 |
| 27351 | _ACEOF |
| 27352 | |
| 27353 | LIBS="-lpsapi $LIBS" |
| 27354 | |
| 27355 | fi |
| 27356 | |
| 27357 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27359 | { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 27360 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; } |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27361 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27363 | else |
| 27364 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27365 | cat >conftest.$ac_ext <<_ACEOF |
| 27366 | /* confdefs.h. */ |
| 27367 | _ACEOF |
| 27368 | cat confdefs.h >>conftest.$ac_ext |
| 27369 | cat >>conftest.$ac_ext <<_ACEOF |
| 27370 | /* end confdefs.h. */ |
| 27371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27372 | /* Override any GCC internal prototype to avoid an error. |
| 27373 | Use char because int might match the return type of a GCC |
| 27374 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27375 | #ifdef __cplusplus |
| 27376 | extern "C" |
| 27377 | #endif |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27378 | char lt_dlopen (); |
| 27379 | int |
| 27380 | main () |
| 27381 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27382 | return lt_dlopen (); |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27383 | ; |
| 27384 | return 0; |
| 27385 | } |
| 27386 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27387 | for ac_lib in '' ltdl; do |
| 27388 | if test -z "$ac_lib"; then |
| 27389 | ac_res="none required" |
| 27390 | else |
| 27391 | ac_res=-l$ac_lib |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27392 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27393 | fi |
| 27394 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27395 | if { (ac_try="$ac_link" |
| 27396 | case "(($ac_try" in |
| 27397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27398 | *) ac_try_echo=$ac_try;; |
| 27399 | esac |
| 27400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27401 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27402 | ac_status=$? |
| 27403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27404 | rm -f conftest.er1 |
| 27405 | cat conftest.err >&5 |
| 27406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27407 | (exit $ac_status); } && |
| 27408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27409 | { (case "(($ac_try" in |
| 27410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27411 | *) ac_try_echo=$ac_try;; |
| 27412 | esac |
| 27413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27414 | (eval "$ac_try") 2>&5 |
| 27415 | ac_status=$? |
| 27416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27417 | (exit $ac_status); }; } && |
| 27418 | { ac_try='test -s conftest$ac_exeext' |
| 27419 | { (case "(($ac_try" in |
| 27420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27421 | *) ac_try_echo=$ac_try;; |
| 27422 | esac |
| 27423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27424 | (eval "$ac_try") 2>&5 |
| 27425 | ac_status=$? |
| 27426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27427 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27428 | ac_cv_search_lt_dlopen=$ac_res |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27429 | else |
| 27430 | echo "$as_me: failed program was:" >&5 |
| 27431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27432 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27433 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27435 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27436 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27437 | conftest$ac_exeext |
| 27438 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27439 | break |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27440 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27441 | done |
| 27442 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27443 | : |
| 27444 | else |
| 27445 | ac_cv_search_lt_dlopen=no |
| 27446 | fi |
| 27447 | rm conftest.$ac_ext |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27448 | LIBS=$ac_func_search_save_LIBS |
| 27449 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27450 | { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 27451 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; } |
| 27452 | ac_res=$ac_cv_search_lt_dlopen |
| 27453 | if test "$ac_res" != no; then |
| 27454 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27455 | |
| 27456 | cat >>confdefs.h <<\_ACEOF |
| 27457 | #define HAVE_LT_DLOPEN 1 |
| 27458 | _ACEOF |
| 27459 | |
| 27460 | else |
| 27461 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 27462 | not be available" >&5 |
| 27463 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 27464 | not be available" >&2;} |
| 27465 | fi |
| 27466 | |
| 27467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27468 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27469 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27470 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27472 | else |
| 27473 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27474 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27475 | /* confdefs.h. */ |
| 27476 | _ACEOF |
| 27477 | cat confdefs.h >>conftest.$ac_ext |
| 27478 | cat >>conftest.$ac_ext <<_ACEOF |
| 27479 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27481 | /* Override any GCC internal prototype to avoid an error. |
| 27482 | Use char because int might match the return type of a GCC |
| 27483 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27484 | #ifdef __cplusplus |
| 27485 | extern "C" |
| 27486 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27487 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27488 | int |
| 27489 | main () |
| 27490 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27491 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27492 | ; |
| 27493 | return 0; |
| 27494 | } |
| 27495 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27496 | for ac_lib in '' dl; do |
| 27497 | if test -z "$ac_lib"; then |
| 27498 | ac_res="none required" |
| 27499 | else |
| 27500 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27501 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27502 | fi |
| 27503 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27504 | if { (ac_try="$ac_link" |
| 27505 | case "(($ac_try" in |
| 27506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27507 | *) ac_try_echo=$ac_try;; |
| 27508 | esac |
| 27509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27510 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27511 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27513 | rm -f conftest.er1 |
| 27514 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27516 | (exit $ac_status); } && |
| 27517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27518 | { (case "(($ac_try" in |
| 27519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27520 | *) ac_try_echo=$ac_try;; |
| 27521 | esac |
| 27522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27523 | (eval "$ac_try") 2>&5 |
| 27524 | ac_status=$? |
| 27525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27526 | (exit $ac_status); }; } && |
| 27527 | { ac_try='test -s conftest$ac_exeext' |
| 27528 | { (case "(($ac_try" in |
| 27529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27530 | *) ac_try_echo=$ac_try;; |
| 27531 | esac |
| 27532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27533 | (eval "$ac_try") 2>&5 |
| 27534 | ac_status=$? |
| 27535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27536 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27537 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27538 | else |
| 27539 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27542 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27544 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27545 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27546 | conftest$ac_exeext |
| 27547 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27548 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27549 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27550 | done |
| 27551 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27552 | : |
| 27553 | else |
| 27554 | ac_cv_search_dlopen=no |
| 27555 | fi |
| 27556 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27557 | LIBS=$ac_func_search_save_LIBS |
| 27558 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27559 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27560 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27561 | ac_res=$ac_cv_search_dlopen |
| 27562 | if test "$ac_res" != no; then |
| 27563 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27564 | |
| 27565 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27566 | #define HAVE_DLOPEN 1 |
| 27567 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27568 | |
| 27569 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27570 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27571 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27572 | fi |
| 27573 | |
| 27574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27575 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27576 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27577 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27579 | else |
| 27580 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27581 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27582 | /* confdefs.h. */ |
| 27583 | _ACEOF |
| 27584 | cat confdefs.h >>conftest.$ac_ext |
| 27585 | cat >>conftest.$ac_ext <<_ACEOF |
| 27586 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27587 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27588 | /* Override any GCC internal prototype to avoid an error. |
| 27589 | Use char because int might match the return type of a GCC |
| 27590 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27591 | #ifdef __cplusplus |
| 27592 | extern "C" |
| 27593 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27594 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27595 | int |
| 27596 | main () |
| 27597 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27598 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27599 | ; |
| 27600 | return 0; |
| 27601 | } |
| 27602 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27603 | for ac_lib in '' malloc; do |
| 27604 | if test -z "$ac_lib"; then |
| 27605 | ac_res="none required" |
| 27606 | else |
| 27607 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27608 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27609 | fi |
| 27610 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27611 | if { (ac_try="$ac_link" |
| 27612 | case "(($ac_try" in |
| 27613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27614 | *) ac_try_echo=$ac_try;; |
| 27615 | esac |
| 27616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27617 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27618 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27620 | rm -f conftest.er1 |
| 27621 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27623 | (exit $ac_status); } && |
| 27624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27625 | { (case "(($ac_try" in |
| 27626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27627 | *) ac_try_echo=$ac_try;; |
| 27628 | esac |
| 27629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27630 | (eval "$ac_try") 2>&5 |
| 27631 | ac_status=$? |
| 27632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27633 | (exit $ac_status); }; } && |
| 27634 | { ac_try='test -s conftest$ac_exeext' |
| 27635 | { (case "(($ac_try" in |
| 27636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27637 | *) ac_try_echo=$ac_try;; |
| 27638 | esac |
| 27639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27640 | (eval "$ac_try") 2>&5 |
| 27641 | ac_status=$? |
| 27642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27643 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27644 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27645 | else |
| 27646 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27649 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27650 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27651 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27652 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27653 | conftest$ac_exeext |
| 27654 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27655 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27656 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27657 | done |
| 27658 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27659 | : |
| 27660 | else |
| 27661 | ac_cv_search_mallinfo=no |
| 27662 | fi |
| 27663 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27664 | LIBS=$ac_func_search_save_LIBS |
| 27665 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27666 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27667 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27668 | ac_res=$ac_cv_search_mallinfo |
| 27669 | if test "$ac_res" != no; then |
| 27670 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27671 | |
| 27672 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27673 | #define HAVE_MALLINFO 1 |
| 27674 | _ACEOF |
| 27675 | |
| 27676 | fi |
| 27677 | |
| 27678 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27679 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27681 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27682 | 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] | 27683 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27685 | else |
| 27686 | ac_check_lib_save_LIBS=$LIBS |
| 27687 | LIBS="-lpthread $LIBS" |
| 27688 | cat >conftest.$ac_ext <<_ACEOF |
| 27689 | /* confdefs.h. */ |
| 27690 | _ACEOF |
| 27691 | cat confdefs.h >>conftest.$ac_ext |
| 27692 | cat >>conftest.$ac_ext <<_ACEOF |
| 27693 | /* end confdefs.h. */ |
| 27694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27695 | /* Override any GCC internal prototype to avoid an error. |
| 27696 | Use char because int might match the return type of a GCC |
| 27697 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27698 | #ifdef __cplusplus |
| 27699 | extern "C" |
| 27700 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27701 | char pthread_mutex_init (); |
| 27702 | int |
| 27703 | main () |
| 27704 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27705 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27706 | ; |
| 27707 | return 0; |
| 27708 | } |
| 27709 | _ACEOF |
| 27710 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27711 | if { (ac_try="$ac_link" |
| 27712 | case "(($ac_try" in |
| 27713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27714 | *) ac_try_echo=$ac_try;; |
| 27715 | esac |
| 27716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27717 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27718 | ac_status=$? |
| 27719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27720 | rm -f conftest.er1 |
| 27721 | cat conftest.err >&5 |
| 27722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27723 | (exit $ac_status); } && |
| 27724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27725 | { (case "(($ac_try" in |
| 27726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27727 | *) ac_try_echo=$ac_try;; |
| 27728 | esac |
| 27729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27730 | (eval "$ac_try") 2>&5 |
| 27731 | ac_status=$? |
| 27732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27733 | (exit $ac_status); }; } && |
| 27734 | { ac_try='test -s conftest$ac_exeext' |
| 27735 | { (case "(($ac_try" in |
| 27736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27737 | *) ac_try_echo=$ac_try;; |
| 27738 | esac |
| 27739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27740 | (eval "$ac_try") 2>&5 |
| 27741 | ac_status=$? |
| 27742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27743 | (exit $ac_status); }; }; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27744 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27745 | else |
| 27746 | echo "$as_me: failed program was:" >&5 |
| 27747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27748 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27749 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27750 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27751 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27752 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27753 | conftest$ac_exeext conftest.$ac_ext |
| 27754 | LIBS=$ac_check_lib_save_LIBS |
| 27755 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27756 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27757 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27758 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27759 | cat >>confdefs.h <<_ACEOF |
| 27760 | #define HAVE_LIBPTHREAD 1 |
| 27761 | _ACEOF |
| 27762 | |
| 27763 | LIBS="-lpthread $LIBS" |
| 27764 | |
| 27765 | fi |
| 27766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27767 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27768 | 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] | 27769 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27771 | else |
| 27772 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27773 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27774 | /* confdefs.h. */ |
| 27775 | _ACEOF |
| 27776 | cat confdefs.h >>conftest.$ac_ext |
| 27777 | cat >>conftest.$ac_ext <<_ACEOF |
| 27778 | /* end confdefs.h. */ |
| 27779 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27780 | /* Override any GCC internal prototype to avoid an error. |
| 27781 | Use char because int might match the return type of a GCC |
| 27782 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27783 | #ifdef __cplusplus |
| 27784 | extern "C" |
| 27785 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27786 | char pthread_mutex_lock (); |
| 27787 | int |
| 27788 | main () |
| 27789 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27790 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27791 | ; |
| 27792 | return 0; |
| 27793 | } |
| 27794 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27795 | for ac_lib in '' pthread; do |
| 27796 | if test -z "$ac_lib"; then |
| 27797 | ac_res="none required" |
| 27798 | else |
| 27799 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27800 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27801 | fi |
| 27802 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27803 | if { (ac_try="$ac_link" |
| 27804 | case "(($ac_try" in |
| 27805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27806 | *) ac_try_echo=$ac_try;; |
| 27807 | esac |
| 27808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27809 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27810 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27812 | rm -f conftest.er1 |
| 27813 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27815 | (exit $ac_status); } && |
| 27816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27817 | { (case "(($ac_try" in |
| 27818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27819 | *) ac_try_echo=$ac_try;; |
| 27820 | esac |
| 27821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27822 | (eval "$ac_try") 2>&5 |
| 27823 | ac_status=$? |
| 27824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27825 | (exit $ac_status); }; } && |
| 27826 | { ac_try='test -s conftest$ac_exeext' |
| 27827 | { (case "(($ac_try" in |
| 27828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27829 | *) ac_try_echo=$ac_try;; |
| 27830 | esac |
| 27831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27832 | (eval "$ac_try") 2>&5 |
| 27833 | ac_status=$? |
| 27834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27835 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27836 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27837 | else |
| 27838 | echo "$as_me: failed program was:" >&5 |
| 27839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27841 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27842 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27843 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27844 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27845 | conftest$ac_exeext |
| 27846 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27847 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27848 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27849 | done |
| 27850 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27851 | : |
| 27852 | else |
| 27853 | ac_cv_search_pthread_mutex_lock=no |
| 27854 | fi |
| 27855 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27856 | LIBS=$ac_func_search_save_LIBS |
| 27857 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27858 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 27859 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 27860 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 27861 | if test "$ac_res" != no; then |
| 27862 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27863 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 27864 | cat >>confdefs.h <<\_ACEOF |
| 27865 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 27866 | _ACEOF |
| 27867 | |
| 27868 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27869 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27870 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 27871 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27872 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27873 | # Check whether --with-udis86 was given. |
| 27874 | if test "${with_udis86+set}" = set; then |
| 27875 | withval=$with_udis86; |
| 27876 | USE_UDIS86=1 |
| 27877 | |
| 27878 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 27879 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27880 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 27881 | esac |
| 27882 | |
| 27883 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 27884 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 27885 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 27886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27887 | else |
| 27888 | ac_check_lib_save_LIBS=$LIBS |
| 27889 | LIBS="-ludis86 $LIBS" |
| 27890 | cat >conftest.$ac_ext <<_ACEOF |
| 27891 | /* confdefs.h. */ |
| 27892 | _ACEOF |
| 27893 | cat confdefs.h >>conftest.$ac_ext |
| 27894 | cat >>conftest.$ac_ext <<_ACEOF |
| 27895 | /* end confdefs.h. */ |
| 27896 | |
| 27897 | /* Override any GCC internal prototype to avoid an error. |
| 27898 | Use char because int might match the return type of a GCC |
| 27899 | builtin and then its argument prototype would still apply. */ |
| 27900 | #ifdef __cplusplus |
| 27901 | extern "C" |
| 27902 | #endif |
| 27903 | char ud_init (); |
| 27904 | int |
| 27905 | main () |
| 27906 | { |
| 27907 | return ud_init (); |
| 27908 | ; |
| 27909 | return 0; |
| 27910 | } |
| 27911 | _ACEOF |
| 27912 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27913 | if { (ac_try="$ac_link" |
| 27914 | case "(($ac_try" in |
| 27915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27916 | *) ac_try_echo=$ac_try;; |
| 27917 | esac |
| 27918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27919 | (eval "$ac_link") 2>conftest.er1 |
| 27920 | ac_status=$? |
| 27921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27922 | rm -f conftest.er1 |
| 27923 | cat conftest.err >&5 |
| 27924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27925 | (exit $ac_status); } && |
| 27926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27927 | { (case "(($ac_try" in |
| 27928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27929 | *) ac_try_echo=$ac_try;; |
| 27930 | esac |
| 27931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27932 | (eval "$ac_try") 2>&5 |
| 27933 | ac_status=$? |
| 27934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27935 | (exit $ac_status); }; } && |
| 27936 | { ac_try='test -s conftest$ac_exeext' |
| 27937 | { (case "(($ac_try" in |
| 27938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27939 | *) ac_try_echo=$ac_try;; |
| 27940 | esac |
| 27941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27942 | (eval "$ac_try") 2>&5 |
| 27943 | ac_status=$? |
| 27944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27945 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27946 | ac_cv_lib_udis86_ud_init=yes |
| 27947 | else |
| 27948 | echo "$as_me: failed program was:" >&5 |
| 27949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27950 | |
| 27951 | ac_cv_lib_udis86_ud_init=no |
| 27952 | fi |
| 27953 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27954 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27955 | conftest$ac_exeext conftest.$ac_ext |
| 27956 | LIBS=$ac_check_lib_save_LIBS |
| 27957 | fi |
| 27958 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 27959 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 27960 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 27961 | cat >>confdefs.h <<_ACEOF |
| 27962 | #define HAVE_LIBUDIS86 1 |
| 27963 | _ACEOF |
| 27964 | |
| 27965 | LIBS="-ludis86 $LIBS" |
| 27966 | |
| 27967 | else |
| 27968 | |
| 27969 | echo "Error! You need to have libudis86 around." |
| 27970 | exit -1 |
| 27971 | |
| 27972 | fi |
| 27973 | |
| 27974 | |
| 27975 | else |
| 27976 | USE_UDIS86=0 |
| 27977 | |
| 27978 | fi |
| 27979 | |
| 27980 | |
| 27981 | cat >>confdefs.h <<_ACEOF |
| 27982 | #define USE_UDIS86 $USE_UDIS86 |
| 27983 | _ACEOF |
| 27984 | |
| 27985 | |
| 27986 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27987 | |
| 27988 | |
| 27989 | |
| 27990 | |
| 27991 | |
| 27992 | ac_header_dirent=no |
| 27993 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 27994 | 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] | 27995 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 27996 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 27997 | 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] | 27998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27999 | else |
| 28000 | cat >conftest.$ac_ext <<_ACEOF |
| 28001 | /* confdefs.h. */ |
| 28002 | _ACEOF |
| 28003 | cat confdefs.h >>conftest.$ac_ext |
| 28004 | cat >>conftest.$ac_ext <<_ACEOF |
| 28005 | /* end confdefs.h. */ |
| 28006 | #include <sys/types.h> |
| 28007 | #include <$ac_hdr> |
| 28008 | |
| 28009 | int |
| 28010 | main () |
| 28011 | { |
| 28012 | if ((DIR *) 0) |
| 28013 | return 0; |
| 28014 | ; |
| 28015 | return 0; |
| 28016 | } |
| 28017 | _ACEOF |
| 28018 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28019 | if { (ac_try="$ac_compile" |
| 28020 | case "(($ac_try" in |
| 28021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28022 | *) ac_try_echo=$ac_try;; |
| 28023 | esac |
| 28024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28025 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28026 | ac_status=$? |
| 28027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28028 | rm -f conftest.er1 |
| 28029 | cat conftest.err >&5 |
| 28030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28031 | (exit $ac_status); } && |
| 28032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28033 | { (case "(($ac_try" in |
| 28034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28035 | *) ac_try_echo=$ac_try;; |
| 28036 | esac |
| 28037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28038 | (eval "$ac_try") 2>&5 |
| 28039 | ac_status=$? |
| 28040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28041 | (exit $ac_status); }; } && |
| 28042 | { ac_try='test -s conftest.$ac_objext' |
| 28043 | { (case "(($ac_try" in |
| 28044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28045 | *) ac_try_echo=$ac_try;; |
| 28046 | esac |
| 28047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28048 | (eval "$ac_try") 2>&5 |
| 28049 | ac_status=$? |
| 28050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28051 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28052 | eval "$as_ac_Header=yes" |
| 28053 | else |
| 28054 | echo "$as_me: failed program was:" >&5 |
| 28055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28057 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28058 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28059 | |
| 28060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28061 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28062 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28063 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28064 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28065 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28066 | cat >>confdefs.h <<_ACEOF |
| 28067 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 28068 | _ACEOF |
| 28069 | |
| 28070 | ac_header_dirent=$ac_hdr; break |
| 28071 | fi |
| 28072 | |
| 28073 | done |
| 28074 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 28075 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28076 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28077 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28078 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28080 | else |
| 28081 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28082 | cat >conftest.$ac_ext <<_ACEOF |
| 28083 | /* confdefs.h. */ |
| 28084 | _ACEOF |
| 28085 | cat confdefs.h >>conftest.$ac_ext |
| 28086 | cat >>conftest.$ac_ext <<_ACEOF |
| 28087 | /* end confdefs.h. */ |
| 28088 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28089 | /* Override any GCC internal prototype to avoid an error. |
| 28090 | Use char because int might match the return type of a GCC |
| 28091 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28092 | #ifdef __cplusplus |
| 28093 | extern "C" |
| 28094 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28095 | char opendir (); |
| 28096 | int |
| 28097 | main () |
| 28098 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28099 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28100 | ; |
| 28101 | return 0; |
| 28102 | } |
| 28103 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28104 | for ac_lib in '' dir; do |
| 28105 | if test -z "$ac_lib"; then |
| 28106 | ac_res="none required" |
| 28107 | else |
| 28108 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28109 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28110 | fi |
| 28111 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28112 | if { (ac_try="$ac_link" |
| 28113 | case "(($ac_try" in |
| 28114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28115 | *) ac_try_echo=$ac_try;; |
| 28116 | esac |
| 28117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28118 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28119 | ac_status=$? |
| 28120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28121 | rm -f conftest.er1 |
| 28122 | cat conftest.err >&5 |
| 28123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28124 | (exit $ac_status); } && |
| 28125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28126 | { (case "(($ac_try" in |
| 28127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28128 | *) ac_try_echo=$ac_try;; |
| 28129 | esac |
| 28130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28131 | (eval "$ac_try") 2>&5 |
| 28132 | ac_status=$? |
| 28133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28134 | (exit $ac_status); }; } && |
| 28135 | { ac_try='test -s conftest$ac_exeext' |
| 28136 | { (case "(($ac_try" in |
| 28137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28138 | *) ac_try_echo=$ac_try;; |
| 28139 | esac |
| 28140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28141 | (eval "$ac_try") 2>&5 |
| 28142 | ac_status=$? |
| 28143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28144 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28145 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28146 | else |
| 28147 | echo "$as_me: failed program was:" >&5 |
| 28148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28149 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28150 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28151 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28152 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28153 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28154 | conftest$ac_exeext |
| 28155 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28156 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28157 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28158 | done |
| 28159 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28160 | : |
| 28161 | else |
| 28162 | ac_cv_search_opendir=no |
| 28163 | fi |
| 28164 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28165 | LIBS=$ac_func_search_save_LIBS |
| 28166 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28167 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28168 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28169 | ac_res=$ac_cv_search_opendir |
| 28170 | if test "$ac_res" != no; then |
| 28171 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28172 | |
| 28173 | fi |
| 28174 | |
| 28175 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28176 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28177 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28178 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28180 | else |
| 28181 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28182 | cat >conftest.$ac_ext <<_ACEOF |
| 28183 | /* confdefs.h. */ |
| 28184 | _ACEOF |
| 28185 | cat confdefs.h >>conftest.$ac_ext |
| 28186 | cat >>conftest.$ac_ext <<_ACEOF |
| 28187 | /* end confdefs.h. */ |
| 28188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28189 | /* Override any GCC internal prototype to avoid an error. |
| 28190 | Use char because int might match the return type of a GCC |
| 28191 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28192 | #ifdef __cplusplus |
| 28193 | extern "C" |
| 28194 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28195 | char opendir (); |
| 28196 | int |
| 28197 | main () |
| 28198 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28199 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28200 | ; |
| 28201 | return 0; |
| 28202 | } |
| 28203 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28204 | for ac_lib in '' x; do |
| 28205 | if test -z "$ac_lib"; then |
| 28206 | ac_res="none required" |
| 28207 | else |
| 28208 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28209 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28210 | fi |
| 28211 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28212 | if { (ac_try="$ac_link" |
| 28213 | case "(($ac_try" in |
| 28214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28215 | *) ac_try_echo=$ac_try;; |
| 28216 | esac |
| 28217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28218 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28219 | ac_status=$? |
| 28220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28221 | rm -f conftest.er1 |
| 28222 | cat conftest.err >&5 |
| 28223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28224 | (exit $ac_status); } && |
| 28225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28226 | { (case "(($ac_try" in |
| 28227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28228 | *) ac_try_echo=$ac_try;; |
| 28229 | esac |
| 28230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28231 | (eval "$ac_try") 2>&5 |
| 28232 | ac_status=$? |
| 28233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28234 | (exit $ac_status); }; } && |
| 28235 | { ac_try='test -s conftest$ac_exeext' |
| 28236 | { (case "(($ac_try" in |
| 28237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28238 | *) ac_try_echo=$ac_try;; |
| 28239 | esac |
| 28240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28241 | (eval "$ac_try") 2>&5 |
| 28242 | ac_status=$? |
| 28243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28244 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28245 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28246 | else |
| 28247 | echo "$as_me: failed program was:" >&5 |
| 28248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28249 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28250 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28251 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28252 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28253 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28254 | conftest$ac_exeext |
| 28255 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28256 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28257 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28258 | done |
| 28259 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28260 | : |
| 28261 | else |
| 28262 | ac_cv_search_opendir=no |
| 28263 | fi |
| 28264 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28265 | LIBS=$ac_func_search_save_LIBS |
| 28266 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28267 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28268 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28269 | ac_res=$ac_cv_search_opendir |
| 28270 | if test "$ac_res" != no; then |
| 28271 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28272 | |
| 28273 | fi |
| 28274 | |
| 28275 | fi |
| 28276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28277 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 28278 | 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] | 28279 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 28280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28281 | else |
| 28282 | ac_ext=c |
| 28283 | ac_cpp='$CPP $CPPFLAGS' |
| 28284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28287 | |
| 28288 | cat >conftest.$ac_ext <<_ACEOF |
| 28289 | /* confdefs.h. */ |
| 28290 | _ACEOF |
| 28291 | cat confdefs.h >>conftest.$ac_ext |
| 28292 | cat >>conftest.$ac_ext <<_ACEOF |
| 28293 | /* end confdefs.h. */ |
| 28294 | #include <sys/mman.h> |
| 28295 | #include <unistd.h> |
| 28296 | #include <fcntl.h> |
| 28297 | int |
| 28298 | main () |
| 28299 | { |
| 28300 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 28301 | ; |
| 28302 | return 0; |
| 28303 | } |
| 28304 | _ACEOF |
| 28305 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28306 | if { (ac_try="$ac_compile" |
| 28307 | case "(($ac_try" in |
| 28308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28309 | *) ac_try_echo=$ac_try;; |
| 28310 | esac |
| 28311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28312 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28313 | ac_status=$? |
| 28314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28315 | rm -f conftest.er1 |
| 28316 | cat conftest.err >&5 |
| 28317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28318 | (exit $ac_status); } && |
| 28319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28320 | { (case "(($ac_try" in |
| 28321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28322 | *) ac_try_echo=$ac_try;; |
| 28323 | esac |
| 28324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28325 | (eval "$ac_try") 2>&5 |
| 28326 | ac_status=$? |
| 28327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28328 | (exit $ac_status); }; } && |
| 28329 | { ac_try='test -s conftest.$ac_objext' |
| 28330 | { (case "(($ac_try" in |
| 28331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28332 | *) ac_try_echo=$ac_try;; |
| 28333 | esac |
| 28334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28335 | (eval "$ac_try") 2>&5 |
| 28336 | ac_status=$? |
| 28337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28338 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28339 | ac_cv_header_mmap_anon=yes |
| 28340 | else |
| 28341 | echo "$as_me: failed program was:" >&5 |
| 28342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28344 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28345 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28346 | |
| 28347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28348 | ac_ext=c |
| 28349 | ac_cpp='$CPP $CPPFLAGS' |
| 28350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28353 | |
| 28354 | |
| 28355 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28356 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 28357 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28358 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 28359 | |
| 28360 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 28361 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28362 | _ACEOF |
| 28363 | |
| 28364 | fi |
| 28365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28366 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 28367 | 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] | 28368 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 28369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28370 | else |
| 28371 | cat >conftest.$ac_ext <<_ACEOF |
| 28372 | /* confdefs.h. */ |
| 28373 | _ACEOF |
| 28374 | cat confdefs.h >>conftest.$ac_ext |
| 28375 | cat >>conftest.$ac_ext <<_ACEOF |
| 28376 | /* end confdefs.h. */ |
| 28377 | #include <sys/types.h> |
| 28378 | #include <sys/stat.h> |
| 28379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28380 | #if defined S_ISBLK && defined S_IFDIR |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28381 | # if S_ISBLK (S_IFDIR) |
| 28382 | You lose. |
| 28383 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28384 | #endif |
| 28385 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28386 | #if defined S_ISBLK && defined S_IFCHR |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28387 | # if S_ISBLK (S_IFCHR) |
| 28388 | You lose. |
| 28389 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28390 | #endif |
| 28391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28392 | #if defined S_ISLNK && defined S_IFREG |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28393 | # if S_ISLNK (S_IFREG) |
| 28394 | You lose. |
| 28395 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28396 | #endif |
| 28397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28398 | #if defined S_ISSOCK && defined S_IFREG |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28399 | # if S_ISSOCK (S_IFREG) |
| 28400 | You lose. |
| 28401 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28402 | #endif |
| 28403 | |
| 28404 | _ACEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28406 | $EGREP "You lose" >/dev/null 2>&1; then |
| 28407 | ac_cv_header_stat_broken=yes |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28408 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28409 | ac_cv_header_stat_broken=no |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28410 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28411 | rm -f conftest* |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28412 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28413 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28414 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 28415 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28416 | if test $ac_cv_header_stat_broken = yes; then |
| 28417 | |
| 28418 | cat >>confdefs.h <<\_ACEOF |
| 28419 | #define STAT_MACROS_BROKEN 1 |
| 28420 | _ACEOF |
| 28421 | |
| 28422 | fi |
| 28423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28424 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 28425 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28426 | if test "${ac_cv_header_stdc+set}" = set; then |
| 28427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28428 | else |
| 28429 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28430 | /* confdefs.h. */ |
| 28431 | _ACEOF |
| 28432 | cat confdefs.h >>conftest.$ac_ext |
| 28433 | cat >>conftest.$ac_ext <<_ACEOF |
| 28434 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28435 | #include <stdlib.h> |
| 28436 | #include <stdarg.h> |
| 28437 | #include <string.h> |
| 28438 | #include <float.h> |
| 28439 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28440 | int |
| 28441 | main () |
| 28442 | { |
| 28443 | |
| 28444 | ; |
| 28445 | return 0; |
| 28446 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28447 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28448 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28449 | if { (ac_try="$ac_compile" |
| 28450 | case "(($ac_try" in |
| 28451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28452 | *) ac_try_echo=$ac_try;; |
| 28453 | esac |
| 28454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28455 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28456 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28458 | rm -f conftest.er1 |
| 28459 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28461 | (exit $ac_status); } && |
| 28462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28463 | { (case "(($ac_try" in |
| 28464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28465 | *) ac_try_echo=$ac_try;; |
| 28466 | esac |
| 28467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28468 | (eval "$ac_try") 2>&5 |
| 28469 | ac_status=$? |
| 28470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28471 | (exit $ac_status); }; } && |
| 28472 | { ac_try='test -s conftest.$ac_objext' |
| 28473 | { (case "(($ac_try" in |
| 28474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28475 | *) ac_try_echo=$ac_try;; |
| 28476 | esac |
| 28477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28478 | (eval "$ac_try") 2>&5 |
| 28479 | ac_status=$? |
| 28480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28481 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28482 | ac_cv_header_stdc=yes |
| 28483 | else |
| 28484 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28487 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28488 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28489 | |
| 28490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28491 | |
| 28492 | if test $ac_cv_header_stdc = yes; then |
| 28493 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28494 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28495 | /* confdefs.h. */ |
| 28496 | _ACEOF |
| 28497 | cat confdefs.h >>conftest.$ac_ext |
| 28498 | cat >>conftest.$ac_ext <<_ACEOF |
| 28499 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28500 | #include <string.h> |
| 28501 | |
| 28502 | _ACEOF |
| 28503 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28504 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28505 | : |
| 28506 | else |
| 28507 | ac_cv_header_stdc=no |
| 28508 | fi |
| 28509 | rm -f conftest* |
| 28510 | |
| 28511 | fi |
| 28512 | |
| 28513 | if test $ac_cv_header_stdc = yes; then |
| 28514 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28515 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28516 | /* confdefs.h. */ |
| 28517 | _ACEOF |
| 28518 | cat confdefs.h >>conftest.$ac_ext |
| 28519 | cat >>conftest.$ac_ext <<_ACEOF |
| 28520 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28521 | #include <stdlib.h> |
| 28522 | |
| 28523 | _ACEOF |
| 28524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28525 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28526 | : |
| 28527 | else |
| 28528 | ac_cv_header_stdc=no |
| 28529 | fi |
| 28530 | rm -f conftest* |
| 28531 | |
| 28532 | fi |
| 28533 | |
| 28534 | if test $ac_cv_header_stdc = yes; then |
| 28535 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28536 | if test "$cross_compiling" = yes; then |
| 28537 | : |
| 28538 | else |
| 28539 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28540 | /* confdefs.h. */ |
| 28541 | _ACEOF |
| 28542 | cat confdefs.h >>conftest.$ac_ext |
| 28543 | cat >>conftest.$ac_ext <<_ACEOF |
| 28544 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28545 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28546 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28547 | #if ((' ' & 0x0FF) == 0x020) |
| 28548 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28549 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28550 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28551 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28552 | (('a' <= (c) && (c) <= 'i') \ |
| 28553 | || ('j' <= (c) && (c) <= 'r') \ |
| 28554 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28555 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28556 | #endif |
| 28557 | |
| 28558 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28559 | int |
| 28560 | main () |
| 28561 | { |
| 28562 | int i; |
| 28563 | for (i = 0; i < 256; i++) |
| 28564 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28565 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28566 | return 2; |
| 28567 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28568 | } |
| 28569 | _ACEOF |
| 28570 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28571 | if { (ac_try="$ac_link" |
| 28572 | case "(($ac_try" in |
| 28573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28574 | *) ac_try_echo=$ac_try;; |
| 28575 | esac |
| 28576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28577 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28578 | ac_status=$? |
| 28579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28580 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28581 | { (case "(($ac_try" in |
| 28582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28583 | *) ac_try_echo=$ac_try;; |
| 28584 | esac |
| 28585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28586 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28587 | ac_status=$? |
| 28588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28589 | (exit $ac_status); }; }; then |
| 28590 | : |
| 28591 | else |
| 28592 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28593 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28595 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28596 | ( exit $ac_status ) |
| 28597 | ac_cv_header_stdc=no |
| 28598 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28599 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28600 | fi |
| 28601 | |
| 28602 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28603 | fi |
| 28604 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28605 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28606 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28607 | if test $ac_cv_header_stdc = yes; then |
| 28608 | |
| 28609 | cat >>confdefs.h <<\_ACEOF |
| 28610 | #define STDC_HEADERS 1 |
| 28611 | _ACEOF |
| 28612 | |
| 28613 | fi |
| 28614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28615 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28616 | 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] | 28617 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28619 | else |
| 28620 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28621 | /* confdefs.h. */ |
| 28622 | _ACEOF |
| 28623 | cat confdefs.h >>conftest.$ac_ext |
| 28624 | cat >>conftest.$ac_ext <<_ACEOF |
| 28625 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28626 | #include <sys/types.h> |
| 28627 | #include <sys/wait.h> |
| 28628 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28629 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28630 | #endif |
| 28631 | #ifndef WIFEXITED |
| 28632 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28633 | #endif |
| 28634 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28635 | int |
| 28636 | main () |
| 28637 | { |
| 28638 | int s; |
| 28639 | wait (&s); |
| 28640 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28641 | ; |
| 28642 | return 0; |
| 28643 | } |
| 28644 | _ACEOF |
| 28645 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28646 | if { (ac_try="$ac_compile" |
| 28647 | case "(($ac_try" in |
| 28648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28649 | *) ac_try_echo=$ac_try;; |
| 28650 | esac |
| 28651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28652 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28653 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28655 | rm -f conftest.er1 |
| 28656 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28658 | (exit $ac_status); } && |
| 28659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28660 | { (case "(($ac_try" in |
| 28661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28662 | *) ac_try_echo=$ac_try;; |
| 28663 | esac |
| 28664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28665 | (eval "$ac_try") 2>&5 |
| 28666 | ac_status=$? |
| 28667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28668 | (exit $ac_status); }; } && |
| 28669 | { ac_try='test -s conftest.$ac_objext' |
| 28670 | { (case "(($ac_try" in |
| 28671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28672 | *) ac_try_echo=$ac_try;; |
| 28673 | esac |
| 28674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28675 | (eval "$ac_try") 2>&5 |
| 28676 | ac_status=$? |
| 28677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28678 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28679 | ac_cv_header_sys_wait_h=yes |
| 28680 | else |
| 28681 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28683 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28684 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28685 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28686 | |
| 28687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28688 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28689 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28690 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28691 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28692 | |
| 28693 | cat >>confdefs.h <<\_ACEOF |
| 28694 | #define HAVE_SYS_WAIT_H 1 |
| 28695 | _ACEOF |
| 28696 | |
| 28697 | fi |
| 28698 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28699 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28700 | 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] | 28701 | if test "${ac_cv_header_time+set}" = set; then |
| 28702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28703 | else |
| 28704 | cat >conftest.$ac_ext <<_ACEOF |
| 28705 | /* confdefs.h. */ |
| 28706 | _ACEOF |
| 28707 | cat confdefs.h >>conftest.$ac_ext |
| 28708 | cat >>conftest.$ac_ext <<_ACEOF |
| 28709 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28710 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28711 | #include <sys/time.h> |
| 28712 | #include <time.h> |
| 28713 | |
| 28714 | int |
| 28715 | main () |
| 28716 | { |
| 28717 | if ((struct tm *) 0) |
| 28718 | return 0; |
| 28719 | ; |
| 28720 | return 0; |
| 28721 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28722 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28723 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28724 | if { (ac_try="$ac_compile" |
| 28725 | case "(($ac_try" in |
| 28726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28727 | *) ac_try_echo=$ac_try;; |
| 28728 | esac |
| 28729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28730 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28731 | ac_status=$? |
| 28732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28733 | rm -f conftest.er1 |
| 28734 | cat conftest.err >&5 |
| 28735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28736 | (exit $ac_status); } && |
| 28737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28738 | { (case "(($ac_try" in |
| 28739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28740 | *) ac_try_echo=$ac_try;; |
| 28741 | esac |
| 28742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28743 | (eval "$ac_try") 2>&5 |
| 28744 | ac_status=$? |
| 28745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28746 | (exit $ac_status); }; } && |
| 28747 | { ac_try='test -s conftest.$ac_objext' |
| 28748 | { (case "(($ac_try" in |
| 28749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28750 | *) ac_try_echo=$ac_try;; |
| 28751 | esac |
| 28752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28753 | (eval "$ac_try") 2>&5 |
| 28754 | ac_status=$? |
| 28755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28756 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28757 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28758 | else |
| 28759 | echo "$as_me: failed program was:" >&5 |
| 28760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28762 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28763 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28764 | |
| 28765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28766 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28767 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28768 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28769 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28770 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28771 | cat >>confdefs.h <<\_ACEOF |
| 28772 | #define TIME_WITH_SYS_TIME 1 |
| 28773 | _ACEOF |
| 28774 | |
| 28775 | fi |
| 28776 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28777 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28778 | |
| 28779 | |
| 28780 | |
| 28781 | |
| 28782 | |
| 28783 | |
| 28784 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28785 | do |
| 28786 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28788 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28789 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28790 | 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] | 28791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28792 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28793 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28794 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28795 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28796 | else |
| 28797 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28798 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28799 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28800 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28801 | /* confdefs.h. */ |
| 28802 | _ACEOF |
| 28803 | cat confdefs.h >>conftest.$ac_ext |
| 28804 | cat >>conftest.$ac_ext <<_ACEOF |
| 28805 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28806 | $ac_includes_default |
| 28807 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28808 | _ACEOF |
| 28809 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28810 | if { (ac_try="$ac_compile" |
| 28811 | case "(($ac_try" in |
| 28812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28813 | *) ac_try_echo=$ac_try;; |
| 28814 | esac |
| 28815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28816 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28817 | ac_status=$? |
| 28818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28819 | rm -f conftest.er1 |
| 28820 | cat conftest.err >&5 |
| 28821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28822 | (exit $ac_status); } && |
| 28823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28824 | { (case "(($ac_try" in |
| 28825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28826 | *) ac_try_echo=$ac_try;; |
| 28827 | esac |
| 28828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28829 | (eval "$ac_try") 2>&5 |
| 28830 | ac_status=$? |
| 28831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28832 | (exit $ac_status); }; } && |
| 28833 | { ac_try='test -s conftest.$ac_objext' |
| 28834 | { (case "(($ac_try" in |
| 28835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28836 | *) ac_try_echo=$ac_try;; |
| 28837 | esac |
| 28838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28839 | (eval "$ac_try") 2>&5 |
| 28840 | ac_status=$? |
| 28841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28842 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28843 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28844 | else |
| 28845 | echo "$as_me: failed program was:" >&5 |
| 28846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28848 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28849 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28850 | |
| 28851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28852 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28853 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28854 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28855 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28856 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28857 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28858 | cat >conftest.$ac_ext <<_ACEOF |
| 28859 | /* confdefs.h. */ |
| 28860 | _ACEOF |
| 28861 | cat confdefs.h >>conftest.$ac_ext |
| 28862 | cat >>conftest.$ac_ext <<_ACEOF |
| 28863 | /* end confdefs.h. */ |
| 28864 | #include <$ac_header> |
| 28865 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28866 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28867 | case "(($ac_try" in |
| 28868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28869 | *) ac_try_echo=$ac_try;; |
| 28870 | esac |
| 28871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28872 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28873 | ac_status=$? |
| 28874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28875 | rm -f conftest.er1 |
| 28876 | cat conftest.err >&5 |
| 28877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28878 | (exit $ac_status); } >/dev/null; then |
| 28879 | if test -s conftest.err; then |
| 28880 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28881 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28882 | else |
| 28883 | ac_cpp_err= |
| 28884 | fi |
| 28885 | else |
| 28886 | ac_cpp_err=yes |
| 28887 | fi |
| 28888 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28889 | ac_header_preproc=yes |
| 28890 | else |
| 28891 | echo "$as_me: failed program was:" >&5 |
| 28892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28893 | |
| 28894 | ac_header_preproc=no |
| 28895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28896 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28897 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28898 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28899 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28900 | |
| 28901 | # So? What about this header? |
| 28902 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28903 | yes:no: ) |
| 28904 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28905 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28907 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28908 | ac_header_preproc=yes |
| 28909 | ;; |
| 28910 | no:yes:* ) |
| 28911 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28912 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28913 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28914 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28915 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28916 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28917 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28918 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28920 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28921 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28922 | 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] | 28923 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28924 | ## ----------------------------------- ## |
| 28925 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28926 | ## ----------------------------------- ## |
| 28927 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28928 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28929 | ;; |
| 28930 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28931 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28933 | 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] | 28934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28935 | else |
| 28936 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28937 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28938 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28939 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28940 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28941 | |
| 28942 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28943 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28944 | cat >>confdefs.h <<_ACEOF |
| 28945 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28946 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28947 | |
| 28948 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28949 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28950 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28951 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28952 | |
| 28953 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28954 | |
| 28955 | |
| 28956 | |
| 28957 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28958 | 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] | 28959 | do |
| 28960 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28961 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28962 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28964 | 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] | 28965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28966 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28967 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28968 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28969 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28970 | else |
| 28971 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28972 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28973 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28974 | cat >conftest.$ac_ext <<_ACEOF |
| 28975 | /* confdefs.h. */ |
| 28976 | _ACEOF |
| 28977 | cat confdefs.h >>conftest.$ac_ext |
| 28978 | cat >>conftest.$ac_ext <<_ACEOF |
| 28979 | /* end confdefs.h. */ |
| 28980 | $ac_includes_default |
| 28981 | #include <$ac_header> |
| 28982 | _ACEOF |
| 28983 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28984 | if { (ac_try="$ac_compile" |
| 28985 | case "(($ac_try" in |
| 28986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28987 | *) ac_try_echo=$ac_try;; |
| 28988 | esac |
| 28989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28990 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28991 | ac_status=$? |
| 28992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28993 | rm -f conftest.er1 |
| 28994 | cat conftest.err >&5 |
| 28995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28996 | (exit $ac_status); } && |
| 28997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28998 | { (case "(($ac_try" in |
| 28999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29000 | *) ac_try_echo=$ac_try;; |
| 29001 | esac |
| 29002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29003 | (eval "$ac_try") 2>&5 |
| 29004 | ac_status=$? |
| 29005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29006 | (exit $ac_status); }; } && |
| 29007 | { ac_try='test -s conftest.$ac_objext' |
| 29008 | { (case "(($ac_try" in |
| 29009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29010 | *) ac_try_echo=$ac_try;; |
| 29011 | esac |
| 29012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29013 | (eval "$ac_try") 2>&5 |
| 29014 | ac_status=$? |
| 29015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29016 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29017 | ac_header_compiler=yes |
| 29018 | else |
| 29019 | echo "$as_me: failed program was:" >&5 |
| 29020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29021 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29022 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29023 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29024 | |
| 29025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29026 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29027 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29028 | |
| 29029 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29030 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29031 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29032 | cat >conftest.$ac_ext <<_ACEOF |
| 29033 | /* confdefs.h. */ |
| 29034 | _ACEOF |
| 29035 | cat confdefs.h >>conftest.$ac_ext |
| 29036 | cat >>conftest.$ac_ext <<_ACEOF |
| 29037 | /* end confdefs.h. */ |
| 29038 | #include <$ac_header> |
| 29039 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29040 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29041 | case "(($ac_try" in |
| 29042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29043 | *) ac_try_echo=$ac_try;; |
| 29044 | esac |
| 29045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29047 | ac_status=$? |
| 29048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29049 | rm -f conftest.er1 |
| 29050 | cat conftest.err >&5 |
| 29051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29052 | (exit $ac_status); } >/dev/null; then |
| 29053 | if test -s conftest.err; then |
| 29054 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29056 | else |
| 29057 | ac_cpp_err= |
| 29058 | fi |
| 29059 | else |
| 29060 | ac_cpp_err=yes |
| 29061 | fi |
| 29062 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29063 | ac_header_preproc=yes |
| 29064 | else |
| 29065 | echo "$as_me: failed program was:" >&5 |
| 29066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29067 | |
| 29068 | ac_header_preproc=no |
| 29069 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29070 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29071 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29072 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29073 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29074 | |
| 29075 | # So? What about this header? |
| 29076 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29077 | yes:no: ) |
| 29078 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29079 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29081 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29082 | ac_header_preproc=yes |
| 29083 | ;; |
| 29084 | no:yes:* ) |
| 29085 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29086 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29087 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29088 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29089 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29090 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29091 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29092 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29093 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29094 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29095 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29096 | 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] | 29097 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29098 | ## ----------------------------------- ## |
| 29099 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29100 | ## ----------------------------------- ## |
| 29101 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29102 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29103 | ;; |
| 29104 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29105 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29107 | 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] | 29108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29109 | else |
| 29110 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29111 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29112 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29113 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29114 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29115 | |
| 29116 | fi |
| 29117 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29118 | cat >>confdefs.h <<_ACEOF |
| 29119 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29120 | _ACEOF |
| 29121 | |
| 29122 | fi |
| 29123 | |
| 29124 | done |
| 29125 | |
| 29126 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29127 | for ac_header in windows.h |
| 29128 | do |
| 29129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29130 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29131 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29133 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29135 | fi |
| 29136 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29137 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29138 | echo "${ECHO_T}$ac_res" >&6; } |
| 29139 | else |
| 29140 | # Is the header compilable? |
| 29141 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29142 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 29143 | cat >conftest.$ac_ext <<_ACEOF |
| 29144 | /* confdefs.h. */ |
| 29145 | _ACEOF |
| 29146 | cat confdefs.h >>conftest.$ac_ext |
| 29147 | cat >>conftest.$ac_ext <<_ACEOF |
| 29148 | /* end confdefs.h. */ |
| 29149 | $ac_includes_default |
| 29150 | #include <$ac_header> |
| 29151 | _ACEOF |
| 29152 | rm -f conftest.$ac_objext |
| 29153 | if { (ac_try="$ac_compile" |
| 29154 | case "(($ac_try" in |
| 29155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29156 | *) ac_try_echo=$ac_try;; |
| 29157 | esac |
| 29158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29159 | (eval "$ac_compile") 2>conftest.er1 |
| 29160 | ac_status=$? |
| 29161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29162 | rm -f conftest.er1 |
| 29163 | cat conftest.err >&5 |
| 29164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29165 | (exit $ac_status); } && |
| 29166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29167 | { (case "(($ac_try" in |
| 29168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29169 | *) ac_try_echo=$ac_try;; |
| 29170 | esac |
| 29171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29172 | (eval "$ac_try") 2>&5 |
| 29173 | ac_status=$? |
| 29174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29175 | (exit $ac_status); }; } && |
| 29176 | { ac_try='test -s conftest.$ac_objext' |
| 29177 | { (case "(($ac_try" in |
| 29178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29179 | *) ac_try_echo=$ac_try;; |
| 29180 | esac |
| 29181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29182 | (eval "$ac_try") 2>&5 |
| 29183 | ac_status=$? |
| 29184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29185 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29186 | ac_header_compiler=yes |
| 29187 | else |
| 29188 | echo "$as_me: failed program was:" >&5 |
| 29189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29190 | |
| 29191 | ac_header_compiler=no |
| 29192 | fi |
| 29193 | |
| 29194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29195 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29196 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 29197 | |
| 29198 | # Is the header present? |
| 29199 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29200 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 29201 | cat >conftest.$ac_ext <<_ACEOF |
| 29202 | /* confdefs.h. */ |
| 29203 | _ACEOF |
| 29204 | cat confdefs.h >>conftest.$ac_ext |
| 29205 | cat >>conftest.$ac_ext <<_ACEOF |
| 29206 | /* end confdefs.h. */ |
| 29207 | #include <$ac_header> |
| 29208 | _ACEOF |
| 29209 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29210 | case "(($ac_try" in |
| 29211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29212 | *) ac_try_echo=$ac_try;; |
| 29213 | esac |
| 29214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29215 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 29216 | ac_status=$? |
| 29217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29218 | rm -f conftest.er1 |
| 29219 | cat conftest.err >&5 |
| 29220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29221 | (exit $ac_status); } >/dev/null; then |
| 29222 | if test -s conftest.err; then |
| 29223 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29224 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29225 | else |
| 29226 | ac_cpp_err= |
| 29227 | fi |
| 29228 | else |
| 29229 | ac_cpp_err=yes |
| 29230 | fi |
| 29231 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29232 | ac_header_preproc=yes |
| 29233 | else |
| 29234 | echo "$as_me: failed program was:" >&5 |
| 29235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29236 | |
| 29237 | ac_header_preproc=no |
| 29238 | fi |
| 29239 | |
| 29240 | rm -f conftest.err conftest.$ac_ext |
| 29241 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29242 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 29243 | |
| 29244 | # So? What about this header? |
| 29245 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29246 | yes:no: ) |
| 29247 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29248 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29249 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29250 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29251 | ac_header_preproc=yes |
| 29252 | ;; |
| 29253 | no:yes:* ) |
| 29254 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29255 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29256 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29257 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29258 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29259 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29260 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29261 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29263 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29264 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29265 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 29266 | ( cat <<\_ASBOX |
| 29267 | ## ----------------------------------- ## |
| 29268 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29269 | ## ----------------------------------- ## |
| 29270 | _ASBOX |
| 29271 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29272 | ;; |
| 29273 | esac |
| 29274 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29276 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29278 | else |
| 29279 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29280 | fi |
| 29281 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29282 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29283 | echo "${ECHO_T}$ac_res" >&6; } |
| 29284 | |
| 29285 | fi |
| 29286 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29287 | cat >>confdefs.h <<_ACEOF |
| 29288 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29289 | _ACEOF |
| 29290 | |
| 29291 | fi |
| 29292 | |
| 29293 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29294 | |
| 29295 | |
| 29296 | |
| 29297 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29298 | |
| 29299 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29300 | do |
| 29301 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29303 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29304 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29305 | 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] | 29306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29307 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29308 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29310 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29311 | else |
| 29312 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29313 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29314 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29315 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29316 | /* confdefs.h. */ |
| 29317 | _ACEOF |
| 29318 | cat confdefs.h >>conftest.$ac_ext |
| 29319 | cat >>conftest.$ac_ext <<_ACEOF |
| 29320 | /* end confdefs.h. */ |
| 29321 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29322 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29323 | _ACEOF |
| 29324 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29325 | if { (ac_try="$ac_compile" |
| 29326 | case "(($ac_try" in |
| 29327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29328 | *) ac_try_echo=$ac_try;; |
| 29329 | esac |
| 29330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29331 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29332 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29334 | rm -f conftest.er1 |
| 29335 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29337 | (exit $ac_status); } && |
| 29338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29339 | { (case "(($ac_try" in |
| 29340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29341 | *) ac_try_echo=$ac_try;; |
| 29342 | esac |
| 29343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29344 | (eval "$ac_try") 2>&5 |
| 29345 | ac_status=$? |
| 29346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29347 | (exit $ac_status); }; } && |
| 29348 | { ac_try='test -s conftest.$ac_objext' |
| 29349 | { (case "(($ac_try" in |
| 29350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29351 | *) ac_try_echo=$ac_try;; |
| 29352 | esac |
| 29353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29354 | (eval "$ac_try") 2>&5 |
| 29355 | ac_status=$? |
| 29356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29357 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29358 | ac_header_compiler=yes |
| 29359 | else |
| 29360 | echo "$as_me: failed program was:" >&5 |
| 29361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29363 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29364 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29365 | |
| 29366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29367 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29368 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29369 | |
| 29370 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29371 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29372 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29373 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29374 | /* confdefs.h. */ |
| 29375 | _ACEOF |
| 29376 | cat confdefs.h >>conftest.$ac_ext |
| 29377 | cat >>conftest.$ac_ext <<_ACEOF |
| 29378 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29379 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29380 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29381 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29382 | case "(($ac_try" in |
| 29383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29384 | *) ac_try_echo=$ac_try;; |
| 29385 | esac |
| 29386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29387 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29388 | ac_status=$? |
| 29389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29390 | rm -f conftest.er1 |
| 29391 | cat conftest.err >&5 |
| 29392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29393 | (exit $ac_status); } >/dev/null; then |
| 29394 | if test -s conftest.err; then |
| 29395 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29396 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29397 | else |
| 29398 | ac_cpp_err= |
| 29399 | fi |
| 29400 | else |
| 29401 | ac_cpp_err=yes |
| 29402 | fi |
| 29403 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29404 | ac_header_preproc=yes |
| 29405 | else |
| 29406 | echo "$as_me: failed program was:" >&5 |
| 29407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29408 | |
| 29409 | ac_header_preproc=no |
| 29410 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29411 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29412 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29413 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29414 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29415 | |
| 29416 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29417 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29418 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29419 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29420 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29421 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29422 | 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] | 29423 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29424 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29425 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29426 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29427 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29428 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29429 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29430 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29431 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29432 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29433 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29434 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29435 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29436 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29437 | 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] | 29438 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29439 | ## ----------------------------------- ## |
| 29440 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29441 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29442 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29443 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29444 | ;; |
| 29445 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29446 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29448 | 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] | 29449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29450 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29451 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29452 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29453 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29454 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29455 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29456 | |
| 29457 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29458 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29459 | cat >>confdefs.h <<_ACEOF |
| 29460 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29461 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29462 | |
| 29463 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29464 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29465 | done |
| 29466 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29467 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29468 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 29469 | |
| 29470 | 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] | 29471 | do |
| 29472 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29474 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29475 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29476 | 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] | 29477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29478 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29479 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29480 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29481 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29482 | else |
| 29483 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29484 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29485 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29486 | cat >conftest.$ac_ext <<_ACEOF |
| 29487 | /* confdefs.h. */ |
| 29488 | _ACEOF |
| 29489 | cat confdefs.h >>conftest.$ac_ext |
| 29490 | cat >>conftest.$ac_ext <<_ACEOF |
| 29491 | /* end confdefs.h. */ |
| 29492 | $ac_includes_default |
| 29493 | #include <$ac_header> |
| 29494 | _ACEOF |
| 29495 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29496 | if { (ac_try="$ac_compile" |
| 29497 | case "(($ac_try" in |
| 29498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29499 | *) ac_try_echo=$ac_try;; |
| 29500 | esac |
| 29501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29502 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29503 | ac_status=$? |
| 29504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29505 | rm -f conftest.er1 |
| 29506 | cat conftest.err >&5 |
| 29507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29508 | (exit $ac_status); } && |
| 29509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29510 | { (case "(($ac_try" in |
| 29511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29512 | *) ac_try_echo=$ac_try;; |
| 29513 | esac |
| 29514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29515 | (eval "$ac_try") 2>&5 |
| 29516 | ac_status=$? |
| 29517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29518 | (exit $ac_status); }; } && |
| 29519 | { ac_try='test -s conftest.$ac_objext' |
| 29520 | { (case "(($ac_try" in |
| 29521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29522 | *) ac_try_echo=$ac_try;; |
| 29523 | esac |
| 29524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29525 | (eval "$ac_try") 2>&5 |
| 29526 | ac_status=$? |
| 29527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29528 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29529 | ac_header_compiler=yes |
| 29530 | else |
| 29531 | echo "$as_me: failed program was:" >&5 |
| 29532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29534 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29535 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29536 | |
| 29537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29538 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29539 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29540 | |
| 29541 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29542 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29543 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29544 | cat >conftest.$ac_ext <<_ACEOF |
| 29545 | /* confdefs.h. */ |
| 29546 | _ACEOF |
| 29547 | cat confdefs.h >>conftest.$ac_ext |
| 29548 | cat >>conftest.$ac_ext <<_ACEOF |
| 29549 | /* end confdefs.h. */ |
| 29550 | #include <$ac_header> |
| 29551 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29552 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29553 | case "(($ac_try" in |
| 29554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29555 | *) ac_try_echo=$ac_try;; |
| 29556 | esac |
| 29557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29558 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29559 | ac_status=$? |
| 29560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29561 | rm -f conftest.er1 |
| 29562 | cat conftest.err >&5 |
| 29563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29564 | (exit $ac_status); } >/dev/null; then |
| 29565 | if test -s conftest.err; then |
| 29566 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29567 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29568 | else |
| 29569 | ac_cpp_err= |
| 29570 | fi |
| 29571 | else |
| 29572 | ac_cpp_err=yes |
| 29573 | fi |
| 29574 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29575 | ac_header_preproc=yes |
| 29576 | else |
| 29577 | echo "$as_me: failed program was:" >&5 |
| 29578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29579 | |
| 29580 | ac_header_preproc=no |
| 29581 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29582 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29583 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29584 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29585 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29586 | |
| 29587 | # So? What about this header? |
| 29588 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29589 | yes:no: ) |
| 29590 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29591 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29592 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29593 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29594 | ac_header_preproc=yes |
| 29595 | ;; |
| 29596 | no:yes:* ) |
| 29597 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29598 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29599 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29600 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29601 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29602 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29603 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29604 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29605 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29606 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29607 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29608 | 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] | 29609 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29610 | ## ----------------------------------- ## |
| 29611 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29612 | ## ----------------------------------- ## |
| 29613 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29614 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29615 | ;; |
| 29616 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29617 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29619 | 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] | 29620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29621 | else |
| 29622 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29623 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29624 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29625 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29626 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29627 | |
| 29628 | fi |
| 29629 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29630 | cat >>confdefs.h <<_ACEOF |
| 29631 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29632 | _ACEOF |
| 29633 | |
| 29634 | fi |
| 29635 | |
| 29636 | done |
| 29637 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29638 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29639 | |
| 29640 | for ac_header in pthread.h |
| 29641 | do |
| 29642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29644 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29646 | 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] | 29647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29648 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29649 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29650 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29651 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29652 | else |
| 29653 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29654 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29655 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29656 | cat >conftest.$ac_ext <<_ACEOF |
| 29657 | /* confdefs.h. */ |
| 29658 | _ACEOF |
| 29659 | cat confdefs.h >>conftest.$ac_ext |
| 29660 | cat >>conftest.$ac_ext <<_ACEOF |
| 29661 | /* end confdefs.h. */ |
| 29662 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29663 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29664 | _ACEOF |
| 29665 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29666 | if { (ac_try="$ac_compile" |
| 29667 | case "(($ac_try" in |
| 29668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29669 | *) ac_try_echo=$ac_try;; |
| 29670 | esac |
| 29671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29672 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29673 | ac_status=$? |
| 29674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29675 | rm -f conftest.er1 |
| 29676 | cat conftest.err >&5 |
| 29677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29678 | (exit $ac_status); } && |
| 29679 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29680 | { (case "(($ac_try" in |
| 29681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29682 | *) ac_try_echo=$ac_try;; |
| 29683 | esac |
| 29684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29685 | (eval "$ac_try") 2>&5 |
| 29686 | ac_status=$? |
| 29687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29688 | (exit $ac_status); }; } && |
| 29689 | { ac_try='test -s conftest.$ac_objext' |
| 29690 | { (case "(($ac_try" in |
| 29691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29692 | *) ac_try_echo=$ac_try;; |
| 29693 | esac |
| 29694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29695 | (eval "$ac_try") 2>&5 |
| 29696 | ac_status=$? |
| 29697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29698 | (exit $ac_status); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29699 | ac_header_compiler=yes |
| 29700 | else |
| 29701 | echo "$as_me: failed program was:" >&5 |
| 29702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29703 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29704 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29705 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29706 | |
| 29707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29708 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29709 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29710 | |
| 29711 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29712 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29713 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29714 | cat >conftest.$ac_ext <<_ACEOF |
| 29715 | /* confdefs.h. */ |
| 29716 | _ACEOF |
| 29717 | cat confdefs.h >>conftest.$ac_ext |
| 29718 | cat >>conftest.$ac_ext <<_ACEOF |
| 29719 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29720 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29721 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29722 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29723 | case "(($ac_try" in |
| 29724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29725 | *) ac_try_echo=$ac_try;; |
| 29726 | esac |
| 29727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29728 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29729 | ac_status=$? |
| 29730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29731 | rm -f conftest.er1 |
| 29732 | cat conftest.err >&5 |
| 29733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29734 | (exit $ac_status); } >/dev/null; then |
| 29735 | if test -s conftest.err; then |
| 29736 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29737 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29738 | else |
| 29739 | ac_cpp_err= |
| 29740 | fi |
| 29741 | else |
| 29742 | ac_cpp_err=yes |
| 29743 | fi |
| 29744 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29745 | ac_header_preproc=yes |
| 29746 | else |
| 29747 | echo "$as_me: failed program was:" >&5 |
| 29748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29749 | |
| 29750 | ac_header_preproc=no |
| 29751 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29752 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29753 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29754 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29755 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29756 | |
| 29757 | # So? What about this header? |
| 29758 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29759 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29760 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29761 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29762 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29763 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29764 | ac_header_preproc=yes |
| 29765 | ;; |
| 29766 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29767 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29768 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29769 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29770 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29771 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29772 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29773 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29774 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29775 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29776 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29777 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29778 | 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] | 29779 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29780 | ## ----------------------------------- ## |
| 29781 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29782 | ## ----------------------------------- ## |
| 29783 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29784 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29785 | ;; |
| 29786 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29787 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29789 | 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] | 29790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29791 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29792 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29793 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29794 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29795 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29796 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29797 | |
| 29798 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29799 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29800 | cat >>confdefs.h <<_ACEOF |
| 29801 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29802 | _ACEOF |
| 29803 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29804 | |
| 29805 | else |
| 29806 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29807 | |
| 29808 | fi |
| 29809 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29810 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29811 | |
| 29812 | else |
| 29813 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29814 | |
| 29815 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29816 | |
| 29817 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29818 | |
| 29819 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 29820 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 29821 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 29822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29823 | else |
| 29824 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29825 | ac_ext=cpp |
| 29826 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29827 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29830 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29831 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29832 | if test "$cross_compiling" = yes; then |
| 29833 | ac_cv_huge_val_sanity=yes |
| 29834 | else |
| 29835 | cat >conftest.$ac_ext <<_ACEOF |
| 29836 | /* confdefs.h. */ |
| 29837 | _ACEOF |
| 29838 | cat confdefs.h >>conftest.$ac_ext |
| 29839 | cat >>conftest.$ac_ext <<_ACEOF |
| 29840 | /* end confdefs.h. */ |
| 29841 | #include <math.h> |
| 29842 | int |
| 29843 | main () |
| 29844 | { |
| 29845 | double x = HUGE_VAL; return x != x; |
| 29846 | ; |
| 29847 | return 0; |
| 29848 | } |
| 29849 | _ACEOF |
| 29850 | rm -f conftest$ac_exeext |
| 29851 | if { (ac_try="$ac_link" |
| 29852 | case "(($ac_try" in |
| 29853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29854 | *) ac_try_echo=$ac_try;; |
| 29855 | esac |
| 29856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29857 | (eval "$ac_link") 2>&5 |
| 29858 | ac_status=$? |
| 29859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29861 | { (case "(($ac_try" in |
| 29862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29863 | *) ac_try_echo=$ac_try;; |
| 29864 | esac |
| 29865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29866 | (eval "$ac_try") 2>&5 |
| 29867 | ac_status=$? |
| 29868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29869 | (exit $ac_status); }; }; then |
| 29870 | ac_cv_huge_val_sanity=yes |
| 29871 | else |
| 29872 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29873 | echo "$as_me: failed program was:" >&5 |
| 29874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29875 | |
| 29876 | ( exit $ac_status ) |
| 29877 | ac_cv_huge_val_sanity=no |
| 29878 | fi |
| 29879 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29880 | fi |
| 29881 | |
| 29882 | |
| 29883 | ac_ext=c |
| 29884 | ac_cpp='$CPP $CPPFLAGS' |
| 29885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29888 | |
| 29889 | |
| 29890 | fi |
| 29891 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 29892 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 29893 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 29894 | |
| 29895 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29896 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 29897 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29898 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 29899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29900 | else |
| 29901 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29902 | /* confdefs.h. */ |
| 29903 | _ACEOF |
| 29904 | cat confdefs.h >>conftest.$ac_ext |
| 29905 | cat >>conftest.$ac_ext <<_ACEOF |
| 29906 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29907 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29908 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29909 | int |
| 29910 | main () |
| 29911 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29912 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29913 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29914 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29915 | return 0; |
| 29916 | ; |
| 29917 | return 0; |
| 29918 | } |
| 29919 | _ACEOF |
| 29920 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29921 | if { (ac_try="$ac_compile" |
| 29922 | case "(($ac_try" in |
| 29923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29924 | *) ac_try_echo=$ac_try;; |
| 29925 | esac |
| 29926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29927 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29928 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29930 | rm -f conftest.er1 |
| 29931 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29933 | (exit $ac_status); } && |
| 29934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29935 | { (case "(($ac_try" in |
| 29936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29937 | *) ac_try_echo=$ac_try;; |
| 29938 | esac |
| 29939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29940 | (eval "$ac_try") 2>&5 |
| 29941 | ac_status=$? |
| 29942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29943 | (exit $ac_status); }; } && |
| 29944 | { ac_try='test -s conftest.$ac_objext' |
| 29945 | { (case "(($ac_try" in |
| 29946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29947 | *) ac_try_echo=$ac_try;; |
| 29948 | esac |
| 29949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29950 | (eval "$ac_try") 2>&5 |
| 29951 | ac_status=$? |
| 29952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29953 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29954 | ac_cv_type_pid_t=yes |
| 29955 | else |
| 29956 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29959 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29960 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29961 | |
| 29962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29963 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29964 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 29965 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29966 | if test $ac_cv_type_pid_t = yes; then |
| 29967 | : |
| 29968 | else |
| 29969 | |
| 29970 | cat >>confdefs.h <<_ACEOF |
| 29971 | #define pid_t int |
| 29972 | _ACEOF |
| 29973 | |
| 29974 | fi |
| 29975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29976 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 29977 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29978 | if test "${ac_cv_type_size_t+set}" = set; then |
| 29979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29980 | else |
| 29981 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29982 | /* confdefs.h. */ |
| 29983 | _ACEOF |
| 29984 | cat confdefs.h >>conftest.$ac_ext |
| 29985 | cat >>conftest.$ac_ext <<_ACEOF |
| 29986 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29987 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29988 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29989 | int |
| 29990 | main () |
| 29991 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29992 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29993 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29994 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29995 | return 0; |
| 29996 | ; |
| 29997 | return 0; |
| 29998 | } |
| 29999 | _ACEOF |
| 30000 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30001 | if { (ac_try="$ac_compile" |
| 30002 | case "(($ac_try" in |
| 30003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30004 | *) ac_try_echo=$ac_try;; |
| 30005 | esac |
| 30006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30007 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30008 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30010 | rm -f conftest.er1 |
| 30011 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30013 | (exit $ac_status); } && |
| 30014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30015 | { (case "(($ac_try" in |
| 30016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30017 | *) ac_try_echo=$ac_try;; |
| 30018 | esac |
| 30019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30020 | (eval "$ac_try") 2>&5 |
| 30021 | ac_status=$? |
| 30022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30023 | (exit $ac_status); }; } && |
| 30024 | { ac_try='test -s conftest.$ac_objext' |
| 30025 | { (case "(($ac_try" in |
| 30026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30027 | *) ac_try_echo=$ac_try;; |
| 30028 | esac |
| 30029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30030 | (eval "$ac_try") 2>&5 |
| 30031 | ac_status=$? |
| 30032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30033 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30034 | ac_cv_type_size_t=yes |
| 30035 | else |
| 30036 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30039 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30040 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30041 | |
| 30042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30043 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30044 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 30045 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30046 | if test $ac_cv_type_size_t = yes; then |
| 30047 | : |
| 30048 | else |
| 30049 | |
| 30050 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30051 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30052 | _ACEOF |
| 30053 | |
| 30054 | fi |
| 30055 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30056 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 30057 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30058 | if test "${ac_cv_type_signal+set}" = set; then |
| 30059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30060 | else |
| 30061 | cat >conftest.$ac_ext <<_ACEOF |
| 30062 | /* confdefs.h. */ |
| 30063 | _ACEOF |
| 30064 | cat confdefs.h >>conftest.$ac_ext |
| 30065 | cat >>conftest.$ac_ext <<_ACEOF |
| 30066 | /* end confdefs.h. */ |
| 30067 | #include <sys/types.h> |
| 30068 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30069 | |
| 30070 | int |
| 30071 | main () |
| 30072 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30073 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30074 | ; |
| 30075 | return 0; |
| 30076 | } |
| 30077 | _ACEOF |
| 30078 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30079 | if { (ac_try="$ac_compile" |
| 30080 | case "(($ac_try" in |
| 30081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30082 | *) ac_try_echo=$ac_try;; |
| 30083 | esac |
| 30084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30085 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30086 | ac_status=$? |
| 30087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30088 | rm -f conftest.er1 |
| 30089 | cat conftest.err >&5 |
| 30090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30091 | (exit $ac_status); } && |
| 30092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30093 | { (case "(($ac_try" in |
| 30094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30095 | *) ac_try_echo=$ac_try;; |
| 30096 | esac |
| 30097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30098 | (eval "$ac_try") 2>&5 |
| 30099 | ac_status=$? |
| 30100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30101 | (exit $ac_status); }; } && |
| 30102 | { ac_try='test -s conftest.$ac_objext' |
| 30103 | { (case "(($ac_try" in |
| 30104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30105 | *) ac_try_echo=$ac_try;; |
| 30106 | esac |
| 30107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30108 | (eval "$ac_try") 2>&5 |
| 30109 | ac_status=$? |
| 30110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30111 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30112 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30113 | else |
| 30114 | echo "$as_me: failed program was:" >&5 |
| 30115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30117 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30118 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30119 | |
| 30120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30121 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30122 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 30123 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30124 | |
| 30125 | cat >>confdefs.h <<_ACEOF |
| 30126 | #define RETSIGTYPE $ac_cv_type_signal |
| 30127 | _ACEOF |
| 30128 | |
| 30129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30130 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 30131 | 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] | 30132 | if test "${ac_cv_struct_tm+set}" = set; then |
| 30133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30134 | else |
| 30135 | cat >conftest.$ac_ext <<_ACEOF |
| 30136 | /* confdefs.h. */ |
| 30137 | _ACEOF |
| 30138 | cat confdefs.h >>conftest.$ac_ext |
| 30139 | cat >>conftest.$ac_ext <<_ACEOF |
| 30140 | /* end confdefs.h. */ |
| 30141 | #include <sys/types.h> |
| 30142 | #include <time.h> |
| 30143 | |
| 30144 | int |
| 30145 | main () |
| 30146 | { |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30147 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30148 | ; |
| 30149 | return 0; |
| 30150 | } |
| 30151 | _ACEOF |
| 30152 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30153 | if { (ac_try="$ac_compile" |
| 30154 | case "(($ac_try" in |
| 30155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30156 | *) ac_try_echo=$ac_try;; |
| 30157 | esac |
| 30158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30159 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30160 | ac_status=$? |
| 30161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30162 | rm -f conftest.er1 |
| 30163 | cat conftest.err >&5 |
| 30164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30165 | (exit $ac_status); } && |
| 30166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30167 | { (case "(($ac_try" in |
| 30168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30169 | *) ac_try_echo=$ac_try;; |
| 30170 | esac |
| 30171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30172 | (eval "$ac_try") 2>&5 |
| 30173 | ac_status=$? |
| 30174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30175 | (exit $ac_status); }; } && |
| 30176 | { ac_try='test -s conftest.$ac_objext' |
| 30177 | { (case "(($ac_try" in |
| 30178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30179 | *) ac_try_echo=$ac_try;; |
| 30180 | esac |
| 30181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30182 | (eval "$ac_try") 2>&5 |
| 30183 | ac_status=$? |
| 30184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30185 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30186 | ac_cv_struct_tm=time.h |
| 30187 | else |
| 30188 | echo "$as_me: failed program was:" >&5 |
| 30189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30191 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30193 | |
| 30194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30195 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30196 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 30197 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30198 | if test $ac_cv_struct_tm = sys/time.h; then |
| 30199 | |
| 30200 | cat >>confdefs.h <<\_ACEOF |
| 30201 | #define TM_IN_SYS_TIME 1 |
| 30202 | _ACEOF |
| 30203 | |
| 30204 | fi |
| 30205 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30206 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 30207 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30208 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 30209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30210 | else |
| 30211 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30212 | /* confdefs.h. */ |
| 30213 | _ACEOF |
| 30214 | cat confdefs.h >>conftest.$ac_ext |
| 30215 | cat >>conftest.$ac_ext <<_ACEOF |
| 30216 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30217 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30218 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30219 | int |
| 30220 | main () |
| 30221 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30222 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30223 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30224 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30225 | return 0; |
| 30226 | ; |
| 30227 | return 0; |
| 30228 | } |
| 30229 | _ACEOF |
| 30230 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30231 | if { (ac_try="$ac_compile" |
| 30232 | case "(($ac_try" in |
| 30233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30234 | *) ac_try_echo=$ac_try;; |
| 30235 | esac |
| 30236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30237 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30238 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30240 | rm -f conftest.er1 |
| 30241 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30243 | (exit $ac_status); } && |
| 30244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30245 | { (case "(($ac_try" in |
| 30246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30247 | *) ac_try_echo=$ac_try;; |
| 30248 | esac |
| 30249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30250 | (eval "$ac_try") 2>&5 |
| 30251 | ac_status=$? |
| 30252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30253 | (exit $ac_status); }; } && |
| 30254 | { ac_try='test -s conftest.$ac_objext' |
| 30255 | { (case "(($ac_try" in |
| 30256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30257 | *) ac_try_echo=$ac_try;; |
| 30258 | esac |
| 30259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30260 | (eval "$ac_try") 2>&5 |
| 30261 | ac_status=$? |
| 30262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30263 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30264 | ac_cv_type_int64_t=yes |
| 30265 | else |
| 30266 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30269 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30270 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30271 | |
| 30272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30273 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30274 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 30275 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30276 | if test $ac_cv_type_int64_t = yes; then |
| 30277 | |
| 30278 | cat >>confdefs.h <<_ACEOF |
| 30279 | #define HAVE_INT64_T 1 |
| 30280 | _ACEOF |
| 30281 | |
| 30282 | |
| 30283 | else |
| 30284 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 30285 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 30286 | { (exit 1); exit 1; }; } |
| 30287 | fi |
| 30288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30289 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 30290 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30291 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 30292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30293 | else |
| 30294 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30295 | /* confdefs.h. */ |
| 30296 | _ACEOF |
| 30297 | cat confdefs.h >>conftest.$ac_ext |
| 30298 | cat >>conftest.$ac_ext <<_ACEOF |
| 30299 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30300 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30301 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30302 | int |
| 30303 | main () |
| 30304 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30305 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30306 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30307 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30308 | return 0; |
| 30309 | ; |
| 30310 | return 0; |
| 30311 | } |
| 30312 | _ACEOF |
| 30313 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30314 | if { (ac_try="$ac_compile" |
| 30315 | case "(($ac_try" in |
| 30316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30317 | *) ac_try_echo=$ac_try;; |
| 30318 | esac |
| 30319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30320 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30321 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30323 | rm -f conftest.er1 |
| 30324 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30326 | (exit $ac_status); } && |
| 30327 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30328 | { (case "(($ac_try" in |
| 30329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30330 | *) ac_try_echo=$ac_try;; |
| 30331 | esac |
| 30332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30333 | (eval "$ac_try") 2>&5 |
| 30334 | ac_status=$? |
| 30335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30336 | (exit $ac_status); }; } && |
| 30337 | { ac_try='test -s conftest.$ac_objext' |
| 30338 | { (case "(($ac_try" in |
| 30339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30340 | *) ac_try_echo=$ac_try;; |
| 30341 | esac |
| 30342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30343 | (eval "$ac_try") 2>&5 |
| 30344 | ac_status=$? |
| 30345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30346 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30347 | ac_cv_type_uint64_t=yes |
| 30348 | else |
| 30349 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30351 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30352 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30353 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30354 | |
| 30355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30356 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30357 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 30358 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30359 | if test $ac_cv_type_uint64_t = yes; then |
| 30360 | |
| 30361 | cat >>confdefs.h <<_ACEOF |
| 30362 | #define HAVE_UINT64_T 1 |
| 30363 | _ACEOF |
| 30364 | |
| 30365 | |
| 30366 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30367 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 30368 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30369 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 30370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30371 | else |
| 30372 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30373 | /* confdefs.h. */ |
| 30374 | _ACEOF |
| 30375 | cat confdefs.h >>conftest.$ac_ext |
| 30376 | cat >>conftest.$ac_ext <<_ACEOF |
| 30377 | /* end confdefs.h. */ |
| 30378 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30379 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30380 | int |
| 30381 | main () |
| 30382 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30383 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30384 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30385 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30386 | return 0; |
| 30387 | ; |
| 30388 | return 0; |
| 30389 | } |
| 30390 | _ACEOF |
| 30391 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30392 | if { (ac_try="$ac_compile" |
| 30393 | case "(($ac_try" in |
| 30394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30395 | *) ac_try_echo=$ac_try;; |
| 30396 | esac |
| 30397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30398 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30399 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30401 | rm -f conftest.er1 |
| 30402 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30404 | (exit $ac_status); } && |
| 30405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30406 | { (case "(($ac_try" in |
| 30407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30408 | *) ac_try_echo=$ac_try;; |
| 30409 | esac |
| 30410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30411 | (eval "$ac_try") 2>&5 |
| 30412 | ac_status=$? |
| 30413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30414 | (exit $ac_status); }; } && |
| 30415 | { ac_try='test -s conftest.$ac_objext' |
| 30416 | { (case "(($ac_try" in |
| 30417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30418 | *) ac_try_echo=$ac_try;; |
| 30419 | esac |
| 30420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30421 | (eval "$ac_try") 2>&5 |
| 30422 | ac_status=$? |
| 30423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30424 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30425 | ac_cv_type_u_int64_t=yes |
| 30426 | else |
| 30427 | echo "$as_me: failed program was:" >&5 |
| 30428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30429 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30430 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30431 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30432 | |
| 30433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30435 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 30436 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30437 | if test $ac_cv_type_u_int64_t = yes; then |
| 30438 | |
| 30439 | cat >>confdefs.h <<_ACEOF |
| 30440 | #define HAVE_U_INT64_T 1 |
| 30441 | _ACEOF |
| 30442 | |
| 30443 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 30444 | else |
| 30445 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 30446 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 30447 | { (exit 1); exit 1; }; } |
| 30448 | fi |
| 30449 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30450 | fi |
| 30451 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30452 | |
| 30453 | |
| 30454 | |
| 30455 | |
| 30456 | |
| 30457 | |
| 30458 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 30459 | |
| 30460 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30461 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30462 | do |
| 30463 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30464 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30465 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30466 | 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] | 30467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30468 | else |
| 30469 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30470 | /* confdefs.h. */ |
| 30471 | _ACEOF |
| 30472 | cat confdefs.h >>conftest.$ac_ext |
| 30473 | cat >>conftest.$ac_ext <<_ACEOF |
| 30474 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30475 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30476 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30477 | #define $ac_func innocuous_$ac_func |
| 30478 | |
| 30479 | /* System header to define __stub macros and hopefully few prototypes, |
| 30480 | which can conflict with char $ac_func (); below. |
| 30481 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30482 | <limits.h> exists even on freestanding compilers. */ |
| 30483 | |
| 30484 | #ifdef __STDC__ |
| 30485 | # include <limits.h> |
| 30486 | #else |
| 30487 | # include <assert.h> |
| 30488 | #endif |
| 30489 | |
| 30490 | #undef $ac_func |
| 30491 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30492 | /* Override any GCC internal prototype to avoid an error. |
| 30493 | Use char because int might match the return type of a GCC |
| 30494 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30495 | #ifdef __cplusplus |
| 30496 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30497 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30498 | char $ac_func (); |
| 30499 | /* The GNU C library defines this for functions which it implements |
| 30500 | to always fail with ENOSYS. Some functions are actually named |
| 30501 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30502 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30503 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30504 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30505 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30506 | int |
| 30507 | main () |
| 30508 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30509 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30510 | ; |
| 30511 | return 0; |
| 30512 | } |
| 30513 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30514 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30515 | if { (ac_try="$ac_link" |
| 30516 | case "(($ac_try" in |
| 30517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30518 | *) ac_try_echo=$ac_try;; |
| 30519 | esac |
| 30520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30521 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30522 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30524 | rm -f conftest.er1 |
| 30525 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30527 | (exit $ac_status); } && |
| 30528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30529 | { (case "(($ac_try" in |
| 30530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30531 | *) ac_try_echo=$ac_try;; |
| 30532 | esac |
| 30533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30534 | (eval "$ac_try") 2>&5 |
| 30535 | ac_status=$? |
| 30536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30537 | (exit $ac_status); }; } && |
| 30538 | { ac_try='test -s conftest$ac_exeext' |
| 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 |
| 30545 | ac_status=$? |
| 30546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30547 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30548 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30549 | else |
| 30550 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30552 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30553 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30555 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30556 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30557 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30558 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30559 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30560 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30561 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30562 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30563 | cat >>confdefs.h <<_ACEOF |
| 30564 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30565 | _ACEOF |
| 30566 | |
| 30567 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30568 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30569 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30570 | |
| 30571 | |
| 30572 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30573 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30574 | for ac_func in powf fmodf strtof round |
| 30575 | do |
| 30576 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30577 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30578 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30579 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30581 | else |
| 30582 | cat >conftest.$ac_ext <<_ACEOF |
| 30583 | /* confdefs.h. */ |
| 30584 | _ACEOF |
| 30585 | cat confdefs.h >>conftest.$ac_ext |
| 30586 | cat >>conftest.$ac_ext <<_ACEOF |
| 30587 | /* end confdefs.h. */ |
| 30588 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30590 | #define $ac_func innocuous_$ac_func |
| 30591 | |
| 30592 | /* System header to define __stub macros and hopefully few prototypes, |
| 30593 | which can conflict with char $ac_func (); below. |
| 30594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30595 | <limits.h> exists even on freestanding compilers. */ |
| 30596 | |
| 30597 | #ifdef __STDC__ |
| 30598 | # include <limits.h> |
| 30599 | #else |
| 30600 | # include <assert.h> |
| 30601 | #endif |
| 30602 | |
| 30603 | #undef $ac_func |
| 30604 | |
| 30605 | /* Override any GCC internal prototype to avoid an error. |
| 30606 | Use char because int might match the return type of a GCC |
| 30607 | builtin and then its argument prototype would still apply. */ |
| 30608 | #ifdef __cplusplus |
| 30609 | extern "C" |
| 30610 | #endif |
| 30611 | char $ac_func (); |
| 30612 | /* The GNU C library defines this for functions which it implements |
| 30613 | to always fail with ENOSYS. Some functions are actually named |
| 30614 | something starting with __ and the normal name is an alias. */ |
| 30615 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30616 | choke me |
| 30617 | #endif |
| 30618 | |
| 30619 | int |
| 30620 | main () |
| 30621 | { |
| 30622 | return $ac_func (); |
| 30623 | ; |
| 30624 | return 0; |
| 30625 | } |
| 30626 | _ACEOF |
| 30627 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30628 | if { (ac_try="$ac_link" |
| 30629 | case "(($ac_try" in |
| 30630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30631 | *) ac_try_echo=$ac_try;; |
| 30632 | esac |
| 30633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30634 | (eval "$ac_link") 2>conftest.er1 |
| 30635 | ac_status=$? |
| 30636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30637 | rm -f conftest.er1 |
| 30638 | cat conftest.err >&5 |
| 30639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30640 | (exit $ac_status); } && |
| 30641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30642 | { (case "(($ac_try" in |
| 30643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30644 | *) ac_try_echo=$ac_try;; |
| 30645 | esac |
| 30646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30647 | (eval "$ac_try") 2>&5 |
| 30648 | ac_status=$? |
| 30649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30650 | (exit $ac_status); }; } && |
| 30651 | { ac_try='test -s conftest$ac_exeext' |
| 30652 | { (case "(($ac_try" in |
| 30653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30654 | *) ac_try_echo=$ac_try;; |
| 30655 | esac |
| 30656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30657 | (eval "$ac_try") 2>&5 |
| 30658 | ac_status=$? |
| 30659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30660 | (exit $ac_status); }; }; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30661 | eval "$as_ac_var=yes" |
| 30662 | else |
| 30663 | echo "$as_me: failed program was:" >&5 |
| 30664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30665 | |
| 30666 | eval "$as_ac_var=no" |
| 30667 | fi |
| 30668 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30669 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30670 | conftest$ac_exeext conftest.$ac_ext |
| 30671 | fi |
| 30672 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30673 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30674 | echo "${ECHO_T}$ac_res" >&6; } |
| 30675 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30676 | cat >>confdefs.h <<_ACEOF |
| 30677 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30678 | _ACEOF |
| 30679 | |
| 30680 | fi |
| 30681 | done |
| 30682 | |
| 30683 | |
| 30684 | |
| 30685 | |
| 30686 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30687 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30688 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 30689 | do |
| 30690 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30691 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30692 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30693 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30695 | else |
| 30696 | cat >conftest.$ac_ext <<_ACEOF |
| 30697 | /* confdefs.h. */ |
| 30698 | _ACEOF |
| 30699 | cat confdefs.h >>conftest.$ac_ext |
| 30700 | cat >>conftest.$ac_ext <<_ACEOF |
| 30701 | /* end confdefs.h. */ |
| 30702 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30703 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30704 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30705 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30706 | /* System header to define __stub macros and hopefully few prototypes, |
| 30707 | which can conflict with char $ac_func (); below. |
| 30708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30709 | <limits.h> exists even on freestanding compilers. */ |
| 30710 | |
| 30711 | #ifdef __STDC__ |
| 30712 | # include <limits.h> |
| 30713 | #else |
| 30714 | # include <assert.h> |
| 30715 | #endif |
| 30716 | |
| 30717 | #undef $ac_func |
| 30718 | |
| 30719 | /* Override any GCC internal prototype to avoid an error. |
| 30720 | Use char because int might match the return type of a GCC |
| 30721 | builtin and then its argument prototype would still apply. */ |
| 30722 | #ifdef __cplusplus |
| 30723 | extern "C" |
| 30724 | #endif |
| 30725 | char $ac_func (); |
| 30726 | /* The GNU C library defines this for functions which it implements |
| 30727 | to always fail with ENOSYS. Some functions are actually named |
| 30728 | something starting with __ and the normal name is an alias. */ |
| 30729 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30730 | choke me |
| 30731 | #endif |
| 30732 | |
| 30733 | int |
| 30734 | main () |
| 30735 | { |
| 30736 | return $ac_func (); |
| 30737 | ; |
| 30738 | return 0; |
| 30739 | } |
| 30740 | _ACEOF |
| 30741 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30742 | if { (ac_try="$ac_link" |
| 30743 | case "(($ac_try" in |
| 30744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30745 | *) ac_try_echo=$ac_try;; |
| 30746 | esac |
| 30747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30748 | (eval "$ac_link") 2>conftest.er1 |
| 30749 | ac_status=$? |
| 30750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30751 | rm -f conftest.er1 |
| 30752 | cat conftest.err >&5 |
| 30753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30754 | (exit $ac_status); } && |
| 30755 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30756 | { (case "(($ac_try" in |
| 30757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30758 | *) ac_try_echo=$ac_try;; |
| 30759 | esac |
| 30760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30761 | (eval "$ac_try") 2>&5 |
| 30762 | ac_status=$? |
| 30763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30764 | (exit $ac_status); }; } && |
| 30765 | { ac_try='test -s conftest$ac_exeext' |
| 30766 | { (case "(($ac_try" in |
| 30767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30768 | *) ac_try_echo=$ac_try;; |
| 30769 | esac |
| 30770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30771 | (eval "$ac_try") 2>&5 |
| 30772 | ac_status=$? |
| 30773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30774 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30775 | eval "$as_ac_var=yes" |
| 30776 | else |
| 30777 | echo "$as_me: failed program was:" >&5 |
| 30778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30779 | |
| 30780 | eval "$as_ac_var=no" |
| 30781 | fi |
| 30782 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30783 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30784 | conftest$ac_exeext conftest.$ac_ext |
| 30785 | fi |
| 30786 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30787 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30788 | echo "${ECHO_T}$ac_res" >&6; } |
| 30789 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30790 | cat >>confdefs.h <<_ACEOF |
| 30791 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30792 | _ACEOF |
| 30793 | |
| 30794 | fi |
| 30795 | done |
| 30796 | |
| 30797 | |
| 30798 | |
| 30799 | |
| 30800 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30801 | do |
| 30802 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30803 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30804 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30805 | 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] | 30806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30807 | else |
| 30808 | cat >conftest.$ac_ext <<_ACEOF |
| 30809 | /* confdefs.h. */ |
| 30810 | _ACEOF |
| 30811 | cat confdefs.h >>conftest.$ac_ext |
| 30812 | cat >>conftest.$ac_ext <<_ACEOF |
| 30813 | /* end confdefs.h. */ |
| 30814 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30816 | #define $ac_func innocuous_$ac_func |
| 30817 | |
| 30818 | /* System header to define __stub macros and hopefully few prototypes, |
| 30819 | which can conflict with char $ac_func (); below. |
| 30820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30821 | <limits.h> exists even on freestanding compilers. */ |
| 30822 | |
| 30823 | #ifdef __STDC__ |
| 30824 | # include <limits.h> |
| 30825 | #else |
| 30826 | # include <assert.h> |
| 30827 | #endif |
| 30828 | |
| 30829 | #undef $ac_func |
| 30830 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30831 | /* Override any GCC internal prototype to avoid an error. |
| 30832 | Use char because int might match the return type of a GCC |
| 30833 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30834 | #ifdef __cplusplus |
| 30835 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30836 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30837 | char $ac_func (); |
| 30838 | /* The GNU C library defines this for functions which it implements |
| 30839 | to always fail with ENOSYS. Some functions are actually named |
| 30840 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30841 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30842 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30843 | #endif |
| 30844 | |
| 30845 | int |
| 30846 | main () |
| 30847 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30848 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30849 | ; |
| 30850 | return 0; |
| 30851 | } |
| 30852 | _ACEOF |
| 30853 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30854 | if { (ac_try="$ac_link" |
| 30855 | case "(($ac_try" in |
| 30856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30857 | *) ac_try_echo=$ac_try;; |
| 30858 | esac |
| 30859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30860 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30861 | ac_status=$? |
| 30862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30863 | rm -f conftest.er1 |
| 30864 | cat conftest.err >&5 |
| 30865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30866 | (exit $ac_status); } && |
| 30867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30868 | { (case "(($ac_try" in |
| 30869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30870 | *) ac_try_echo=$ac_try;; |
| 30871 | esac |
| 30872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30873 | (eval "$ac_try") 2>&5 |
| 30874 | ac_status=$? |
| 30875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30876 | (exit $ac_status); }; } && |
| 30877 | { ac_try='test -s conftest$ac_exeext' |
| 30878 | { (case "(($ac_try" in |
| 30879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30880 | *) ac_try_echo=$ac_try;; |
| 30881 | esac |
| 30882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30883 | (eval "$ac_try") 2>&5 |
| 30884 | ac_status=$? |
| 30885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30886 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30887 | eval "$as_ac_var=yes" |
| 30888 | else |
| 30889 | echo "$as_me: failed program was:" >&5 |
| 30890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30892 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30893 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30894 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30895 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30896 | conftest$ac_exeext conftest.$ac_ext |
| 30897 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30898 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30899 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30900 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30901 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30902 | cat >>confdefs.h <<_ACEOF |
| 30903 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30904 | _ACEOF |
| 30905 | |
| 30906 | fi |
| 30907 | done |
| 30908 | |
| 30909 | |
| 30910 | |
| 30911 | |
| 30912 | |
| 30913 | |
| 30914 | |
| 30915 | |
| 30916 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30917 | do |
| 30918 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30919 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30920 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30921 | 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] | 30922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30923 | else |
| 30924 | cat >conftest.$ac_ext <<_ACEOF |
| 30925 | /* confdefs.h. */ |
| 30926 | _ACEOF |
| 30927 | cat confdefs.h >>conftest.$ac_ext |
| 30928 | cat >>conftest.$ac_ext <<_ACEOF |
| 30929 | /* end confdefs.h. */ |
| 30930 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30931 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30932 | #define $ac_func innocuous_$ac_func |
| 30933 | |
| 30934 | /* System header to define __stub macros and hopefully few prototypes, |
| 30935 | which can conflict with char $ac_func (); below. |
| 30936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30937 | <limits.h> exists even on freestanding compilers. */ |
| 30938 | |
| 30939 | #ifdef __STDC__ |
| 30940 | # include <limits.h> |
| 30941 | #else |
| 30942 | # include <assert.h> |
| 30943 | #endif |
| 30944 | |
| 30945 | #undef $ac_func |
| 30946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30947 | /* Override any GCC internal prototype to avoid an error. |
| 30948 | Use char because int might match the return type of a GCC |
| 30949 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30950 | #ifdef __cplusplus |
| 30951 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30952 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30953 | char $ac_func (); |
| 30954 | /* The GNU C library defines this for functions which it implements |
| 30955 | to always fail with ENOSYS. Some functions are actually named |
| 30956 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30957 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30958 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30959 | #endif |
| 30960 | |
| 30961 | int |
| 30962 | main () |
| 30963 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30964 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30965 | ; |
| 30966 | return 0; |
| 30967 | } |
| 30968 | _ACEOF |
| 30969 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30970 | if { (ac_try="$ac_link" |
| 30971 | case "(($ac_try" in |
| 30972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30973 | *) ac_try_echo=$ac_try;; |
| 30974 | esac |
| 30975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30976 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30977 | ac_status=$? |
| 30978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30979 | rm -f conftest.er1 |
| 30980 | cat conftest.err >&5 |
| 30981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30982 | (exit $ac_status); } && |
| 30983 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30984 | { (case "(($ac_try" in |
| 30985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30986 | *) ac_try_echo=$ac_try;; |
| 30987 | esac |
| 30988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30989 | (eval "$ac_try") 2>&5 |
| 30990 | ac_status=$? |
| 30991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30992 | (exit $ac_status); }; } && |
| 30993 | { ac_try='test -s conftest$ac_exeext' |
| 30994 | { (case "(($ac_try" in |
| 30995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30996 | *) ac_try_echo=$ac_try;; |
| 30997 | esac |
| 30998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30999 | (eval "$ac_try") 2>&5 |
| 31000 | ac_status=$? |
| 31001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31002 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31003 | eval "$as_ac_var=yes" |
| 31004 | else |
| 31005 | echo "$as_me: failed program was:" >&5 |
| 31006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31008 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31009 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31010 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31011 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31012 | conftest$ac_exeext conftest.$ac_ext |
| 31013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31014 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31015 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31016 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31017 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31018 | cat >>confdefs.h <<_ACEOF |
| 31019 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31020 | _ACEOF |
| 31021 | |
| 31022 | fi |
| 31023 | done |
| 31024 | |
| 31025 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 31026 | |
| 31027 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 31028 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 31029 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31030 | do |
| 31031 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31032 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31033 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31034 | 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] | 31035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31036 | else |
| 31037 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31038 | /* confdefs.h. */ |
| 31039 | _ACEOF |
| 31040 | cat confdefs.h >>conftest.$ac_ext |
| 31041 | cat >>conftest.$ac_ext <<_ACEOF |
| 31042 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31045 | #define $ac_func innocuous_$ac_func |
| 31046 | |
| 31047 | /* System header to define __stub macros and hopefully few prototypes, |
| 31048 | which can conflict with char $ac_func (); below. |
| 31049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31050 | <limits.h> exists even on freestanding compilers. */ |
| 31051 | |
| 31052 | #ifdef __STDC__ |
| 31053 | # include <limits.h> |
| 31054 | #else |
| 31055 | # include <assert.h> |
| 31056 | #endif |
| 31057 | |
| 31058 | #undef $ac_func |
| 31059 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31060 | /* Override any GCC internal prototype to avoid an error. |
| 31061 | Use char because int might match the return type of a GCC |
| 31062 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31063 | #ifdef __cplusplus |
| 31064 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31065 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31066 | char $ac_func (); |
| 31067 | /* The GNU C library defines this for functions which it implements |
| 31068 | to always fail with ENOSYS. Some functions are actually named |
| 31069 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31070 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31071 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31072 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31073 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31074 | int |
| 31075 | main () |
| 31076 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31077 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31078 | ; |
| 31079 | return 0; |
| 31080 | } |
| 31081 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31083 | if { (ac_try="$ac_link" |
| 31084 | case "(($ac_try" in |
| 31085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31086 | *) ac_try_echo=$ac_try;; |
| 31087 | esac |
| 31088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31089 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31090 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31092 | rm -f conftest.er1 |
| 31093 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31095 | (exit $ac_status); } && |
| 31096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31097 | { (case "(($ac_try" in |
| 31098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31099 | *) ac_try_echo=$ac_try;; |
| 31100 | esac |
| 31101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31102 | (eval "$ac_try") 2>&5 |
| 31103 | ac_status=$? |
| 31104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31105 | (exit $ac_status); }; } && |
| 31106 | { ac_try='test -s conftest$ac_exeext' |
| 31107 | { (case "(($ac_try" in |
| 31108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31109 | *) ac_try_echo=$ac_try;; |
| 31110 | esac |
| 31111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31112 | (eval "$ac_try") 2>&5 |
| 31113 | ac_status=$? |
| 31114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31115 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31116 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31117 | else |
| 31118 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31121 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31122 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31123 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31124 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31125 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31126 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31127 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31128 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31129 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31130 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31131 | cat >>confdefs.h <<_ACEOF |
| 31132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31133 | _ACEOF |
| 31134 | |
| 31135 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31136 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31137 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31138 | |
| 31139 | |
| 31140 | |
| 31141 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 31142 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31143 | do |
| 31144 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31145 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31146 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31147 | 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] | 31148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31149 | else |
| 31150 | cat >conftest.$ac_ext <<_ACEOF |
| 31151 | /* confdefs.h. */ |
| 31152 | _ACEOF |
| 31153 | cat confdefs.h >>conftest.$ac_ext |
| 31154 | cat >>conftest.$ac_ext <<_ACEOF |
| 31155 | /* end confdefs.h. */ |
| 31156 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31158 | #define $ac_func innocuous_$ac_func |
| 31159 | |
| 31160 | /* System header to define __stub macros and hopefully few prototypes, |
| 31161 | which can conflict with char $ac_func (); below. |
| 31162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31163 | <limits.h> exists even on freestanding compilers. */ |
| 31164 | |
| 31165 | #ifdef __STDC__ |
| 31166 | # include <limits.h> |
| 31167 | #else |
| 31168 | # include <assert.h> |
| 31169 | #endif |
| 31170 | |
| 31171 | #undef $ac_func |
| 31172 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31173 | /* Override any GCC internal prototype to avoid an error. |
| 31174 | Use char because int might match the return type of a GCC |
| 31175 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31176 | #ifdef __cplusplus |
| 31177 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31178 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31179 | char $ac_func (); |
| 31180 | /* The GNU C library defines this for functions which it implements |
| 31181 | to always fail with ENOSYS. Some functions are actually named |
| 31182 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31183 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31184 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31185 | #endif |
| 31186 | |
| 31187 | int |
| 31188 | main () |
| 31189 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31190 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31191 | ; |
| 31192 | return 0; |
| 31193 | } |
| 31194 | _ACEOF |
| 31195 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31196 | if { (ac_try="$ac_link" |
| 31197 | case "(($ac_try" in |
| 31198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31199 | *) ac_try_echo=$ac_try;; |
| 31200 | esac |
| 31201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31202 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31203 | ac_status=$? |
| 31204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31205 | rm -f conftest.er1 |
| 31206 | cat conftest.err >&5 |
| 31207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31208 | (exit $ac_status); } && |
| 31209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31210 | { (case "(($ac_try" in |
| 31211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31212 | *) ac_try_echo=$ac_try;; |
| 31213 | esac |
| 31214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31215 | (eval "$ac_try") 2>&5 |
| 31216 | ac_status=$? |
| 31217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31218 | (exit $ac_status); }; } && |
| 31219 | { ac_try='test -s conftest$ac_exeext' |
| 31220 | { (case "(($ac_try" in |
| 31221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31222 | *) ac_try_echo=$ac_try;; |
| 31223 | esac |
| 31224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31225 | (eval "$ac_try") 2>&5 |
| 31226 | ac_status=$? |
| 31227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31228 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31229 | eval "$as_ac_var=yes" |
| 31230 | else |
| 31231 | echo "$as_me: failed program was:" >&5 |
| 31232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31234 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31235 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31236 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31237 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31238 | conftest$ac_exeext conftest.$ac_ext |
| 31239 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31240 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31241 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31242 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31243 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31244 | cat >>confdefs.h <<_ACEOF |
| 31245 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31246 | _ACEOF |
| 31247 | |
| 31248 | fi |
| 31249 | done |
| 31250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31251 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 31252 | 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] | 31253 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31255 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31256 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31257 | ac_cpp='$CPP $CPPFLAGS' |
| 31258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31261 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31262 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31263 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31264 | else |
| 31265 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31266 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31267 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31268 | _ACEOF |
| 31269 | cat confdefs.h >>conftest.$ac_ext |
| 31270 | cat >>conftest.$ac_ext <<_ACEOF |
| 31271 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31272 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31273 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31274 | #include <stdlib.h> |
| 31275 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31276 | int |
| 31277 | main () |
| 31278 | { |
| 31279 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31280 | volatile double A, B; |
| 31281 | char Buffer[100]; |
| 31282 | A = 1; |
| 31283 | A /= 10.0; |
| 31284 | sprintf(Buffer, "%a", A); |
| 31285 | B = atof(Buffer); |
| 31286 | if (A != B) |
| 31287 | return (1); |
| 31288 | if (A != 0x1.999999999999ap-4) |
| 31289 | return (1); |
| 31290 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31291 | ; |
| 31292 | return 0; |
| 31293 | } |
| 31294 | _ACEOF |
| 31295 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31296 | if { (ac_try="$ac_link" |
| 31297 | case "(($ac_try" in |
| 31298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31299 | *) ac_try_echo=$ac_try;; |
| 31300 | esac |
| 31301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31302 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31303 | ac_status=$? |
| 31304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31306 | { (case "(($ac_try" in |
| 31307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31308 | *) ac_try_echo=$ac_try;; |
| 31309 | esac |
| 31310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31311 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31312 | ac_status=$? |
| 31313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31314 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31315 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31316 | else |
| 31317 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31318 | echo "$as_me: failed program was:" >&5 |
| 31319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31320 | |
| 31321 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31322 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31323 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31324 | 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] | 31325 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31326 | |
| 31327 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31328 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31329 | ac_cpp='$CPP $CPPFLAGS' |
| 31330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31333 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31334 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31335 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 31336 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31337 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31338 | |
| 31339 | cat >>confdefs.h <<\_ACEOF |
| 31340 | #define HAVE_PRINTF_A 1 |
| 31341 | _ACEOF |
| 31342 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31343 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31344 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31345 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 31346 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31347 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 31348 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31349 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31351 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31352 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31353 | /* confdefs.h. */ |
| 31354 | _ACEOF |
| 31355 | cat confdefs.h >>conftest.$ac_ext |
| 31356 | cat >>conftest.$ac_ext <<_ACEOF |
| 31357 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31358 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31359 | int |
| 31360 | main () |
| 31361 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31362 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31363 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31364 | ; |
| 31365 | return 0; |
| 31366 | } |
| 31367 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31368 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31369 | if { (ac_try="$ac_link" |
| 31370 | case "(($ac_try" in |
| 31371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31372 | *) ac_try_echo=$ac_try;; |
| 31373 | esac |
| 31374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31375 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31376 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31378 | rm -f conftest.er1 |
| 31379 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31381 | (exit $ac_status); } && |
| 31382 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31383 | { (case "(($ac_try" in |
| 31384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31385 | *) ac_try_echo=$ac_try;; |
| 31386 | esac |
| 31387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31388 | (eval "$ac_try") 2>&5 |
| 31389 | ac_status=$? |
| 31390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31391 | (exit $ac_status); }; } && |
| 31392 | { ac_try='test -s conftest$ac_exeext' |
| 31393 | { (case "(($ac_try" in |
| 31394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31395 | *) ac_try_echo=$ac_try;; |
| 31396 | esac |
| 31397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31398 | (eval "$ac_try") 2>&5 |
| 31399 | ac_status=$? |
| 31400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31401 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31402 | ac_cv_working_alloca_h=yes |
| 31403 | else |
| 31404 | echo "$as_me: failed program was:" >&5 |
| 31405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31406 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31407 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31408 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31409 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31410 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31411 | conftest$ac_exeext conftest.$ac_ext |
| 31412 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31413 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 31414 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31415 | if test $ac_cv_working_alloca_h = yes; then |
| 31416 | |
| 31417 | cat >>confdefs.h <<\_ACEOF |
| 31418 | #define HAVE_ALLOCA_H 1 |
| 31419 | _ACEOF |
| 31420 | |
| 31421 | fi |
| 31422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31423 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 31424 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31425 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 31426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31427 | else |
| 31428 | cat >conftest.$ac_ext <<_ACEOF |
| 31429 | /* confdefs.h. */ |
| 31430 | _ACEOF |
| 31431 | cat confdefs.h >>conftest.$ac_ext |
| 31432 | cat >>conftest.$ac_ext <<_ACEOF |
| 31433 | /* end confdefs.h. */ |
| 31434 | #ifdef __GNUC__ |
| 31435 | # define alloca __builtin_alloca |
| 31436 | #else |
| 31437 | # ifdef _MSC_VER |
| 31438 | # include <malloc.h> |
| 31439 | # define alloca _alloca |
| 31440 | # else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31441 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31442 | # include <alloca.h> |
| 31443 | # else |
| 31444 | # ifdef _AIX |
| 31445 | #pragma alloca |
| 31446 | # else |
| 31447 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 31448 | char *alloca (); |
| 31449 | # endif |
| 31450 | # endif |
| 31451 | # endif |
| 31452 | # endif |
| 31453 | #endif |
| 31454 | |
| 31455 | int |
| 31456 | main () |
| 31457 | { |
| 31458 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31459 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31460 | ; |
| 31461 | return 0; |
| 31462 | } |
| 31463 | _ACEOF |
| 31464 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31465 | if { (ac_try="$ac_link" |
| 31466 | case "(($ac_try" in |
| 31467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31468 | *) ac_try_echo=$ac_try;; |
| 31469 | esac |
| 31470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31471 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31472 | ac_status=$? |
| 31473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31474 | rm -f conftest.er1 |
| 31475 | cat conftest.err >&5 |
| 31476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31477 | (exit $ac_status); } && |
| 31478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31479 | { (case "(($ac_try" in |
| 31480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31481 | *) ac_try_echo=$ac_try;; |
| 31482 | esac |
| 31483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31484 | (eval "$ac_try") 2>&5 |
| 31485 | ac_status=$? |
| 31486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31487 | (exit $ac_status); }; } && |
| 31488 | { ac_try='test -s conftest$ac_exeext' |
| 31489 | { (case "(($ac_try" in |
| 31490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31491 | *) ac_try_echo=$ac_try;; |
| 31492 | esac |
| 31493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31494 | (eval "$ac_try") 2>&5 |
| 31495 | ac_status=$? |
| 31496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31497 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31498 | ac_cv_func_alloca_works=yes |
| 31499 | else |
| 31500 | echo "$as_me: failed program was:" >&5 |
| 31501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31503 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31505 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31506 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31507 | conftest$ac_exeext conftest.$ac_ext |
| 31508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31509 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 31510 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31511 | |
| 31512 | if test $ac_cv_func_alloca_works = yes; then |
| 31513 | |
| 31514 | cat >>confdefs.h <<\_ACEOF |
| 31515 | #define HAVE_ALLOCA 1 |
| 31516 | _ACEOF |
| 31517 | |
| 31518 | else |
| 31519 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 31520 | # that cause trouble. Some versions do not even contain alloca or |
| 31521 | # contain a buggy version. If you still want to use their alloca, |
| 31522 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 31523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31524 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31525 | |
| 31526 | cat >>confdefs.h <<\_ACEOF |
| 31527 | #define C_ALLOCA 1 |
| 31528 | _ACEOF |
| 31529 | |
| 31530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31531 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 31532 | 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] | 31533 | if test "${ac_cv_os_cray+set}" = set; then |
| 31534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31535 | else |
| 31536 | cat >conftest.$ac_ext <<_ACEOF |
| 31537 | /* confdefs.h. */ |
| 31538 | _ACEOF |
| 31539 | cat confdefs.h >>conftest.$ac_ext |
| 31540 | cat >>conftest.$ac_ext <<_ACEOF |
| 31541 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31542 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31543 | webecray |
| 31544 | #else |
| 31545 | wenotbecray |
| 31546 | #endif |
| 31547 | |
| 31548 | _ACEOF |
| 31549 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31550 | $EGREP "webecray" >/dev/null 2>&1; then |
| 31551 | ac_cv_os_cray=yes |
| 31552 | else |
| 31553 | ac_cv_os_cray=no |
| 31554 | fi |
| 31555 | rm -f conftest* |
| 31556 | |
| 31557 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31558 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 31559 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31560 | if test $ac_cv_os_cray = yes; then |
| 31561 | for ac_func in _getb67 GETB67 getb67; do |
| 31562 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31563 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31564 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31565 | 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] | 31566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31567 | else |
| 31568 | cat >conftest.$ac_ext <<_ACEOF |
| 31569 | /* confdefs.h. */ |
| 31570 | _ACEOF |
| 31571 | cat confdefs.h >>conftest.$ac_ext |
| 31572 | cat >>conftest.$ac_ext <<_ACEOF |
| 31573 | /* end confdefs.h. */ |
| 31574 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31575 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31576 | #define $ac_func innocuous_$ac_func |
| 31577 | |
| 31578 | /* System header to define __stub macros and hopefully few prototypes, |
| 31579 | which can conflict with char $ac_func (); below. |
| 31580 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31581 | <limits.h> exists even on freestanding compilers. */ |
| 31582 | |
| 31583 | #ifdef __STDC__ |
| 31584 | # include <limits.h> |
| 31585 | #else |
| 31586 | # include <assert.h> |
| 31587 | #endif |
| 31588 | |
| 31589 | #undef $ac_func |
| 31590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31591 | /* Override any GCC internal prototype to avoid an error. |
| 31592 | Use char because int might match the return type of a GCC |
| 31593 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31594 | #ifdef __cplusplus |
| 31595 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31596 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31597 | char $ac_func (); |
| 31598 | /* The GNU C library defines this for functions which it implements |
| 31599 | to always fail with ENOSYS. Some functions are actually named |
| 31600 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31601 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31602 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31603 | #endif |
| 31604 | |
| 31605 | int |
| 31606 | main () |
| 31607 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31608 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31609 | ; |
| 31610 | return 0; |
| 31611 | } |
| 31612 | _ACEOF |
| 31613 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31614 | if { (ac_try="$ac_link" |
| 31615 | case "(($ac_try" in |
| 31616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31617 | *) ac_try_echo=$ac_try;; |
| 31618 | esac |
| 31619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31620 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31621 | ac_status=$? |
| 31622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31623 | rm -f conftest.er1 |
| 31624 | cat conftest.err >&5 |
| 31625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31626 | (exit $ac_status); } && |
| 31627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31628 | { (case "(($ac_try" in |
| 31629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31630 | *) ac_try_echo=$ac_try;; |
| 31631 | esac |
| 31632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31633 | (eval "$ac_try") 2>&5 |
| 31634 | ac_status=$? |
| 31635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31636 | (exit $ac_status); }; } && |
| 31637 | { ac_try='test -s conftest$ac_exeext' |
| 31638 | { (case "(($ac_try" in |
| 31639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31640 | *) ac_try_echo=$ac_try;; |
| 31641 | esac |
| 31642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31643 | (eval "$ac_try") 2>&5 |
| 31644 | ac_status=$? |
| 31645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31646 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31647 | eval "$as_ac_var=yes" |
| 31648 | else |
| 31649 | echo "$as_me: failed program was:" >&5 |
| 31650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31651 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31652 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31653 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31654 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31655 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31656 | conftest$ac_exeext conftest.$ac_ext |
| 31657 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31658 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31659 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31660 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31661 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31662 | |
| 31663 | cat >>confdefs.h <<_ACEOF |
| 31664 | #define CRAY_STACKSEG_END $ac_func |
| 31665 | _ACEOF |
| 31666 | |
| 31667 | break |
| 31668 | fi |
| 31669 | |
| 31670 | done |
| 31671 | fi |
| 31672 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31673 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 31674 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31675 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 31676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31677 | else |
| 31678 | if test "$cross_compiling" = yes; then |
| 31679 | ac_cv_c_stack_direction=0 |
| 31680 | else |
| 31681 | cat >conftest.$ac_ext <<_ACEOF |
| 31682 | /* confdefs.h. */ |
| 31683 | _ACEOF |
| 31684 | cat confdefs.h >>conftest.$ac_ext |
| 31685 | cat >>conftest.$ac_ext <<_ACEOF |
| 31686 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31687 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31688 | int |
| 31689 | find_stack_direction () |
| 31690 | { |
| 31691 | static char *addr = 0; |
| 31692 | auto char dummy; |
| 31693 | if (addr == 0) |
| 31694 | { |
| 31695 | addr = &dummy; |
| 31696 | return find_stack_direction (); |
| 31697 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31698 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31699 | return (&dummy > addr) ? 1 : -1; |
| 31700 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31701 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31702 | int |
| 31703 | main () |
| 31704 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31705 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31706 | } |
| 31707 | _ACEOF |
| 31708 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31709 | if { (ac_try="$ac_link" |
| 31710 | case "(($ac_try" in |
| 31711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31712 | *) ac_try_echo=$ac_try;; |
| 31713 | esac |
| 31714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31715 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31716 | ac_status=$? |
| 31717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31719 | { (case "(($ac_try" in |
| 31720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31721 | *) ac_try_echo=$ac_try;; |
| 31722 | esac |
| 31723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31724 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31725 | ac_status=$? |
| 31726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31727 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31728 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31729 | else |
| 31730 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31731 | echo "$as_me: failed program was:" >&5 |
| 31732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31733 | |
| 31734 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31735 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31736 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31737 | 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] | 31738 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31739 | |
| 31740 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31741 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31742 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 31743 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31744 | |
| 31745 | cat >>confdefs.h <<_ACEOF |
| 31746 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 31747 | _ACEOF |
| 31748 | |
| 31749 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31750 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31751 | |
| 31752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31753 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 31754 | 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] | 31755 | if test "${ac_cv_func_rand48+set}" = set; then |
| 31756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31757 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31758 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31759 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31760 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31761 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31762 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31763 | |
| 31764 | cat >conftest.$ac_ext <<_ACEOF |
| 31765 | /* confdefs.h. */ |
| 31766 | _ACEOF |
| 31767 | cat confdefs.h >>conftest.$ac_ext |
| 31768 | cat >>conftest.$ac_ext <<_ACEOF |
| 31769 | /* end confdefs.h. */ |
| 31770 | #include <stdlib.h> |
| 31771 | int |
| 31772 | main () |
| 31773 | { |
| 31774 | srand48(0);lrand48();drand48(); |
| 31775 | ; |
| 31776 | return 0; |
| 31777 | } |
| 31778 | _ACEOF |
| 31779 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31780 | if { (ac_try="$ac_compile" |
| 31781 | case "(($ac_try" in |
| 31782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31783 | *) ac_try_echo=$ac_try;; |
| 31784 | esac |
| 31785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31786 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31787 | ac_status=$? |
| 31788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31789 | rm -f conftest.er1 |
| 31790 | cat conftest.err >&5 |
| 31791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31792 | (exit $ac_status); } && |
| 31793 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31794 | { (case "(($ac_try" in |
| 31795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31796 | *) ac_try_echo=$ac_try;; |
| 31797 | esac |
| 31798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31799 | (eval "$ac_try") 2>&5 |
| 31800 | ac_status=$? |
| 31801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31802 | (exit $ac_status); }; } && |
| 31803 | { ac_try='test -s conftest.$ac_objext' |
| 31804 | { (case "(($ac_try" in |
| 31805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31806 | *) ac_try_echo=$ac_try;; |
| 31807 | esac |
| 31808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31809 | (eval "$ac_try") 2>&5 |
| 31810 | ac_status=$? |
| 31811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31812 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31813 | ac_cv_func_rand48=yes |
| 31814 | else |
| 31815 | echo "$as_me: failed program was:" >&5 |
| 31816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31818 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31820 | |
| 31821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31822 | ac_ext=c |
| 31823 | ac_cpp='$CPP $CPPFLAGS' |
| 31824 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31825 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31826 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31827 | |
| 31828 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31829 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 31830 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31831 | |
| 31832 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 31833 | |
| 31834 | cat >>confdefs.h <<\_ACEOF |
| 31835 | #define HAVE_RAND48 1 |
| 31836 | _ACEOF |
| 31837 | |
| 31838 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31839 | |
| 31840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31841 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 31842 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31843 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 31844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31845 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31846 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31847 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31848 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31849 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31850 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31851 | |
| 31852 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31853 | /* confdefs.h. */ |
| 31854 | _ACEOF |
| 31855 | cat confdefs.h >>conftest.$ac_ext |
| 31856 | cat >>conftest.$ac_ext <<_ACEOF |
| 31857 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31858 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31859 | int |
| 31860 | main () |
| 31861 | { |
| 31862 | using namespace Outer::Inner; return i; |
| 31863 | ; |
| 31864 | return 0; |
| 31865 | } |
| 31866 | _ACEOF |
| 31867 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31868 | if { (ac_try="$ac_compile" |
| 31869 | case "(($ac_try" in |
| 31870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31871 | *) ac_try_echo=$ac_try;; |
| 31872 | esac |
| 31873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31874 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31875 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31877 | rm -f conftest.er1 |
| 31878 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31880 | (exit $ac_status); } && |
| 31881 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31882 | { (case "(($ac_try" in |
| 31883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31884 | *) ac_try_echo=$ac_try;; |
| 31885 | esac |
| 31886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31887 | (eval "$ac_try") 2>&5 |
| 31888 | ac_status=$? |
| 31889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31890 | (exit $ac_status); }; } && |
| 31891 | { ac_try='test -s conftest.$ac_objext' |
| 31892 | { (case "(($ac_try" in |
| 31893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31894 | *) ac_try_echo=$ac_try;; |
| 31895 | esac |
| 31896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31897 | (eval "$ac_try") 2>&5 |
| 31898 | ac_status=$? |
| 31899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31900 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31901 | ac_cv_cxx_namespaces=yes |
| 31902 | else |
| 31903 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31906 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31907 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31908 | |
| 31909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31910 | ac_ext=c |
| 31911 | ac_cpp='$CPP $CPPFLAGS' |
| 31912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31915 | |
| 31916 | |
| 31917 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31918 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 31919 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31920 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 31921 | |
| 31922 | cat >>confdefs.h <<\_ACEOF |
| 31923 | #define HAVE_NAMESPACES |
| 31924 | _ACEOF |
| 31925 | |
| 31926 | fi |
| 31927 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31928 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 31929 | 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] | 31930 | 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] | 31931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31932 | else |
| 31933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31934 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31935 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31936 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31937 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31938 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31939 | |
| 31940 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31941 | /* confdefs.h. */ |
| 31942 | _ACEOF |
| 31943 | cat confdefs.h >>conftest.$ac_ext |
| 31944 | cat >>conftest.$ac_ext <<_ACEOF |
| 31945 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31946 | #include <ext/hash_map> |
| 31947 | #ifdef HAVE_NAMESPACES |
| 31948 | using namespace std; |
| 31949 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31950 | int |
| 31951 | main () |
| 31952 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31953 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31954 | ; |
| 31955 | return 0; |
| 31956 | } |
| 31957 | _ACEOF |
| 31958 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31959 | if { (ac_try="$ac_compile" |
| 31960 | case "(($ac_try" in |
| 31961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31962 | *) ac_try_echo=$ac_try;; |
| 31963 | esac |
| 31964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31965 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31966 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31968 | rm -f conftest.er1 |
| 31969 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31971 | (exit $ac_status); } && |
| 31972 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31973 | { (case "(($ac_try" in |
| 31974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31975 | *) ac_try_echo=$ac_try;; |
| 31976 | esac |
| 31977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31978 | (eval "$ac_try") 2>&5 |
| 31979 | ac_status=$? |
| 31980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31981 | (exit $ac_status); }; } && |
| 31982 | { ac_try='test -s conftest.$ac_objext' |
| 31983 | { (case "(($ac_try" in |
| 31984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31985 | *) ac_try_echo=$ac_try;; |
| 31986 | esac |
| 31987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31988 | (eval "$ac_try") 2>&5 |
| 31989 | ac_status=$? |
| 31990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31991 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31992 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31993 | else |
| 31994 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31997 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31998 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31999 | |
| 32000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32001 | ac_ext=c |
| 32002 | ac_cpp='$CPP $CPPFLAGS' |
| 32003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32006 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32007 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32008 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 32009 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32010 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 32011 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32012 | |
| 32013 | cat >>confdefs.h <<\_ACEOF |
| 32014 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 32015 | _ACEOF |
| 32016 | |
| 32017 | else |
| 32018 | |
| 32019 | cat >>confdefs.h <<\_ACEOF |
| 32020 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 32021 | _ACEOF |
| 32022 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32023 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32025 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 32026 | 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] | 32027 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 32028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32029 | else |
| 32030 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32031 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32032 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32033 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32034 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32035 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32036 | |
| 32037 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32038 | /* confdefs.h. */ |
| 32039 | _ACEOF |
| 32040 | cat confdefs.h >>conftest.$ac_ext |
| 32041 | cat >>conftest.$ac_ext <<_ACEOF |
| 32042 | /* end confdefs.h. */ |
| 32043 | #include <ext/hash_map> |
| 32044 | #ifdef HAVE_NAMESPACES |
| 32045 | using namespace __gnu_cxx; |
| 32046 | #endif |
| 32047 | int |
| 32048 | main () |
| 32049 | { |
| 32050 | hash_map<int,int> t; |
| 32051 | ; |
| 32052 | return 0; |
| 32053 | } |
| 32054 | _ACEOF |
| 32055 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32056 | if { (ac_try="$ac_compile" |
| 32057 | case "(($ac_try" in |
| 32058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32059 | *) ac_try_echo=$ac_try;; |
| 32060 | esac |
| 32061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32062 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32063 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32065 | rm -f conftest.er1 |
| 32066 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32068 | (exit $ac_status); } && |
| 32069 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32070 | { (case "(($ac_try" in |
| 32071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32072 | *) ac_try_echo=$ac_try;; |
| 32073 | esac |
| 32074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32075 | (eval "$ac_try") 2>&5 |
| 32076 | ac_status=$? |
| 32077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32078 | (exit $ac_status); }; } && |
| 32079 | { ac_try='test -s conftest.$ac_objext' |
| 32080 | { (case "(($ac_try" in |
| 32081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32082 | *) ac_try_echo=$ac_try;; |
| 32083 | esac |
| 32084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32085 | (eval "$ac_try") 2>&5 |
| 32086 | ac_status=$? |
| 32087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32088 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32089 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 32090 | else |
| 32091 | echo "$as_me: failed program was:" >&5 |
| 32092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32093 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32094 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32095 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32096 | |
| 32097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32098 | ac_ext=c |
| 32099 | ac_cpp='$CPP $CPPFLAGS' |
| 32100 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32101 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32102 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32103 | |
| 32104 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32105 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 32106 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32107 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 32108 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32109 | |
| 32110 | cat >>confdefs.h <<\_ACEOF |
| 32111 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 32112 | _ACEOF |
| 32113 | |
| 32114 | else |
| 32115 | |
| 32116 | cat >>confdefs.h <<\_ACEOF |
| 32117 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 32118 | _ACEOF |
| 32119 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32120 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32122 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 32123 | 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] | 32124 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 32125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32126 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32128 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32129 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32130 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32131 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32132 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32133 | |
| 32134 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32135 | /* confdefs.h. */ |
| 32136 | _ACEOF |
| 32137 | cat confdefs.h >>conftest.$ac_ext |
| 32138 | cat >>conftest.$ac_ext <<_ACEOF |
| 32139 | /* end confdefs.h. */ |
| 32140 | #include <hash_map> |
| 32141 | int |
| 32142 | main () |
| 32143 | { |
| 32144 | hash_map<int,int> t; |
| 32145 | ; |
| 32146 | return 0; |
| 32147 | } |
| 32148 | _ACEOF |
| 32149 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32150 | if { (ac_try="$ac_compile" |
| 32151 | case "(($ac_try" in |
| 32152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32153 | *) ac_try_echo=$ac_try;; |
| 32154 | esac |
| 32155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32156 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32157 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32159 | rm -f conftest.er1 |
| 32160 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32162 | (exit $ac_status); } && |
| 32163 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32164 | { (case "(($ac_try" in |
| 32165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32166 | *) ac_try_echo=$ac_try;; |
| 32167 | esac |
| 32168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32169 | (eval "$ac_try") 2>&5 |
| 32170 | ac_status=$? |
| 32171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32172 | (exit $ac_status); }; } && |
| 32173 | { ac_try='test -s conftest.$ac_objext' |
| 32174 | { (case "(($ac_try" in |
| 32175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32176 | *) ac_try_echo=$ac_try;; |
| 32177 | esac |
| 32178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32179 | (eval "$ac_try") 2>&5 |
| 32180 | ac_status=$? |
| 32181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32182 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32183 | ac_cv_cxx_have_global_hash_map=yes |
| 32184 | else |
| 32185 | echo "$as_me: failed program was:" >&5 |
| 32186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32188 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32189 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32190 | |
| 32191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32192 | ac_ext=c |
| 32193 | ac_cpp='$CPP $CPPFLAGS' |
| 32194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32197 | |
| 32198 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32199 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 32200 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32201 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 32202 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32203 | |
| 32204 | cat >>confdefs.h <<\_ACEOF |
| 32205 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 32206 | _ACEOF |
| 32207 | |
| 32208 | else |
| 32209 | |
| 32210 | cat >>confdefs.h <<\_ACEOF |
| 32211 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 32212 | _ACEOF |
| 32213 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32214 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32216 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 32217 | 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] | 32218 | 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] | 32219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32220 | else |
| 32221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32222 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32223 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32224 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32225 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32226 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32227 | |
| 32228 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32229 | /* confdefs.h. */ |
| 32230 | _ACEOF |
| 32231 | cat confdefs.h >>conftest.$ac_ext |
| 32232 | cat >>conftest.$ac_ext <<_ACEOF |
| 32233 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32234 | #include <ext/hash_set> |
| 32235 | #ifdef HAVE_NAMESPACES |
| 32236 | using namespace std; |
| 32237 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32238 | int |
| 32239 | main () |
| 32240 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32241 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32242 | ; |
| 32243 | return 0; |
| 32244 | } |
| 32245 | _ACEOF |
| 32246 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32247 | if { (ac_try="$ac_compile" |
| 32248 | case "(($ac_try" in |
| 32249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32250 | *) ac_try_echo=$ac_try;; |
| 32251 | esac |
| 32252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32253 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32254 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32256 | rm -f conftest.er1 |
| 32257 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32259 | (exit $ac_status); } && |
| 32260 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32261 | { (case "(($ac_try" in |
| 32262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32263 | *) ac_try_echo=$ac_try;; |
| 32264 | esac |
| 32265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32266 | (eval "$ac_try") 2>&5 |
| 32267 | ac_status=$? |
| 32268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32269 | (exit $ac_status); }; } && |
| 32270 | { ac_try='test -s conftest.$ac_objext' |
| 32271 | { (case "(($ac_try" in |
| 32272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32273 | *) ac_try_echo=$ac_try;; |
| 32274 | esac |
| 32275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32276 | (eval "$ac_try") 2>&5 |
| 32277 | ac_status=$? |
| 32278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32279 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32280 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32281 | else |
| 32282 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32285 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32286 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32287 | |
| 32288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32289 | ac_ext=c |
| 32290 | ac_cpp='$CPP $CPPFLAGS' |
| 32291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32294 | |
| 32295 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32296 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 32297 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32298 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 32299 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32300 | |
| 32301 | cat >>confdefs.h <<\_ACEOF |
| 32302 | #define HAVE_STD_EXT_HASH_SET 1 |
| 32303 | _ACEOF |
| 32304 | |
| 32305 | else |
| 32306 | |
| 32307 | cat >>confdefs.h <<\_ACEOF |
| 32308 | #define HAVE_STD_EXT_HASH_SET 0 |
| 32309 | _ACEOF |
| 32310 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32311 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32313 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 32314 | 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] | 32315 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 32316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32317 | else |
| 32318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32319 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32320 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32321 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32322 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32323 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32324 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32325 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32326 | /* confdefs.h. */ |
| 32327 | _ACEOF |
| 32328 | cat confdefs.h >>conftest.$ac_ext |
| 32329 | cat >>conftest.$ac_ext <<_ACEOF |
| 32330 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32331 | #include <ext/hash_set> |
| 32332 | #ifdef HAVE_NAMESPACES |
| 32333 | using namespace __gnu_cxx; |
| 32334 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32335 | int |
| 32336 | main () |
| 32337 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32338 | hash_set<int> t; |
| 32339 | ; |
| 32340 | return 0; |
| 32341 | } |
| 32342 | _ACEOF |
| 32343 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32344 | if { (ac_try="$ac_compile" |
| 32345 | case "(($ac_try" in |
| 32346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32347 | *) ac_try_echo=$ac_try;; |
| 32348 | esac |
| 32349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32350 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32351 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32353 | rm -f conftest.er1 |
| 32354 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32356 | (exit $ac_status); } && |
| 32357 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32358 | { (case "(($ac_try" in |
| 32359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32360 | *) ac_try_echo=$ac_try;; |
| 32361 | esac |
| 32362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32363 | (eval "$ac_try") 2>&5 |
| 32364 | ac_status=$? |
| 32365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32366 | (exit $ac_status); }; } && |
| 32367 | { ac_try='test -s conftest.$ac_objext' |
| 32368 | { (case "(($ac_try" in |
| 32369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32370 | *) ac_try_echo=$ac_try;; |
| 32371 | esac |
| 32372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32373 | (eval "$ac_try") 2>&5 |
| 32374 | ac_status=$? |
| 32375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32376 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32377 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 32378 | else |
| 32379 | echo "$as_me: failed program was:" >&5 |
| 32380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32381 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32382 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32383 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32384 | |
| 32385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32386 | ac_ext=c |
| 32387 | ac_cpp='$CPP $CPPFLAGS' |
| 32388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32391 | |
| 32392 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32393 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 32394 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32395 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 32396 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32397 | |
| 32398 | cat >>confdefs.h <<\_ACEOF |
| 32399 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 32400 | _ACEOF |
| 32401 | |
| 32402 | else |
| 32403 | |
| 32404 | cat >>confdefs.h <<\_ACEOF |
| 32405 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 32406 | _ACEOF |
| 32407 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32408 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32409 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32410 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 32411 | 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] | 32412 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 32413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32414 | else |
| 32415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32416 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32417 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32418 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32419 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32420 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32421 | |
| 32422 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32423 | /* confdefs.h. */ |
| 32424 | _ACEOF |
| 32425 | cat confdefs.h >>conftest.$ac_ext |
| 32426 | cat >>conftest.$ac_ext <<_ACEOF |
| 32427 | /* end confdefs.h. */ |
| 32428 | #include <hash_set> |
| 32429 | int |
| 32430 | main () |
| 32431 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32432 | hash_set<int> t; return 0; |
| 32433 | ; |
| 32434 | return 0; |
| 32435 | } |
| 32436 | _ACEOF |
| 32437 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32438 | if { (ac_try="$ac_compile" |
| 32439 | case "(($ac_try" in |
| 32440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32441 | *) ac_try_echo=$ac_try;; |
| 32442 | esac |
| 32443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32444 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32445 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32447 | rm -f conftest.er1 |
| 32448 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32450 | (exit $ac_status); } && |
| 32451 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32452 | { (case "(($ac_try" in |
| 32453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32454 | *) ac_try_echo=$ac_try;; |
| 32455 | esac |
| 32456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32457 | (eval "$ac_try") 2>&5 |
| 32458 | ac_status=$? |
| 32459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32460 | (exit $ac_status); }; } && |
| 32461 | { ac_try='test -s conftest.$ac_objext' |
| 32462 | { (case "(($ac_try" in |
| 32463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32464 | *) ac_try_echo=$ac_try;; |
| 32465 | esac |
| 32466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32467 | (eval "$ac_try") 2>&5 |
| 32468 | ac_status=$? |
| 32469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32470 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32471 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32472 | else |
| 32473 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32476 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32477 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32478 | |
| 32479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32480 | ac_ext=c |
| 32481 | ac_cpp='$CPP $CPPFLAGS' |
| 32482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32485 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32486 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32487 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 32488 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32489 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 32490 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32491 | |
| 32492 | cat >>confdefs.h <<\_ACEOF |
| 32493 | #define HAVE_GLOBAL_HASH_SET 1 |
| 32494 | _ACEOF |
| 32495 | |
| 32496 | else |
| 32497 | |
| 32498 | cat >>confdefs.h <<\_ACEOF |
| 32499 | #define HAVE_GLOBAL_HASH_SET 0 |
| 32500 | _ACEOF |
| 32501 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32502 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32504 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 32505 | 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] | 32506 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 32507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32508 | else |
| 32509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32510 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32511 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32512 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32513 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32514 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32515 | |
| 32516 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32517 | /* confdefs.h. */ |
| 32518 | _ACEOF |
| 32519 | cat confdefs.h >>conftest.$ac_ext |
| 32520 | cat >>conftest.$ac_ext <<_ACEOF |
| 32521 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32522 | #include <iterator> |
| 32523 | #ifdef HAVE_NAMESPACES |
| 32524 | using namespace std; |
| 32525 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32526 | int |
| 32527 | main () |
| 32528 | { |
| 32529 | iterator<int,int,int> t; return 0; |
| 32530 | ; |
| 32531 | return 0; |
| 32532 | } |
| 32533 | _ACEOF |
| 32534 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32535 | if { (ac_try="$ac_compile" |
| 32536 | case "(($ac_try" in |
| 32537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32538 | *) ac_try_echo=$ac_try;; |
| 32539 | esac |
| 32540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32541 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32542 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32544 | rm -f conftest.er1 |
| 32545 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32547 | (exit $ac_status); } && |
| 32548 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32549 | { (case "(($ac_try" in |
| 32550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32551 | *) ac_try_echo=$ac_try;; |
| 32552 | esac |
| 32553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32554 | (eval "$ac_try") 2>&5 |
| 32555 | ac_status=$? |
| 32556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32557 | (exit $ac_status); }; } && |
| 32558 | { ac_try='test -s conftest.$ac_objext' |
| 32559 | { (case "(($ac_try" in |
| 32560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32561 | *) ac_try_echo=$ac_try;; |
| 32562 | esac |
| 32563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32564 | (eval "$ac_try") 2>&5 |
| 32565 | ac_status=$? |
| 32566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32567 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32568 | ac_cv_cxx_have_std_iterator=yes |
| 32569 | else |
| 32570 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32572 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32573 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32574 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32575 | |
| 32576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32577 | ac_ext=c |
| 32578 | ac_cpp='$CPP $CPPFLAGS' |
| 32579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32582 | |
| 32583 | |
| 32584 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32585 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 32586 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32587 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 32588 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32589 | |
| 32590 | cat >>confdefs.h <<\_ACEOF |
| 32591 | #define HAVE_STD_ITERATOR 1 |
| 32592 | _ACEOF |
| 32593 | |
| 32594 | else |
| 32595 | |
| 32596 | cat >>confdefs.h <<\_ACEOF |
| 32597 | #define HAVE_STD_ITERATOR 0 |
| 32598 | _ACEOF |
| 32599 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32600 | fi |
| 32601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32602 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 32603 | 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] | 32604 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 32605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32606 | else |
| 32607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32608 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32609 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32610 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32611 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32612 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32613 | |
| 32614 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32615 | /* confdefs.h. */ |
| 32616 | _ACEOF |
| 32617 | cat confdefs.h >>conftest.$ac_ext |
| 32618 | cat >>conftest.$ac_ext <<_ACEOF |
| 32619 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32620 | #include <iterator> |
| 32621 | #ifdef HAVE_NAMESPACES |
| 32622 | using namespace std; |
| 32623 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32624 | int |
| 32625 | main () |
| 32626 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32627 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32628 | ; |
| 32629 | return 0; |
| 32630 | } |
| 32631 | _ACEOF |
| 32632 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32633 | if { (ac_try="$ac_compile" |
| 32634 | case "(($ac_try" in |
| 32635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32636 | *) ac_try_echo=$ac_try;; |
| 32637 | esac |
| 32638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32639 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32640 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32642 | rm -f conftest.er1 |
| 32643 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32645 | (exit $ac_status); } && |
| 32646 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32647 | { (case "(($ac_try" in |
| 32648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32649 | *) ac_try_echo=$ac_try;; |
| 32650 | esac |
| 32651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32652 | (eval "$ac_try") 2>&5 |
| 32653 | ac_status=$? |
| 32654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32655 | (exit $ac_status); }; } && |
| 32656 | { ac_try='test -s conftest.$ac_objext' |
| 32657 | { (case "(($ac_try" in |
| 32658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32659 | *) ac_try_echo=$ac_try;; |
| 32660 | esac |
| 32661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32662 | (eval "$ac_try") 2>&5 |
| 32663 | ac_status=$? |
| 32664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32665 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32666 | ac_cv_cxx_have_bi_iterator=yes |
| 32667 | else |
| 32668 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32671 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32672 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32673 | |
| 32674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32675 | ac_ext=c |
| 32676 | ac_cpp='$CPP $CPPFLAGS' |
| 32677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32680 | |
| 32681 | |
| 32682 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32683 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 32684 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32685 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 32686 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32687 | |
| 32688 | cat >>confdefs.h <<\_ACEOF |
| 32689 | #define HAVE_BI_ITERATOR 1 |
| 32690 | _ACEOF |
| 32691 | |
| 32692 | else |
| 32693 | |
| 32694 | cat >>confdefs.h <<\_ACEOF |
| 32695 | #define HAVE_BI_ITERATOR 0 |
| 32696 | _ACEOF |
| 32697 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32698 | fi |
| 32699 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32700 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 32701 | 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] | 32702 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 32703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32704 | else |
| 32705 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32706 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32707 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32708 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32709 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32710 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32711 | |
| 32712 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32713 | /* confdefs.h. */ |
| 32714 | _ACEOF |
| 32715 | cat confdefs.h >>conftest.$ac_ext |
| 32716 | cat >>conftest.$ac_ext <<_ACEOF |
| 32717 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32718 | #include <iterator> |
| 32719 | #ifdef HAVE_NAMESPACES |
| 32720 | using namespace std; |
| 32721 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32722 | int |
| 32723 | main () |
| 32724 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32725 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32726 | ; |
| 32727 | return 0; |
| 32728 | } |
| 32729 | _ACEOF |
| 32730 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32731 | if { (ac_try="$ac_compile" |
| 32732 | case "(($ac_try" in |
| 32733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32734 | *) ac_try_echo=$ac_try;; |
| 32735 | esac |
| 32736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32737 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32738 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32740 | rm -f conftest.er1 |
| 32741 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32743 | (exit $ac_status); } && |
| 32744 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32745 | { (case "(($ac_try" in |
| 32746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32747 | *) ac_try_echo=$ac_try;; |
| 32748 | esac |
| 32749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32750 | (eval "$ac_try") 2>&5 |
| 32751 | ac_status=$? |
| 32752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32753 | (exit $ac_status); }; } && |
| 32754 | { ac_try='test -s conftest.$ac_objext' |
| 32755 | { (case "(($ac_try" in |
| 32756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32757 | *) ac_try_echo=$ac_try;; |
| 32758 | esac |
| 32759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32760 | (eval "$ac_try") 2>&5 |
| 32761 | ac_status=$? |
| 32762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32763 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32764 | ac_cv_cxx_have_fwd_iterator=yes |
| 32765 | else |
| 32766 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32768 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32769 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32770 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32771 | |
| 32772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32773 | ac_ext=c |
| 32774 | ac_cpp='$CPP $CPPFLAGS' |
| 32775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32778 | |
| 32779 | |
| 32780 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32781 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 32782 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32783 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 32784 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32785 | |
| 32786 | cat >>confdefs.h <<\_ACEOF |
| 32787 | #define HAVE_FWD_ITERATOR 1 |
| 32788 | _ACEOF |
| 32789 | |
| 32790 | else |
| 32791 | |
| 32792 | cat >>confdefs.h <<\_ACEOF |
| 32793 | #define HAVE_FWD_ITERATOR 0 |
| 32794 | _ACEOF |
| 32795 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32796 | fi |
| 32797 | |
| 32798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32799 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 32800 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32801 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 32802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32803 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32804 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32805 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32806 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32807 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32808 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32809 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32810 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32811 | /* confdefs.h. */ |
| 32812 | _ACEOF |
| 32813 | cat confdefs.h >>conftest.$ac_ext |
| 32814 | cat >>conftest.$ac_ext <<_ACEOF |
| 32815 | /* end confdefs.h. */ |
| 32816 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32817 | int |
| 32818 | main () |
| 32819 | { |
| 32820 | float f; isnan(f); |
| 32821 | ; |
| 32822 | return 0; |
| 32823 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32824 | _ACEOF |
| 32825 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32826 | if { (ac_try="$ac_compile" |
| 32827 | case "(($ac_try" in |
| 32828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32829 | *) ac_try_echo=$ac_try;; |
| 32830 | esac |
| 32831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32832 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32833 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32835 | rm -f conftest.er1 |
| 32836 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32838 | (exit $ac_status); } && |
| 32839 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32840 | { (case "(($ac_try" in |
| 32841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32842 | *) ac_try_echo=$ac_try;; |
| 32843 | esac |
| 32844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32845 | (eval "$ac_try") 2>&5 |
| 32846 | ac_status=$? |
| 32847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32848 | (exit $ac_status); }; } && |
| 32849 | { ac_try='test -s conftest.$ac_objext' |
| 32850 | { (case "(($ac_try" in |
| 32851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32852 | *) ac_try_echo=$ac_try;; |
| 32853 | esac |
| 32854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32855 | (eval "$ac_try") 2>&5 |
| 32856 | ac_status=$? |
| 32857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32858 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32859 | ac_cv_func_isnan_in_math_h=yes |
| 32860 | else |
| 32861 | echo "$as_me: failed program was:" >&5 |
| 32862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32864 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32865 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32866 | |
| 32867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32868 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32869 | ac_cpp='$CPP $CPPFLAGS' |
| 32870 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32871 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32872 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32873 | |
| 32874 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32875 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 32876 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32877 | |
| 32878 | |
| 32879 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32880 | |
| 32881 | cat >>confdefs.h <<\_ACEOF |
| 32882 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 32883 | _ACEOF |
| 32884 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32885 | fi |
| 32886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32887 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 32888 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32889 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 32890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32891 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32892 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32893 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32894 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32895 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32896 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32897 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32898 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32899 | /* confdefs.h. */ |
| 32900 | _ACEOF |
| 32901 | cat confdefs.h >>conftest.$ac_ext |
| 32902 | cat >>conftest.$ac_ext <<_ACEOF |
| 32903 | /* end confdefs.h. */ |
| 32904 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32905 | int |
| 32906 | main () |
| 32907 | { |
| 32908 | float f; isnan(f); |
| 32909 | ; |
| 32910 | return 0; |
| 32911 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32912 | _ACEOF |
| 32913 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32914 | if { (ac_try="$ac_compile" |
| 32915 | case "(($ac_try" in |
| 32916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32917 | *) ac_try_echo=$ac_try;; |
| 32918 | esac |
| 32919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32920 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32921 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32923 | rm -f conftest.er1 |
| 32924 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32926 | (exit $ac_status); } && |
| 32927 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32928 | { (case "(($ac_try" in |
| 32929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32930 | *) ac_try_echo=$ac_try;; |
| 32931 | esac |
| 32932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32933 | (eval "$ac_try") 2>&5 |
| 32934 | ac_status=$? |
| 32935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32936 | (exit $ac_status); }; } && |
| 32937 | { ac_try='test -s conftest.$ac_objext' |
| 32938 | { (case "(($ac_try" in |
| 32939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32940 | *) ac_try_echo=$ac_try;; |
| 32941 | esac |
| 32942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32943 | (eval "$ac_try") 2>&5 |
| 32944 | ac_status=$? |
| 32945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32946 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32947 | ac_cv_func_isnan_in_cmath=yes |
| 32948 | else |
| 32949 | echo "$as_me: failed program was:" >&5 |
| 32950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32952 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32953 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32954 | |
| 32955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32956 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32957 | ac_cpp='$CPP $CPPFLAGS' |
| 32958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32961 | |
| 32962 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32963 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 32964 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32965 | |
| 32966 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32967 | |
| 32968 | cat >>confdefs.h <<\_ACEOF |
| 32969 | #define HAVE_ISNAN_IN_CMATH 1 |
| 32970 | _ACEOF |
| 32971 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32972 | fi |
| 32973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32974 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 32975 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32976 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 32977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32978 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32979 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32980 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32981 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32982 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32983 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32984 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32985 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32986 | /* confdefs.h. */ |
| 32987 | _ACEOF |
| 32988 | cat confdefs.h >>conftest.$ac_ext |
| 32989 | cat >>conftest.$ac_ext <<_ACEOF |
| 32990 | /* end confdefs.h. */ |
| 32991 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32992 | int |
| 32993 | main () |
| 32994 | { |
| 32995 | float f; std::isnan(f); |
| 32996 | ; |
| 32997 | return 0; |
| 32998 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32999 | _ACEOF |
| 33000 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33001 | if { (ac_try="$ac_compile" |
| 33002 | case "(($ac_try" in |
| 33003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33004 | *) ac_try_echo=$ac_try;; |
| 33005 | esac |
| 33006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33007 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33008 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33010 | rm -f conftest.er1 |
| 33011 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33013 | (exit $ac_status); } && |
| 33014 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33015 | { (case "(($ac_try" in |
| 33016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33017 | *) ac_try_echo=$ac_try;; |
| 33018 | esac |
| 33019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33020 | (eval "$ac_try") 2>&5 |
| 33021 | ac_status=$? |
| 33022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33023 | (exit $ac_status); }; } && |
| 33024 | { ac_try='test -s conftest.$ac_objext' |
| 33025 | { (case "(($ac_try" in |
| 33026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33027 | *) ac_try_echo=$ac_try;; |
| 33028 | esac |
| 33029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33030 | (eval "$ac_try") 2>&5 |
| 33031 | ac_status=$? |
| 33032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33033 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33034 | ac_cv_func_std_isnan_in_cmath=yes |
| 33035 | else |
| 33036 | echo "$as_me: failed program was:" >&5 |
| 33037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33039 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33040 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33041 | |
| 33042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33043 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33044 | ac_cpp='$CPP $CPPFLAGS' |
| 33045 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33046 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33047 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33048 | |
| 33049 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33050 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 33051 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33052 | |
| 33053 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33054 | |
| 33055 | cat >>confdefs.h <<\_ACEOF |
| 33056 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 33057 | _ACEOF |
| 33058 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33059 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33060 | |
| 33061 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33062 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 33063 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33064 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 33065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33066 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33067 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33068 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33069 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33070 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33071 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33072 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33073 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33074 | /* confdefs.h. */ |
| 33075 | _ACEOF |
| 33076 | cat confdefs.h >>conftest.$ac_ext |
| 33077 | cat >>conftest.$ac_ext <<_ACEOF |
| 33078 | /* end confdefs.h. */ |
| 33079 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33080 | int |
| 33081 | main () |
| 33082 | { |
| 33083 | float f; isinf(f); |
| 33084 | ; |
| 33085 | return 0; |
| 33086 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33087 | _ACEOF |
| 33088 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33089 | if { (ac_try="$ac_compile" |
| 33090 | case "(($ac_try" in |
| 33091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33092 | *) ac_try_echo=$ac_try;; |
| 33093 | esac |
| 33094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33095 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33096 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33098 | rm -f conftest.er1 |
| 33099 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33101 | (exit $ac_status); } && |
| 33102 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 33109 | ac_status=$? |
| 33110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33111 | (exit $ac_status); }; } && |
| 33112 | { ac_try='test -s conftest.$ac_objext' |
| 33113 | { (case "(($ac_try" in |
| 33114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33115 | *) ac_try_echo=$ac_try;; |
| 33116 | esac |
| 33117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33118 | (eval "$ac_try") 2>&5 |
| 33119 | ac_status=$? |
| 33120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33121 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33122 | ac_cv_func_isinf_in_math_h=yes |
| 33123 | else |
| 33124 | echo "$as_me: failed program was:" >&5 |
| 33125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33126 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33127 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33128 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33129 | |
| 33130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33131 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33132 | ac_cpp='$CPP $CPPFLAGS' |
| 33133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33136 | |
| 33137 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33138 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 33139 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33140 | |
| 33141 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33142 | |
| 33143 | cat >>confdefs.h <<\_ACEOF |
| 33144 | #define HAVE_ISINF_IN_MATH_H 1 |
| 33145 | _ACEOF |
| 33146 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33147 | fi |
| 33148 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33149 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 33150 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33151 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 33152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33153 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33154 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33155 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33156 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33157 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33158 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33159 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33160 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33161 | /* confdefs.h. */ |
| 33162 | _ACEOF |
| 33163 | cat confdefs.h >>conftest.$ac_ext |
| 33164 | cat >>conftest.$ac_ext <<_ACEOF |
| 33165 | /* end confdefs.h. */ |
| 33166 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33167 | int |
| 33168 | main () |
| 33169 | { |
| 33170 | float f; isinf(f); |
| 33171 | ; |
| 33172 | return 0; |
| 33173 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33174 | _ACEOF |
| 33175 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33176 | if { (ac_try="$ac_compile" |
| 33177 | case "(($ac_try" in |
| 33178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33179 | *) ac_try_echo=$ac_try;; |
| 33180 | esac |
| 33181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33182 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33183 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33185 | rm -f conftest.er1 |
| 33186 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33188 | (exit $ac_status); } && |
| 33189 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33190 | { (case "(($ac_try" in |
| 33191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33192 | *) ac_try_echo=$ac_try;; |
| 33193 | esac |
| 33194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33195 | (eval "$ac_try") 2>&5 |
| 33196 | ac_status=$? |
| 33197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33198 | (exit $ac_status); }; } && |
| 33199 | { ac_try='test -s conftest.$ac_objext' |
| 33200 | { (case "(($ac_try" in |
| 33201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33202 | *) ac_try_echo=$ac_try;; |
| 33203 | esac |
| 33204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33205 | (eval "$ac_try") 2>&5 |
| 33206 | ac_status=$? |
| 33207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33208 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33209 | ac_cv_func_isinf_in_cmath=yes |
| 33210 | else |
| 33211 | echo "$as_me: failed program was:" >&5 |
| 33212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33214 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33215 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33216 | |
| 33217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33218 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33219 | ac_cpp='$CPP $CPPFLAGS' |
| 33220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33223 | |
| 33224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33225 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 33226 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33227 | |
| 33228 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33229 | |
| 33230 | cat >>confdefs.h <<\_ACEOF |
| 33231 | #define HAVE_ISINF_IN_CMATH 1 |
| 33232 | _ACEOF |
| 33233 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33234 | fi |
| 33235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33236 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 33237 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33238 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 33239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33240 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33241 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33242 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33243 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33244 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33245 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33246 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33247 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33248 | /* confdefs.h. */ |
| 33249 | _ACEOF |
| 33250 | cat confdefs.h >>conftest.$ac_ext |
| 33251 | cat >>conftest.$ac_ext <<_ACEOF |
| 33252 | /* end confdefs.h. */ |
| 33253 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33254 | int |
| 33255 | main () |
| 33256 | { |
| 33257 | float f; std::isinf(f)} |
| 33258 | ; |
| 33259 | return 0; |
| 33260 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33261 | _ACEOF |
| 33262 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33263 | if { (ac_try="$ac_compile" |
| 33264 | case "(($ac_try" in |
| 33265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33266 | *) ac_try_echo=$ac_try;; |
| 33267 | esac |
| 33268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33269 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33270 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33272 | rm -f conftest.er1 |
| 33273 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33275 | (exit $ac_status); } && |
| 33276 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33277 | { (case "(($ac_try" in |
| 33278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33279 | *) ac_try_echo=$ac_try;; |
| 33280 | esac |
| 33281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33282 | (eval "$ac_try") 2>&5 |
| 33283 | ac_status=$? |
| 33284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33285 | (exit $ac_status); }; } && |
| 33286 | { ac_try='test -s conftest.$ac_objext' |
| 33287 | { (case "(($ac_try" in |
| 33288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33289 | *) ac_try_echo=$ac_try;; |
| 33290 | esac |
| 33291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33292 | (eval "$ac_try") 2>&5 |
| 33293 | ac_status=$? |
| 33294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33295 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33296 | ac_cv_func_std_isinf_in_cmath=yes |
| 33297 | else |
| 33298 | echo "$as_me: failed program was:" >&5 |
| 33299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33301 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33302 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33303 | |
| 33304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33305 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33306 | ac_cpp='$CPP $CPPFLAGS' |
| 33307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33310 | |
| 33311 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33312 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 33313 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33314 | |
| 33315 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33316 | |
| 33317 | cat >>confdefs.h <<\_ACEOF |
| 33318 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 33319 | _ACEOF |
| 33320 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33321 | fi |
| 33322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33323 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 33324 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33325 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 33326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33327 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33328 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33329 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33330 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33331 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33332 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33333 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33334 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33335 | /* confdefs.h. */ |
| 33336 | _ACEOF |
| 33337 | cat confdefs.h >>conftest.$ac_ext |
| 33338 | cat >>conftest.$ac_ext <<_ACEOF |
| 33339 | /* end confdefs.h. */ |
| 33340 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33341 | int |
| 33342 | main () |
| 33343 | { |
| 33344 | float f; finite(f); |
| 33345 | ; |
| 33346 | return 0; |
| 33347 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33348 | _ACEOF |
| 33349 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33350 | if { (ac_try="$ac_compile" |
| 33351 | case "(($ac_try" in |
| 33352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33353 | *) ac_try_echo=$ac_try;; |
| 33354 | esac |
| 33355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33356 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33357 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33359 | rm -f conftest.er1 |
| 33360 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33362 | (exit $ac_status); } && |
| 33363 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33364 | { (case "(($ac_try" in |
| 33365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33366 | *) ac_try_echo=$ac_try;; |
| 33367 | esac |
| 33368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33369 | (eval "$ac_try") 2>&5 |
| 33370 | ac_status=$? |
| 33371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33372 | (exit $ac_status); }; } && |
| 33373 | { ac_try='test -s conftest.$ac_objext' |
| 33374 | { (case "(($ac_try" in |
| 33375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33376 | *) ac_try_echo=$ac_try;; |
| 33377 | esac |
| 33378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33379 | (eval "$ac_try") 2>&5 |
| 33380 | ac_status=$? |
| 33381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33382 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33383 | ac_cv_func_finite_in_ieeefp_h=yes |
| 33384 | else |
| 33385 | echo "$as_me: failed program was:" >&5 |
| 33386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33388 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33389 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33390 | |
| 33391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33392 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33393 | ac_cpp='$CPP $CPPFLAGS' |
| 33394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33397 | |
| 33398 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33399 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 33400 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33401 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 33402 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33403 | |
| 33404 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 33405 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33406 | _ACEOF |
| 33407 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33408 | fi |
| 33409 | |
| 33410 | |
| 33411 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33412 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33413 | |
| 33414 | |
| 33415 | for ac_header in stdlib.h unistd.h |
| 33416 | do |
| 33417 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33418 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 33419 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 33420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 33421 | 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] | 33422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33423 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33424 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 33425 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33426 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33427 | else |
| 33428 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33429 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 33430 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33431 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33432 | /* confdefs.h. */ |
| 33433 | _ACEOF |
| 33434 | cat confdefs.h >>conftest.$ac_ext |
| 33435 | cat >>conftest.$ac_ext <<_ACEOF |
| 33436 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33437 | $ac_includes_default |
| 33438 | #include <$ac_header> |
| 33439 | _ACEOF |
| 33440 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33441 | if { (ac_try="$ac_compile" |
| 33442 | case "(($ac_try" in |
| 33443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33444 | *) ac_try_echo=$ac_try;; |
| 33445 | esac |
| 33446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33447 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33448 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33450 | rm -f conftest.er1 |
| 33451 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33453 | (exit $ac_status); } && |
| 33454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33455 | { (case "(($ac_try" in |
| 33456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33457 | *) ac_try_echo=$ac_try;; |
| 33458 | esac |
| 33459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33460 | (eval "$ac_try") 2>&5 |
| 33461 | ac_status=$? |
| 33462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33463 | (exit $ac_status); }; } && |
| 33464 | { ac_try='test -s conftest.$ac_objext' |
| 33465 | { (case "(($ac_try" in |
| 33466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33467 | *) ac_try_echo=$ac_try;; |
| 33468 | esac |
| 33469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33470 | (eval "$ac_try") 2>&5 |
| 33471 | ac_status=$? |
| 33472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33473 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33474 | ac_header_compiler=yes |
| 33475 | else |
| 33476 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33479 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33480 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33481 | |
| 33482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33483 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 33484 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33485 | |
| 33486 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33487 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 33488 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33489 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33490 | /* confdefs.h. */ |
| 33491 | _ACEOF |
| 33492 | cat confdefs.h >>conftest.$ac_ext |
| 33493 | cat >>conftest.$ac_ext <<_ACEOF |
| 33494 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33495 | #include <$ac_header> |
| 33496 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33497 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 33498 | case "(($ac_try" in |
| 33499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33500 | *) ac_try_echo=$ac_try;; |
| 33501 | esac |
| 33502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33503 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33504 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33505 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33506 | rm -f conftest.er1 |
| 33507 | cat conftest.err >&5 |
| 33508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33509 | (exit $ac_status); } >/dev/null; then |
| 33510 | if test -s conftest.err; then |
| 33511 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 33512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 33513 | else |
| 33514 | ac_cpp_err= |
| 33515 | fi |
| 33516 | else |
| 33517 | ac_cpp_err=yes |
| 33518 | fi |
| 33519 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33520 | ac_header_preproc=yes |
| 33521 | else |
| 33522 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33524 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33525 | ac_header_preproc=no |
| 33526 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33527 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33528 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33529 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 33530 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33531 | |
| 33532 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33533 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 33534 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33535 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 33536 | 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] | 33537 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 33538 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 33539 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33540 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33541 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33542 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 33543 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33544 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 33545 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 33546 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 33547 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 33548 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 33549 | 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] | 33550 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 33551 | 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] | 33552 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 33553 | 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] | 33554 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33555 | ## ----------------------------------- ## |
| 33556 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 33557 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33558 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33559 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33560 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33561 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33562 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 33563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 33564 | 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] | 33565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33566 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33567 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33568 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33569 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 33570 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33571 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33572 | |
| 33573 | fi |
| 33574 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 33575 | cat >>confdefs.h <<_ACEOF |
| 33576 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 33577 | _ACEOF |
| 33578 | |
| 33579 | fi |
| 33580 | |
| 33581 | done |
| 33582 | |
| 33583 | |
| 33584 | for ac_func in getpagesize |
| 33585 | do |
| 33586 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33587 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 33588 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 33589 | 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] | 33590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33591 | else |
| 33592 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33593 | /* confdefs.h. */ |
| 33594 | _ACEOF |
| 33595 | cat confdefs.h >>conftest.$ac_ext |
| 33596 | cat >>conftest.$ac_ext <<_ACEOF |
| 33597 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33598 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 33599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33600 | #define $ac_func innocuous_$ac_func |
| 33601 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33602 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33603 | which can conflict with char $ac_func (); below. |
| 33604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33605 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33606 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33607 | #ifdef __STDC__ |
| 33608 | # include <limits.h> |
| 33609 | #else |
| 33610 | # include <assert.h> |
| 33611 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33612 | |
| 33613 | #undef $ac_func |
| 33614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33615 | /* Override any GCC internal prototype to avoid an error. |
| 33616 | Use char because int might match the return type of a GCC |
| 33617 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33618 | #ifdef __cplusplus |
| 33619 | extern "C" |
| 33620 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33621 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33622 | /* The GNU C library defines this for functions which it implements |
| 33623 | to always fail with ENOSYS. Some functions are actually named |
| 33624 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33625 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33626 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33627 | #endif |
| 33628 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33629 | int |
| 33630 | main () |
| 33631 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33632 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33633 | ; |
| 33634 | return 0; |
| 33635 | } |
| 33636 | _ACEOF |
| 33637 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33638 | if { (ac_try="$ac_link" |
| 33639 | case "(($ac_try" in |
| 33640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33641 | *) ac_try_echo=$ac_try;; |
| 33642 | esac |
| 33643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33644 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33645 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33647 | rm -f conftest.er1 |
| 33648 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33650 | (exit $ac_status); } && |
| 33651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33652 | { (case "(($ac_try" in |
| 33653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33654 | *) ac_try_echo=$ac_try;; |
| 33655 | esac |
| 33656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33657 | (eval "$ac_try") 2>&5 |
| 33658 | ac_status=$? |
| 33659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33660 | (exit $ac_status); }; } && |
| 33661 | { ac_try='test -s conftest$ac_exeext' |
| 33662 | { (case "(($ac_try" in |
| 33663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33664 | *) ac_try_echo=$ac_try;; |
| 33665 | esac |
| 33666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33667 | (eval "$ac_try") 2>&5 |
| 33668 | ac_status=$? |
| 33669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33670 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33671 | eval "$as_ac_var=yes" |
| 33672 | else |
| 33673 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33675 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33676 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33677 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33678 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33679 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33680 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33682 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33683 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33684 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33685 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33686 | cat >>confdefs.h <<_ACEOF |
| 33687 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 33688 | _ACEOF |
| 33689 | |
| 33690 | fi |
| 33691 | done |
| 33692 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33693 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 33694 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33695 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 33696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33697 | else |
| 33698 | if test "$cross_compiling" = yes; then |
| 33699 | ac_cv_func_mmap_fixed_mapped=no |
| 33700 | else |
| 33701 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33702 | /* confdefs.h. */ |
| 33703 | _ACEOF |
| 33704 | cat confdefs.h >>conftest.$ac_ext |
| 33705 | cat >>conftest.$ac_ext <<_ACEOF |
| 33706 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33707 | $ac_includes_default |
| 33708 | /* malloc might have been renamed as rpl_malloc. */ |
| 33709 | #undef malloc |
| 33710 | |
| 33711 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 33712 | Here is a matrix of mmap possibilities: |
| 33713 | mmap private not fixed |
| 33714 | mmap private fixed at somewhere currently unmapped |
| 33715 | mmap private fixed at somewhere already mapped |
| 33716 | mmap shared not fixed |
| 33717 | mmap shared fixed at somewhere currently unmapped |
| 33718 | mmap shared fixed at somewhere already mapped |
| 33719 | For private mappings, we should verify that changes cannot be read() |
| 33720 | back from the file, nor mmap's back from the file at a different |
| 33721 | address. (There have been systems where private was not correctly |
| 33722 | implemented like the infamous i386 svr4.0, and systems where the |
| 33723 | VM page cache was not coherent with the file system buffer cache |
| 33724 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 33725 | For shared mappings, we should conversely verify that changes get |
| 33726 | propagated back to all the places they're supposed to be. |
| 33727 | |
| 33728 | Grep wants private fixed already mapped. |
| 33729 | The main things grep needs to know about mmap are: |
| 33730 | * does it exist and is it safe to write into the mmap'd area |
| 33731 | * how to use it (BSD variants) */ |
| 33732 | |
| 33733 | #include <fcntl.h> |
| 33734 | #include <sys/mman.h> |
| 33735 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33736 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33737 | char *malloc (); |
| 33738 | #endif |
| 33739 | |
| 33740 | /* This mess was copied from the GNU getpagesize.h. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33741 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33742 | /* Assume that all systems that can run configure have sys/param.h. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33743 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33744 | # define HAVE_SYS_PARAM_H 1 |
| 33745 | # endif |
| 33746 | |
| 33747 | # ifdef _SC_PAGESIZE |
| 33748 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 33749 | # else /* no _SC_PAGESIZE */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33750 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33751 | # include <sys/param.h> |
| 33752 | # ifdef EXEC_PAGESIZE |
| 33753 | # define getpagesize() EXEC_PAGESIZE |
| 33754 | # else /* no EXEC_PAGESIZE */ |
| 33755 | # ifdef NBPG |
| 33756 | # define getpagesize() NBPG * CLSIZE |
| 33757 | # ifndef CLSIZE |
| 33758 | # define CLSIZE 1 |
| 33759 | # endif /* no CLSIZE */ |
| 33760 | # else /* no NBPG */ |
| 33761 | # ifdef NBPC |
| 33762 | # define getpagesize() NBPC |
| 33763 | # else /* no NBPC */ |
| 33764 | # ifdef PAGESIZE |
| 33765 | # define getpagesize() PAGESIZE |
| 33766 | # endif /* PAGESIZE */ |
| 33767 | # endif /* no NBPC */ |
| 33768 | # endif /* no NBPG */ |
| 33769 | # endif /* no EXEC_PAGESIZE */ |
| 33770 | # else /* no HAVE_SYS_PARAM_H */ |
| 33771 | # define getpagesize() 8192 /* punt totally */ |
| 33772 | # endif /* no HAVE_SYS_PARAM_H */ |
| 33773 | # endif /* no _SC_PAGESIZE */ |
| 33774 | |
| 33775 | #endif /* no HAVE_GETPAGESIZE */ |
| 33776 | |
| 33777 | int |
| 33778 | main () |
| 33779 | { |
| 33780 | char *data, *data2, *data3; |
| 33781 | int i, pagesize; |
| 33782 | int fd; |
| 33783 | |
| 33784 | pagesize = getpagesize (); |
| 33785 | |
| 33786 | /* First, make a file with some known garbage in it. */ |
| 33787 | data = (char *) malloc (pagesize); |
| 33788 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33789 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33790 | for (i = 0; i < pagesize; ++i) |
| 33791 | *(data + i) = rand (); |
| 33792 | umask (0); |
| 33793 | fd = creat ("conftest.mmap", 0600); |
| 33794 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33795 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33796 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33797 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33798 | close (fd); |
| 33799 | |
| 33800 | /* Next, try to mmap the file at a fixed address which already has |
| 33801 | something else allocated at it. If we can, also make sure that |
| 33802 | we see the same garbage. */ |
| 33803 | fd = open ("conftest.mmap", O_RDWR); |
| 33804 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33805 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33806 | data2 = (char *) malloc (2 * pagesize); |
| 33807 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33808 | return 1; |
| 33809 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33810 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33811 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33812 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33813 | for (i = 0; i < pagesize; ++i) |
| 33814 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33815 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33816 | |
| 33817 | /* Finally, make sure that changes to the mapped area do not |
| 33818 | percolate back to the file as seen by read(). (This is a bug on |
| 33819 | some variants of i386 svr4.0.) */ |
| 33820 | for (i = 0; i < pagesize; ++i) |
| 33821 | *(data2 + i) = *(data2 + i) + 1; |
| 33822 | data3 = (char *) malloc (pagesize); |
| 33823 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33824 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33825 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33826 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33827 | for (i = 0; i < pagesize; ++i) |
| 33828 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33829 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33830 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33831 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33832 | } |
| 33833 | _ACEOF |
| 33834 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33835 | if { (ac_try="$ac_link" |
| 33836 | case "(($ac_try" in |
| 33837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33838 | *) ac_try_echo=$ac_try;; |
| 33839 | esac |
| 33840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33841 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33842 | ac_status=$? |
| 33843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33844 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33845 | { (case "(($ac_try" in |
| 33846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33847 | *) ac_try_echo=$ac_try;; |
| 33848 | esac |
| 33849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33850 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33851 | ac_status=$? |
| 33852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33853 | (exit $ac_status); }; }; then |
| 33854 | ac_cv_func_mmap_fixed_mapped=yes |
| 33855 | else |
| 33856 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33857 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33859 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33860 | ( exit $ac_status ) |
| 33861 | ac_cv_func_mmap_fixed_mapped=no |
| 33862 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33863 | 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] | 33864 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33865 | |
| 33866 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33867 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33868 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 33869 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33870 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 33871 | |
| 33872 | cat >>confdefs.h <<\_ACEOF |
| 33873 | #define HAVE_MMAP 1 |
| 33874 | _ACEOF |
| 33875 | |
| 33876 | fi |
| 33877 | rm -f conftest.mmap |
| 33878 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33879 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33880 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33881 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 33882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33883 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33884 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33885 | ac_cpp='$CPP $CPPFLAGS' |
| 33886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33889 | |
| 33890 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33891 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33892 | else |
| 33893 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33894 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33895 | /* confdefs.h. */ |
| 33896 | _ACEOF |
| 33897 | cat confdefs.h >>conftest.$ac_ext |
| 33898 | cat >>conftest.$ac_ext <<_ACEOF |
| 33899 | /* end confdefs.h. */ |
| 33900 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33901 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33902 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33903 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33904 | |
| 33905 | int |
| 33906 | main () |
| 33907 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33908 | |
| 33909 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33910 | fd = creat ("foo",0777); |
| 33911 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 33912 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33913 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33914 | ; |
| 33915 | return 0; |
| 33916 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33917 | _ACEOF |
| 33918 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33919 | if { (ac_try="$ac_link" |
| 33920 | case "(($ac_try" in |
| 33921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33922 | *) ac_try_echo=$ac_try;; |
| 33923 | esac |
| 33924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33925 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33926 | ac_status=$? |
| 33927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33929 | { (case "(($ac_try" in |
| 33930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33931 | *) ac_try_echo=$ac_try;; |
| 33932 | esac |
| 33933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33934 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33935 | ac_status=$? |
| 33936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33937 | (exit $ac_status); }; }; then |
| 33938 | ac_cv_func_mmap_file=yes |
| 33939 | else |
| 33940 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33941 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33943 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33944 | ( exit $ac_status ) |
| 33945 | ac_cv_func_mmap_file=no |
| 33946 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33947 | 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] | 33948 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33949 | |
| 33950 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33951 | ac_ext=c |
| 33952 | ac_cpp='$CPP $CPPFLAGS' |
| 33953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33956 | |
| 33957 | |
| 33958 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33959 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 33960 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33961 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33962 | |
| 33963 | cat >>confdefs.h <<\_ACEOF |
| 33964 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33965 | _ACEOF |
| 33966 | |
| 33967 | MMAP_FILE=yes |
| 33968 | |
| 33969 | fi |
| 33970 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33971 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33972 | 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] | 33973 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 33974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33975 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33976 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33977 | ac_cv_need_dev_zero_for_mmap=yes |
| 33978 | else |
| 33979 | ac_cv_need_dev_zero_for_mmap=no |
| 33980 | fi |
| 33981 | |
| 33982 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33983 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 33984 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33985 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 33986 | |
| 33987 | cat >>confdefs.h <<\_ACEOF |
| 33988 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 33989 | _ACEOF |
| 33990 | |
| 33991 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33992 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33993 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 33994 | then |
| 33995 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33996 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33997 | fi |
| 33998 | if test "$ac_cv_func_mmap_file" = "no" |
| 33999 | then |
| 34000 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34001 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34002 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 34003 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34004 | |
| 34005 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34006 | |
| 34007 | for ac_func in __dso_handle |
| 34008 | do |
| 34009 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 34010 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34011 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34012 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34014 | else |
| 34015 | cat >conftest.$ac_ext <<_ACEOF |
| 34016 | /* confdefs.h. */ |
| 34017 | _ACEOF |
| 34018 | cat confdefs.h >>conftest.$ac_ext |
| 34019 | cat >>conftest.$ac_ext <<_ACEOF |
| 34020 | /* end confdefs.h. */ |
| 34021 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34022 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34023 | #define $ac_func innocuous_$ac_func |
| 34024 | |
| 34025 | /* System header to define __stub macros and hopefully few prototypes, |
| 34026 | which can conflict with char $ac_func (); below. |
| 34027 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34028 | <limits.h> exists even on freestanding compilers. */ |
| 34029 | |
| 34030 | #ifdef __STDC__ |
| 34031 | # include <limits.h> |
| 34032 | #else |
| 34033 | # include <assert.h> |
| 34034 | #endif |
| 34035 | |
| 34036 | #undef $ac_func |
| 34037 | |
| 34038 | /* Override any GCC internal prototype to avoid an error. |
| 34039 | Use char because int might match the return type of a GCC |
| 34040 | builtin and then its argument prototype would still apply. */ |
| 34041 | #ifdef __cplusplus |
| 34042 | extern "C" |
| 34043 | #endif |
| 34044 | char $ac_func (); |
| 34045 | /* The GNU C library defines this for functions which it implements |
| 34046 | to always fail with ENOSYS. Some functions are actually named |
| 34047 | something starting with __ and the normal name is an alias. */ |
| 34048 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 34049 | choke me |
| 34050 | #endif |
| 34051 | |
| 34052 | int |
| 34053 | main () |
| 34054 | { |
| 34055 | return $ac_func (); |
| 34056 | ; |
| 34057 | return 0; |
| 34058 | } |
| 34059 | _ACEOF |
| 34060 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34061 | if { (ac_try="$ac_link" |
| 34062 | case "(($ac_try" in |
| 34063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34064 | *) ac_try_echo=$ac_try;; |
| 34065 | esac |
| 34066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34067 | (eval "$ac_link") 2>conftest.er1 |
| 34068 | ac_status=$? |
| 34069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34070 | rm -f conftest.er1 |
| 34071 | cat conftest.err >&5 |
| 34072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34073 | (exit $ac_status); } && |
| 34074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34075 | { (case "(($ac_try" in |
| 34076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34077 | *) ac_try_echo=$ac_try;; |
| 34078 | esac |
| 34079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34080 | (eval "$ac_try") 2>&5 |
| 34081 | ac_status=$? |
| 34082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34083 | (exit $ac_status); }; } && |
| 34084 | { ac_try='test -s conftest$ac_exeext' |
| 34085 | { (case "(($ac_try" in |
| 34086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34087 | *) ac_try_echo=$ac_try;; |
| 34088 | esac |
| 34089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34090 | (eval "$ac_try") 2>&5 |
| 34091 | ac_status=$? |
| 34092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34093 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34094 | eval "$as_ac_var=yes" |
| 34095 | else |
| 34096 | echo "$as_me: failed program was:" >&5 |
| 34097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34098 | |
| 34099 | eval "$as_ac_var=no" |
| 34100 | fi |
| 34101 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34102 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34103 | conftest$ac_exeext conftest.$ac_ext |
| 34104 | fi |
| 34105 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34106 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34107 | echo "${ECHO_T}$ac_res" >&6; } |
| 34108 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34109 | cat >>confdefs.h <<_ACEOF |
| 34110 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34111 | _ACEOF |
| 34112 | |
| 34113 | fi |
| 34114 | done |
| 34115 | |
| 34116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34117 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 34118 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34119 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 34120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34121 | else |
| 34122 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34123 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34124 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 34125 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 34126 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34127 | if test $? -eq 0 ; then |
| 34128 | llvm_cv_llvmgcc_sanity="yes" |
| 34129 | fi |
| 34130 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34131 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34132 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34133 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 34134 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34135 | |
| 34136 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34137 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 34138 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34139 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34140 | LLVMCC1=$llvmcc1path |
| 34141 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34142 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34143 | LLVMCC1PLUS=$llvmcc1pluspath |
| 34144 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34145 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 34146 | LLVMGCCDIR=$llvmgccdir |
| 34147 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 34148 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 34149 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 34150 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 34151 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 34152 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 34153 | LLVMGCC_VERSION=$llvmgccversion |
| 34154 | |
| 34155 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 34156 | |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34157 | llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'` |
| 34158 | LLVMGCC_LANGS=$llvmgcclangs |
| 34159 | |
| 34160 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 34161 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34162 | fi |
| 34163 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34164 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 34165 | |
| 34166 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34167 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34168 | # information into substitutions that will end up in Makefile.config.in |
| 34169 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 34170 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 34171 | prefix="/usr/local" |
| 34172 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34173 | eval LLVM_PREFIX="${prefix}"; |
| 34174 | eval LLVM_BINDIR="${prefix}/bin"; |
| 34175 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34176 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 34177 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 34178 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34179 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 34180 | eval LLVM_INFODIR="${prefix}/info"; |
| 34181 | eval LLVM_MANDIR="${prefix}/man"; |
| 34182 | LLVM_CONFIGTIME=`date` |
| 34183 | |
| 34184 | |
| 34185 | |
| 34186 | |
| 34187 | |
| 34188 | |
| 34189 | |
| 34190 | |
| 34191 | |
| 34192 | |
| 34193 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34194 | # Place the various directores into the config.h file as #defines so that we |
| 34195 | # can know about the installation paths within LLVM. |
| 34196 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34197 | cat >>confdefs.h <<_ACEOF |
| 34198 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 34199 | _ACEOF |
| 34200 | |
| 34201 | |
| 34202 | cat >>confdefs.h <<_ACEOF |
| 34203 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 34204 | _ACEOF |
| 34205 | |
| 34206 | |
| 34207 | cat >>confdefs.h <<_ACEOF |
| 34208 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 34209 | _ACEOF |
| 34210 | |
| 34211 | |
| 34212 | cat >>confdefs.h <<_ACEOF |
| 34213 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 34214 | _ACEOF |
| 34215 | |
| 34216 | |
| 34217 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 34218 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34219 | _ACEOF |
| 34220 | |
| 34221 | |
| 34222 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 34223 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34224 | _ACEOF |
| 34225 | |
| 34226 | |
| 34227 | cat >>confdefs.h <<_ACEOF |
| 34228 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 34229 | _ACEOF |
| 34230 | |
| 34231 | |
| 34232 | cat >>confdefs.h <<_ACEOF |
| 34233 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 34234 | _ACEOF |
| 34235 | |
| 34236 | |
| 34237 | cat >>confdefs.h <<_ACEOF |
| 34238 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 34239 | _ACEOF |
| 34240 | |
| 34241 | |
| 34242 | cat >>confdefs.h <<_ACEOF |
| 34243 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 34244 | _ACEOF |
| 34245 | |
| 34246 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 34247 | cat >>confdefs.h <<_ACEOF |
| 34248 | #define LLVM_HOSTTRIPLE "$host" |
| 34249 | _ACEOF |
| 34250 | |
| 34251 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 34252 | # Determine which bindings to build. |
| 34253 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 34254 | BINDINGS_TO_BUILD="" |
| 34255 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 34256 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 34257 | fi |
| 34258 | fi |
| 34259 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 34260 | |
| 34261 | |
| 34262 | # This isn't really configurey, but it avoids having to repeat the list in |
| 34263 | # other files. |
| 34264 | ALL_BINDINGS=ocaml |
| 34265 | |
| 34266 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 34267 | # Do any work necessary to ensure that bindings have what they need. |
| 34268 | binding_prereqs_failed=0 |
| 34269 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 34270 | case "$a_binding" in |
| 34271 | ocaml) |
| 34272 | if test "x$OCAMLC" = x ; then |
| 34273 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 34274 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 34275 | binding_prereqs_failed=1 |
| 34276 | fi |
| 34277 | if test "x$OCAMLDEP" = x ; then |
| 34278 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 34279 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 34280 | binding_prereqs_failed=1 |
| 34281 | fi |
| 34282 | if test "x$OCAMLOPT" = x ; then |
| 34283 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 34284 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 34285 | fi |
| 34286 | if test "x$with_ocaml_libdir" != xauto ; then |
| 34287 | OCAML_LIBDIR=$with_ocaml_libdir |
| 34288 | |
| 34289 | else |
| 34290 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 34291 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 34292 | then |
| 34293 | # ocaml stdlib is beneath our prefix; use stdlib |
| 34294 | OCAML_LIBDIR=$ocaml_stdlib |
| 34295 | |
| 34296 | else |
| 34297 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 34298 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 34299 | |
| 34300 | fi |
| 34301 | fi |
| 34302 | ;; |
| 34303 | esac |
| 34304 | done |
| 34305 | if test "$binding_prereqs_failed" = 1 ; then |
| 34306 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 34307 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 34308 | { (exit 1); exit 1; }; } |
| 34309 | fi |
| 34310 | |
| 34311 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34313 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34315 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34316 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34317 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34319 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34321 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34322 | |
| 34323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34324 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34325 | |
| 34326 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34327 | ac_config_files="$ac_config_files llvm.spec" |
| 34328 | |
| 34329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34330 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34331 | |
| 34332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34333 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 34334 | |
| 34335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34336 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34338 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34339 | |
| 34340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34341 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34342 | |
| 34343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34344 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34345 | |
| 34346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34347 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34348 | |
| 34349 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34350 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 34351 | |
| 34352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34353 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34354 | |
| 34355 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34356 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34357 | |
| 34358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34359 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34360 | |
| 34361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34362 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34363 | |
| 34364 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34365 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34366 | |
| 34367 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 34368 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 34369 | |
| 34370 | |
| 34371 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 34372 | |
| 34373 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34374 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34375 | cat >confcache <<\_ACEOF |
| 34376 | # This file is a shell script that caches the results of configure |
| 34377 | # tests run on this system so they can be shared between configure |
| 34378 | # scripts and configure runs, see configure's option --config-cache. |
| 34379 | # It is not useful on other systems. If it contains results you don't |
| 34380 | # want to keep, you may remove or edit it. |
| 34381 | # |
| 34382 | # config.status only pays attention to the cache file if you give it |
| 34383 | # the --recheck option to rerun configure. |
| 34384 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34385 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34386 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 34387 | # following values. |
| 34388 | |
| 34389 | _ACEOF |
| 34390 | |
| 34391 | # The following way of writing the cache mishandles newlines in values, |
| 34392 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34393 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34394 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 34395 | # 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] | 34396 | ( |
| 34397 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 34398 | eval ac_val=\$$ac_var |
| 34399 | case $ac_val in #( |
| 34400 | *${as_nl}*) |
| 34401 | case $ac_var in #( |
| 34402 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 34403 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 34404 | esac |
| 34405 | case $ac_var in #( |
| 34406 | _ | IFS | as_nl) ;; #( |
| 34407 | *) $as_unset $ac_var ;; |
| 34408 | esac ;; |
| 34409 | esac |
| 34410 | done |
| 34411 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34412 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34413 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 34414 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34415 | # `set' does not quote correctly, so add quotes (double-quote |
| 34416 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 34417 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34418 | "s/'/'\\\\''/g; |
| 34419 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34420 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34421 | *) |
| 34422 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34423 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34424 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34425 | esac | |
| 34426 | sort |
| 34427 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34428 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34429 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34430 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34431 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34432 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 34433 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34434 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 34435 | :end' >>confcache |
| 34436 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 34437 | if test -w "$cache_file"; then |
| 34438 | test "x$cache_file" != "x/dev/null" && |
| 34439 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 34440 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34441 | cat confcache >$cache_file |
| 34442 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34443 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 34444 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34445 | fi |
| 34446 | fi |
| 34447 | rm -f confcache |
| 34448 | |
| 34449 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 34450 | # Let make expand exec_prefix. |
| 34451 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 34452 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34453 | DEFS=-DHAVE_CONFIG_H |
| 34454 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34455 | ac_libobjs= |
| 34456 | ac_ltlibobjs= |
| 34457 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 34458 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34459 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 34460 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 34461 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 34462 | # will be set to the directory where LIBOBJS objects are built. |
| 34463 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 34464 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34465 | done |
| 34466 | LIBOBJS=$ac_libobjs |
| 34467 | |
| 34468 | LTLIBOBJS=$ac_ltlibobjs |
| 34469 | |
| 34470 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34471 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 34472 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34473 | Usually this means the macro was only invoked conditionally." >&5 |
| 34474 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34475 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34476 | { (exit 1); exit 1; }; } |
| 34477 | fi |
| 34478 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 34479 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34480 | Usually this means the macro was only invoked conditionally." >&5 |
| 34481 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34482 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34483 | { (exit 1); exit 1; }; } |
| 34484 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34485 | |
| 34486 | : ${CONFIG_STATUS=./config.status} |
| 34487 | ac_clean_files_save=$ac_clean_files |
| 34488 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 34489 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 34490 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 34491 | cat >$CONFIG_STATUS <<_ACEOF |
| 34492 | #! $SHELL |
| 34493 | # Generated by $as_me. |
| 34494 | # Run this file to recreate the current configuration. |
| 34495 | # Compiler output produced by configure, useful for debugging |
| 34496 | # configure, is in config.log if it exists. |
| 34497 | |
| 34498 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34499 | ac_cs_recheck=false |
| 34500 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34501 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 34502 | _ACEOF |
| 34503 | |
| 34504 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34505 | ## --------------------- ## |
| 34506 | ## M4sh Initialization. ## |
| 34507 | ## --------------------- ## |
| 34508 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34509 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34510 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 34511 | emulate sh |
| 34512 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34513 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 34514 | # is contrary to our usage. Disable this feature. |
| 34515 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34516 | setopt NO_GLOB_SUBST |
| 34517 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34518 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34519 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34520 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 34521 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34522 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34524 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34525 | # Avoid depending upon Character Ranges. |
| 34526 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 34527 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34528 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 34529 | as_cr_digits='0123456789' |
| 34530 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 34531 | |
| 34532 | # The user is always right. |
| 34533 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34534 | echo "#! /bin/sh" >conf$$.sh |
| 34535 | echo "exit 0" >>conf$$.sh |
| 34536 | chmod +x conf$$.sh |
| 34537 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34538 | PATH_SEPARATOR=';' |
| 34539 | else |
| 34540 | PATH_SEPARATOR=: |
| 34541 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34542 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34543 | fi |
| 34544 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34545 | # Support unset when possible. |
| 34546 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 34547 | as_unset=unset |
| 34548 | else |
| 34549 | as_unset=false |
| 34550 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34552 | |
| 34553 | # IFS |
| 34554 | # We need space, tab and new line, in precisely that order. Quoting is |
| 34555 | # there to prevent editors from complaining about space-tab. |
| 34556 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 34557 | # splitting by setting IFS to empty value.) |
| 34558 | as_nl=' |
| 34559 | ' |
| 34560 | IFS=" "" $as_nl" |
| 34561 | |
| 34562 | # Find who we are. Look in the path if we contain no directory separator. |
| 34563 | case $0 in |
| 34564 | *[\\/]* ) as_myself=$0 ;; |
| 34565 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34566 | for as_dir in $PATH |
| 34567 | do |
| 34568 | IFS=$as_save_IFS |
| 34569 | test -z "$as_dir" && as_dir=. |
| 34570 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 34571 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34572 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34574 | ;; |
| 34575 | esac |
| 34576 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 34577 | # in which case we are not to be found in the path. |
| 34578 | if test "x$as_myself" = x; then |
| 34579 | as_myself=$0 |
| 34580 | fi |
| 34581 | if test ! -f "$as_myself"; then |
| 34582 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 34583 | { (exit 1); exit 1; } |
| 34584 | fi |
| 34585 | |
| 34586 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34587 | for as_var in ENV MAIL MAILPATH |
| 34588 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34589 | done |
| 34590 | PS1='$ ' |
| 34591 | PS2='> ' |
| 34592 | PS4='+ ' |
| 34593 | |
| 34594 | # NLS nuisances. |
| 34595 | for as_var in \ |
| 34596 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 34597 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 34598 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34599 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34600 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 34601 | eval $as_var=C; export $as_var |
| 34602 | else |
| 34603 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34604 | fi |
| 34605 | done |
| 34606 | |
| 34607 | # Required to use basename. |
| 34608 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34609 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 34610 | as_expr=expr |
| 34611 | else |
| 34612 | as_expr=false |
| 34613 | fi |
| 34614 | |
| 34615 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 34616 | as_basename=basename |
| 34617 | else |
| 34618 | as_basename=false |
| 34619 | fi |
| 34620 | |
| 34621 | |
| 34622 | # Name of the executable. |
| 34623 | as_me=`$as_basename -- "$0" || |
| 34624 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 34625 | X"$0" : 'X\(//\)$' \| \ |
| 34626 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 34627 | echo X/"$0" | |
| 34628 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 34629 | s//\1/ |
| 34630 | q |
| 34631 | } |
| 34632 | /^X\/\(\/\/\)$/{ |
| 34633 | s//\1/ |
| 34634 | q |
| 34635 | } |
| 34636 | /^X\/\(\/\).*/{ |
| 34637 | s//\1/ |
| 34638 | q |
| 34639 | } |
| 34640 | s/.*/./; q'` |
| 34641 | |
| 34642 | # CDPATH. |
| 34643 | $as_unset CDPATH |
| 34644 | |
| 34645 | |
| 34646 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34647 | as_lineno_1=$LINENO |
| 34648 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34649 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34650 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34651 | |
| 34652 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 34653 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34654 | # line-number line after each line using $LINENO; the second 'sed' |
| 34655 | # does the real work. The second script uses 'N' to pair each |
| 34656 | # line-number line with the line containing $LINENO, and appends |
| 34657 | # trailing '-' during substitution so that $LINENO is not a special |
| 34658 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34659 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34660 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 34661 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 34662 | sed -n ' |
| 34663 | p |
| 34664 | /[$]LINENO/= |
| 34665 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34666 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34667 | s/[$]LINENO.*/&-/ |
| 34668 | t lineno |
| 34669 | b |
| 34670 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34671 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34672 | :loop |
| 34673 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34674 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34675 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34676 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34677 | chmod +x "$as_me.lineno" || |
| 34678 | { 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] | 34679 | { (exit 1); exit 1; }; } |
| 34680 | |
| 34681 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 34682 | # (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] | 34683 | # original and so on. Autoconf is especially sensitive to this). |
| 34684 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34685 | # Exit status is that of the last command. |
| 34686 | exit |
| 34687 | } |
| 34688 | |
| 34689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34690 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 34691 | as_dirname=dirname |
| 34692 | else |
| 34693 | as_dirname=false |
| 34694 | fi |
| 34695 | |
| 34696 | ECHO_C= ECHO_N= ECHO_T= |
| 34697 | case `echo -n x` in |
| 34698 | -n*) |
| 34699 | case `echo 'x\c'` in |
| 34700 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 34701 | *) ECHO_C='\c';; |
| 34702 | esac;; |
| 34703 | *) |
| 34704 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34705 | esac |
| 34706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34707 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34708 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34709 | as_expr=expr |
| 34710 | else |
| 34711 | as_expr=false |
| 34712 | fi |
| 34713 | |
| 34714 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34715 | if test -d conf$$.dir; then |
| 34716 | rm -f conf$$.dir/conf$$.file |
| 34717 | else |
| 34718 | rm -f conf$$.dir |
| 34719 | mkdir conf$$.dir |
| 34720 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34721 | echo >conf$$.file |
| 34722 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34723 | as_ln_s='ln -s' |
| 34724 | # ... but there are two gotchas: |
| 34725 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 34726 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 34727 | # In both cases, we have to default to `cp -p'. |
| 34728 | 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] | 34729 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34730 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 34731 | as_ln_s=ln |
| 34732 | else |
| 34733 | as_ln_s='cp -p' |
| 34734 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34735 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 34736 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34737 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34738 | if mkdir -p . 2>/dev/null; then |
| 34739 | as_mkdir_p=: |
| 34740 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34741 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34742 | as_mkdir_p=false |
| 34743 | fi |
| 34744 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34745 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 34746 | # systems may use methods other than mode bits to determine executability. |
| 34747 | cat >conf$$.file <<_ASEOF |
| 34748 | #! /bin/sh |
| 34749 | exit 0 |
| 34750 | _ASEOF |
| 34751 | chmod +x conf$$.file |
| 34752 | if test -x conf$$.file >/dev/null 2>&1; then |
| 34753 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34754 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34755 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34756 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34757 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34758 | |
| 34759 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34760 | 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] | 34761 | |
| 34762 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34763 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34764 | |
| 34765 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34766 | exec 6>&1 |
| 34767 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34768 | # 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] | 34769 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34770 | # values after options handling. |
| 34771 | ac_log=" |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34772 | This file was extended by llvm $as_me 2.3svn, which was |
| 34773 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34774 | |
| 34775 | CONFIG_FILES = $CONFIG_FILES |
| 34776 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 34777 | CONFIG_LINKS = $CONFIG_LINKS |
| 34778 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 34779 | $ $0 $@ |
| 34780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34781 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 34782 | " |
| 34783 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34784 | _ACEOF |
| 34785 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34786 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34787 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34788 | config_files="$ac_config_files" |
| 34789 | config_headers="$ac_config_headers" |
| 34790 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34792 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34793 | |
| 34794 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34795 | ac_cs_usage="\ |
| 34796 | \`$as_me' instantiates files from templates according to the |
| 34797 | current configuration. |
| 34798 | |
| 34799 | Usage: $0 [OPTIONS] [FILE]... |
| 34800 | |
| 34801 | -h, --help print this help, then exit |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34802 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34803 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34804 | -d, --debug don't remove temporary files |
| 34805 | --recheck update $as_me by reconfiguring in the same conditions |
| 34806 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34807 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34808 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34809 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34810 | |
| 34811 | Configuration files: |
| 34812 | $config_files |
| 34813 | |
| 34814 | Configuration headers: |
| 34815 | $config_headers |
| 34816 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34817 | Configuration commands: |
| 34818 | $config_commands |
| 34819 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34820 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34821 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34822 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34823 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34824 | ac_cs_version="\\ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34825 | llvm config.status 2.3svn |
| 34826 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34827 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34829 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34830 | This config.status script is free software; the Free Software Foundation |
| 34831 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34832 | |
| 34833 | ac_pwd='$ac_pwd' |
| 34834 | srcdir='$srcdir' |
| 34835 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34836 | _ACEOF |
| 34837 | |
| 34838 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34839 | # If no file are specified by the user, then we need to provide default |
| 34840 | # value. By we need to know if files were specified by the user. |
| 34841 | ac_need_defaults=: |
| 34842 | while test $# != 0 |
| 34843 | do |
| 34844 | case $1 in |
| 34845 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34846 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 34847 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34848 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34849 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34850 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34851 | ac_option=$1 |
| 34852 | ac_optarg=$2 |
| 34853 | ac_shift=shift |
| 34854 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34855 | esac |
| 34856 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34857 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34858 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34859 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 34860 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34861 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 34862 | echo "$ac_cs_version"; exit ;; |
| 34863 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34864 | debug=: ;; |
| 34865 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34866 | $ac_shift |
| 34867 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34868 | ac_need_defaults=false;; |
| 34869 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34870 | $ac_shift |
| 34871 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34872 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34873 | --he | --h) |
| 34874 | # Conflict between --help and --header |
| 34875 | { echo "$as_me: error: ambiguous option: $1 |
| 34876 | Try \`$0 --help' for more information." >&2 |
| 34877 | { (exit 1); exit 1; }; };; |
| 34878 | --help | --hel | -h ) |
| 34879 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34880 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 34881 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 34882 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34883 | |
| 34884 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34885 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 34886 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34887 | { (exit 1); exit 1; }; } ;; |
| 34888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34889 | *) ac_config_targets="$ac_config_targets $1" |
| 34890 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34891 | |
| 34892 | esac |
| 34893 | shift |
| 34894 | done |
| 34895 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34896 | ac_configure_extra_args= |
| 34897 | |
| 34898 | if $ac_cs_silent; then |
| 34899 | exec 6>/dev/null |
| 34900 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 34901 | fi |
| 34902 | |
| 34903 | _ACEOF |
| 34904 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34905 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34906 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 34907 | CONFIG_SHELL=$SHELL |
| 34908 | export CONFIG_SHELL |
| 34909 | 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] | 34910 | fi |
| 34911 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34912 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34913 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34914 | exec 5>>config.log |
| 34915 | { |
| 34916 | echo |
| 34917 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 34918 | ## Running $as_me. ## |
| 34919 | _ASBOX |
| 34920 | echo "$ac_log" |
| 34921 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34922 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34923 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34924 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34925 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34926 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34927 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34928 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34929 | |
| 34930 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34931 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34932 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34933 | |
| 34934 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34935 | for ac_config_target in $ac_config_targets |
| 34936 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34937 | case $ac_config_target in |
| 34938 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 34939 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
| 34940 | "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 34941 | "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
| 34942 | "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
| 34943 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34944 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34945 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 34946 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 34947 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 34948 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 34949 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 34950 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 34951 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34952 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34953 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 34954 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 34955 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 34956 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 34957 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 34958 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 34959 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34960 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34961 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 34962 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 34963 | { (exit 1); exit 1; }; };; |
| 34964 | esac |
| 34965 | done |
| 34966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34968 | # If the user did not use the arguments to specify the items to instantiate, |
| 34969 | # then the envvar interface is used. Set only those that are not. |
| 34970 | # We use the long form for the default assignment because of an extremely |
| 34971 | # bizarre bug on SunOS 4.1.3. |
| 34972 | if $ac_need_defaults; then |
| 34973 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 34974 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34975 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34976 | fi |
| 34977 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34978 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34979 | # 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] | 34980 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34981 | # Hook for its removal unless debugging. |
| 34982 | # Note that there is a small window in which the directory will not be cleaned: |
| 34983 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34984 | $debug || |
| 34985 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34986 | tmp= |
| 34987 | trap 'exit_status=$? |
| 34988 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 34989 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34990 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 34991 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34992 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34993 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34994 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34995 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34996 | test -n "$tmp" && test -d "$tmp" |
| 34997 | } || |
| 34998 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34999 | tmp=./conf$$-$RANDOM |
| 35000 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35001 | } || |
| 35002 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35003 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35004 | { (exit 1); exit 1; } |
| 35005 | } |
| 35006 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35007 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35008 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35009 | # |
| 35010 | |
| 35011 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 35012 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35013 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35014 | |
| 35015 | _ACEOF |
| 35016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35017 | |
| 35018 | |
| 35019 | ac_delim='%!_!# ' |
| 35020 | for ac_last_try in false false false false false :; do |
| 35021 | cat >conf$$subs.sed <<_ACEOF |
| 35022 | SHELL!$SHELL$ac_delim |
| 35023 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 35024 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 35025 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 35026 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 35027 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 35028 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 35029 | exec_prefix!$exec_prefix$ac_delim |
| 35030 | prefix!$prefix$ac_delim |
| 35031 | program_transform_name!$program_transform_name$ac_delim |
| 35032 | bindir!$bindir$ac_delim |
| 35033 | sbindir!$sbindir$ac_delim |
| 35034 | libexecdir!$libexecdir$ac_delim |
| 35035 | datarootdir!$datarootdir$ac_delim |
| 35036 | datadir!$datadir$ac_delim |
| 35037 | sysconfdir!$sysconfdir$ac_delim |
| 35038 | sharedstatedir!$sharedstatedir$ac_delim |
| 35039 | localstatedir!$localstatedir$ac_delim |
| 35040 | includedir!$includedir$ac_delim |
| 35041 | oldincludedir!$oldincludedir$ac_delim |
| 35042 | docdir!$docdir$ac_delim |
| 35043 | infodir!$infodir$ac_delim |
| 35044 | htmldir!$htmldir$ac_delim |
| 35045 | dvidir!$dvidir$ac_delim |
| 35046 | pdfdir!$pdfdir$ac_delim |
| 35047 | psdir!$psdir$ac_delim |
| 35048 | libdir!$libdir$ac_delim |
| 35049 | localedir!$localedir$ac_delim |
| 35050 | mandir!$mandir$ac_delim |
| 35051 | DEFS!$DEFS$ac_delim |
| 35052 | ECHO_C!$ECHO_C$ac_delim |
| 35053 | ECHO_N!$ECHO_N$ac_delim |
| 35054 | ECHO_T!$ECHO_T$ac_delim |
| 35055 | LIBS!$LIBS$ac_delim |
| 35056 | build_alias!$build_alias$ac_delim |
| 35057 | host_alias!$host_alias$ac_delim |
| 35058 | target_alias!$target_alias$ac_delim |
| 35059 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 35060 | subdirs!$subdirs$ac_delim |
| 35061 | build!$build$ac_delim |
| 35062 | build_cpu!$build_cpu$ac_delim |
| 35063 | build_vendor!$build_vendor$ac_delim |
| 35064 | build_os!$build_os$ac_delim |
| 35065 | host!$host$ac_delim |
| 35066 | host_cpu!$host_cpu$ac_delim |
| 35067 | host_vendor!$host_vendor$ac_delim |
| 35068 | host_os!$host_os$ac_delim |
| 35069 | target!$target$ac_delim |
| 35070 | target_cpu!$target_cpu$ac_delim |
| 35071 | target_vendor!$target_vendor$ac_delim |
| 35072 | target_os!$target_os$ac_delim |
| 35073 | OS!$OS$ac_delim |
| 35074 | LINKALL!$LINKALL$ac_delim |
| 35075 | NOLINKALL!$NOLINKALL$ac_delim |
| 35076 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 35077 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 35078 | ARCH!$ARCH$ac_delim |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 35079 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35080 | CC!$CC$ac_delim |
| 35081 | CFLAGS!$CFLAGS$ac_delim |
| 35082 | LDFLAGS!$LDFLAGS$ac_delim |
| 35083 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 35084 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 35085 | EXEEXT!$EXEEXT$ac_delim |
| 35086 | OBJEXT!$OBJEXT$ac_delim |
| 35087 | CPP!$CPP$ac_delim |
| 35088 | GREP!$GREP$ac_delim |
| 35089 | EGREP!$EGREP$ac_delim |
| 35090 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 35091 | BUILD_CC!$BUILD_CC$ac_delim |
| 35092 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 35093 | CVSBUILD!$CVSBUILD$ac_delim |
| 35094 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 35095 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 35096 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 35097 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35098 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35099 | JIT!$JIT$ac_delim |
| 35100 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 35101 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 35102 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 35103 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35104 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 35105 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35106 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 35107 | CXX!$CXX$ac_delim |
| 35108 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 35109 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 35110 | LEX!$LEX$ac_delim |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 35111 | LEXLIB!$LEXLIB$ac_delim |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 35112 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35113 | FLEX!$FLEX$ac_delim |
| 35114 | YACC!$YACC$ac_delim |
| 35115 | YFLAGS!$YFLAGS$ac_delim |
| 35116 | BISON!$BISON$ac_delim |
| 35117 | NM!$NM$ac_delim |
| 35118 | ifGNUmake!$ifGNUmake$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35119 | _ACEOF |
| 35120 | |
| 35121 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 35122 | break |
| 35123 | elif $ac_last_try; then |
| 35124 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 35125 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 35126 | { (exit 1); exit 1; }; } |
| 35127 | else |
| 35128 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35129 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35130 | done |
| 35131 | |
| 35132 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 35133 | if test -n "$ac_eof"; then |
| 35134 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 35135 | ac_eof=`expr $ac_eof + 1` |
| 35136 | fi |
| 35137 | |
| 35138 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35139 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 35140 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 35141 | _ACEOF |
| 35142 | sed ' |
| 35143 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 35144 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 35145 | :n |
| 35146 | t n |
| 35147 | s/'"$ac_delim"'$/,g/; t |
| 35148 | s/$/\\/; p |
| 35149 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 35150 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 35151 | rm -f conf$$subs.sed |
| 35152 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35153 | CEOF$ac_eof |
| 35154 | _ACEOF |
| 35155 | |
| 35156 | |
| 35157 | ac_delim='%!_!# ' |
| 35158 | for ac_last_try in false false false false false :; do |
| 35159 | cat >conf$$subs.sed <<_ACEOF |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 35160 | LN_S!$LN_S$ac_delim |
| 35161 | CMP!$CMP$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 35162 | CP!$CP$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35163 | DATE!$DATE$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35164 | FIND!$FIND$ac_delim |
| 35165 | MKDIR!$MKDIR$ac_delim |
| 35166 | MV!$MV$ac_delim |
| 35167 | RANLIB!$RANLIB$ac_delim |
| 35168 | RM!$RM$ac_delim |
| 35169 | SED!$SED$ac_delim |
| 35170 | TAR!$TAR$ac_delim |
| 35171 | BINPWD!$BINPWD$ac_delim |
| 35172 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 35173 | DOT!$DOT$ac_delim |
| 35174 | GV!$GV$ac_delim |
| 35175 | DOTTY!$DOTTY$ac_delim |
| 35176 | PERL!$PERL$ac_delim |
| 35177 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 35178 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 35179 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 35180 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 35181 | BZIP2!$BZIP2$ac_delim |
| 35182 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35183 | GROFF!$GROFF$ac_delim |
| 35184 | GZIP!$GZIP$ac_delim |
| 35185 | POD2HTML!$POD2HTML$ac_delim |
| 35186 | POD2MAN!$POD2MAN$ac_delim |
| 35187 | RUNTEST!$RUNTEST$ac_delim |
| 35188 | TCLSH!$TCLSH$ac_delim |
| 35189 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 35190 | OCAMLC!$OCAMLC$ac_delim |
| 35191 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 35192 | OCAMLDEP!$OCAMLDEP$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35193 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 35194 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 35195 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 35196 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 35197 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 35198 | ECHO!$ECHO$ac_delim |
| 35199 | AR!$AR$ac_delim |
| 35200 | STRIP!$STRIP$ac_delim |
| 35201 | CXXCPP!$CXXCPP$ac_delim |
| 35202 | F77!$F77$ac_delim |
| 35203 | FFLAGS!$FFLAGS$ac_delim |
| 35204 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 35205 | LIBTOOL!$LIBTOOL$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35206 | LLVMGCC!$LLVMGCC$ac_delim |
| 35207 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 35208 | USE_UDIS86!$USE_UDIS86$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 35209 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 35210 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35211 | ALLOCA!$ALLOCA$ac_delim |
| 35212 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 35213 | LLVMCC1!$LLVMCC1$ac_delim |
| 35214 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 35215 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 35216 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35217 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 35218 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35219 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35220 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 35221 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 35222 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 35223 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 35224 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 35225 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 35226 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 35227 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 35228 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 35229 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 35230 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35231 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 35232 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35233 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35234 | LIBOBJS!$LIBOBJS$ac_delim |
| 35235 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 35236 | _ACEOF |
| 35237 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35238 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35239 | break |
| 35240 | elif $ac_last_try; then |
| 35241 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 35242 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 35243 | { (exit 1); exit 1; }; } |
| 35244 | else |
| 35245 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 35246 | fi |
| 35247 | done |
| 35248 | |
| 35249 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 35250 | if test -n "$ac_eof"; then |
| 35251 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 35252 | ac_eof=`expr $ac_eof + 1` |
| 35253 | fi |
| 35254 | |
| 35255 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35256 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 35257 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 35258 | _ACEOF |
| 35259 | sed ' |
| 35260 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 35261 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 35262 | :n |
| 35263 | t n |
| 35264 | s/'"$ac_delim"'$/,g/; t |
| 35265 | s/$/\\/; p |
| 35266 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 35267 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 35268 | rm -f conf$$subs.sed |
| 35269 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35270 | :end |
| 35271 | s/|#_!!_#|//g |
| 35272 | CEOF$ac_eof |
| 35273 | _ACEOF |
| 35274 | |
| 35275 | |
| 35276 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 35277 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 35278 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 35279 | # (actually we leave an empty line to preserve line numbers). |
| 35280 | if test "x$srcdir" = x.; then |
| 35281 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 35282 | s/:*\$(srcdir):*/:/ |
| 35283 | s/:*\${srcdir}:*/:/ |
| 35284 | s/:*@srcdir@:*/:/ |
| 35285 | s/^\([^=]*=[ ]*\):*/\1/ |
| 35286 | s/:*$// |
| 35287 | s/^[^=]*=[ ]*$// |
| 35288 | }' |
| 35289 | fi |
| 35290 | |
| 35291 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35292 | fi # test -n "$CONFIG_FILES" |
| 35293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35294 | |
| 35295 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 35296 | do |
| 35297 | case $ac_tag in |
| 35298 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 35299 | esac |
| 35300 | case $ac_mode$ac_tag in |
| 35301 | :[FHL]*:*);; |
| 35302 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 35303 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 35304 | { (exit 1); exit 1; }; };; |
| 35305 | :[FH]-) ac_tag=-:-;; |
| 35306 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 35307 | esac |
| 35308 | ac_save_IFS=$IFS |
| 35309 | IFS=: |
| 35310 | set x $ac_tag |
| 35311 | IFS=$ac_save_IFS |
| 35312 | shift |
| 35313 | ac_file=$1 |
| 35314 | shift |
| 35315 | |
| 35316 | case $ac_mode in |
| 35317 | :L) ac_source=$1;; |
| 35318 | :[FH]) |
| 35319 | ac_file_inputs= |
| 35320 | for ac_f |
| 35321 | do |
| 35322 | case $ac_f in |
| 35323 | -) ac_f="$tmp/stdin";; |
| 35324 | *) # Look for the file first in the build tree, then in the source tree |
| 35325 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 35326 | # because $ac_f cannot contain `:'. |
| 35327 | test -f "$ac_f" || |
| 35328 | case $ac_f in |
| 35329 | [\\/$]*) false;; |
| 35330 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 35331 | esac || |
| 35332 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 35333 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 35334 | { (exit 1); exit 1; }; };; |
| 35335 | esac |
| 35336 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 35337 | done |
| 35338 | |
| 35339 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 35340 | # use $as_me), people would be surprised to read: |
| 35341 | # /* config.h. Generated by config.status. */ |
| 35342 | configure_input="Generated from "`IFS=: |
| 35343 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 35344 | if test x"$ac_file" != x-; then |
| 35345 | configure_input="$ac_file. $configure_input" |
| 35346 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 35347 | echo "$as_me: creating $ac_file" >&6;} |
| 35348 | fi |
| 35349 | |
| 35350 | case $ac_tag in |
| 35351 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 35352 | esac |
| 35353 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35354 | esac |
| 35355 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35356 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35357 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35358 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 35359 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35360 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35361 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35362 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35363 | s//\1/ |
| 35364 | q |
| 35365 | } |
| 35366 | /^X\(\/\/\)[^/].*/{ |
| 35367 | s//\1/ |
| 35368 | q |
| 35369 | } |
| 35370 | /^X\(\/\/\)$/{ |
| 35371 | s//\1/ |
| 35372 | q |
| 35373 | } |
| 35374 | /^X\(\/\).*/{ |
| 35375 | s//\1/ |
| 35376 | q |
| 35377 | } |
| 35378 | s/.*/./; q'` |
| 35379 | { as_dir="$ac_dir" |
| 35380 | case $as_dir in #( |
| 35381 | -*) as_dir=./$as_dir;; |
| 35382 | esac |
| 35383 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35384 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35385 | while :; do |
| 35386 | case $as_dir in #( |
| 35387 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 35388 | *) as_qdir=$as_dir;; |
| 35389 | esac |
| 35390 | as_dirs="'$as_qdir' $as_dirs" |
| 35391 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35392 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35393 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35394 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35395 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35396 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35397 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35398 | s//\1/ |
| 35399 | q |
| 35400 | } |
| 35401 | /^X\(\/\/\)[^/].*/{ |
| 35402 | s//\1/ |
| 35403 | q |
| 35404 | } |
| 35405 | /^X\(\/\/\)$/{ |
| 35406 | s//\1/ |
| 35407 | q |
| 35408 | } |
| 35409 | /^X\(\/\).*/{ |
| 35410 | s//\1/ |
| 35411 | q |
| 35412 | } |
| 35413 | s/.*/./; q'` |
| 35414 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35415 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35416 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35417 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35418 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35419 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35420 | ac_builddir=. |
| 35421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35422 | case "$ac_dir" in |
| 35423 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35424 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35425 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35426 | # A ".." for each directory in $ac_dir_suffix. |
| 35427 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35428 | case $ac_top_builddir_sub in |
| 35429 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35430 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35431 | esac ;; |
| 35432 | esac |
| 35433 | ac_abs_top_builddir=$ac_pwd |
| 35434 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35435 | # for backward compatibility: |
| 35436 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35437 | |
| 35438 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35439 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35440 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35441 | ac_top_srcdir=$ac_top_builddir_sub |
| 35442 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35443 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35444 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35445 | ac_top_srcdir=$srcdir |
| 35446 | ac_abs_top_srcdir=$srcdir ;; |
| 35447 | *) # Relative name. |
| 35448 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35449 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35450 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35451 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35452 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35453 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35455 | case $ac_mode in |
| 35456 | :F) |
| 35457 | # |
| 35458 | # CONFIG_FILE |
| 35459 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35460 | |
| 35461 | case $INSTALL in |
| 35462 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35463 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35464 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35465 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35466 | |
| 35467 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35468 | # If the template does not know about datarootdir, expand it. |
| 35469 | # FIXME: This hack should be removed a few years after 2.60. |
| 35470 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 35471 | |
| 35472 | case `sed -n '/datarootdir/ { |
| 35473 | p |
| 35474 | q |
| 35475 | } |
| 35476 | /@datadir@/p |
| 35477 | /@docdir@/p |
| 35478 | /@infodir@/p |
| 35479 | /@localedir@/p |
| 35480 | /@mandir@/p |
| 35481 | ' $ac_file_inputs` in |
| 35482 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 35483 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 35484 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 35485 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 35486 | _ACEOF |
| 35487 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35488 | ac_datarootdir_hack=' |
| 35489 | s&@datadir@&$datadir&g |
| 35490 | s&@docdir@&$docdir&g |
| 35491 | s&@infodir@&$infodir&g |
| 35492 | s&@localedir@&$localedir&g |
| 35493 | s&@mandir@&$mandir&g |
| 35494 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 35495 | esac |
| 35496 | _ACEOF |
| 35497 | |
| 35498 | # Neutralize VPATH when `$srcdir' = `.'. |
| 35499 | # Shell code in configure.ac might set extrasub. |
| 35500 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35501 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35502 | sed "$ac_vpsub |
| 35503 | $extrasub |
| 35504 | _ACEOF |
| 35505 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35506 | :t |
| 35507 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35508 | s&@configure_input@&$configure_input&;t t |
| 35509 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 35510 | s&@srcdir@&$ac_srcdir&;t t |
| 35511 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 35512 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 35513 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 35514 | s&@builddir@&$ac_builddir&;t t |
| 35515 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 35516 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 35517 | s&@INSTALL@&$ac_INSTALL&;t t |
| 35518 | $ac_datarootdir_hack |
| 35519 | " $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] | 35520 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35521 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 35522 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 35523 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 35524 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35525 | which seems to be undefined. Please make sure it is defined." >&5 |
| 35526 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35527 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35528 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35529 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35530 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35531 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 35532 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35533 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35534 | ;; |
| 35535 | :H) |
| 35536 | # |
| 35537 | # CONFIG_HEADER |
| 35538 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35539 | _ACEOF |
| 35540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35541 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 35542 | # substitutes the proper values into config.h.in to produce config.h. |
| 35543 | rm -f conftest.defines conftest.tail |
| 35544 | # First, append a space to every undef/define line, to ease matching. |
| 35545 | echo 's/$/ /' >conftest.defines |
| 35546 | # Then, protect against being on the right side of a sed subst, or in |
| 35547 | # an unquoted here document, in config.status. If some macros were |
| 35548 | # called several times there might be several #defines for the same |
| 35549 | # symbol, which is useless. But do not sort them, since the last |
| 35550 | # AC_DEFINE must be honored. |
| 35551 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 35552 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 35553 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 35554 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 35555 | # just an empty string. |
| 35556 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 35557 | ac_dB='\\)[ (].*,\\1define\\2' |
| 35558 | ac_dC=' ' |
| 35559 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35561 | uniq confdefs.h | |
| 35562 | sed -n ' |
| 35563 | t rset |
| 35564 | :rset |
| 35565 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 35566 | t ok |
| 35567 | d |
| 35568 | :ok |
| 35569 | s/[\\&,]/\\&/g |
| 35570 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 35571 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 35572 | ' >>conftest.defines |
| 35573 | |
| 35574 | # Remove the space that was appended to ease matching. |
| 35575 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35576 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 35577 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35578 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 35579 | echo 's/ $// |
| 35580 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35581 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35582 | # Break up conftest.defines: |
| 35583 | ac_max_sed_lines=50 |
| 35584 | |
| 35585 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 35586 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 35587 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 35588 | # et cetera. |
| 35589 | ac_in='$ac_file_inputs' |
| 35590 | ac_out='"$tmp/out1"' |
| 35591 | ac_nxt='"$tmp/out2"' |
| 35592 | |
| 35593 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35594 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35595 | # Write a here document: |
| 35596 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35597 | # First, check the format of the line: |
| 35598 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 35599 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 35600 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 35601 | b |
| 35602 | :def |
| 35603 | _ACEOF |
| 35604 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35605 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35606 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 35607 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 35608 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 35609 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35610 | rm -f conftest.defines |
| 35611 | mv conftest.tail conftest.defines |
| 35612 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35613 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35615 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35616 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35617 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35618 | echo "/* $configure_input */" >"$tmp/config.h" |
| 35619 | cat "$ac_result" >>"$tmp/config.h" |
| 35620 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35621 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 35622 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 35623 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35624 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35625 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35626 | fi |
| 35627 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35628 | echo "/* $configure_input */" |
| 35629 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35630 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35631 | rm -f "$tmp/out12" |
| 35632 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35634 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 35635 | echo "$as_me: executing $ac_file commands" >&6;} |
| 35636 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35637 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35638 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35639 | |
| 35640 | case $ac_file$ac_mode in |
| 35641 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 35642 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 35643 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 35644 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 35645 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 35646 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 35647 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 35648 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35649 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 35650 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35651 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 35652 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 35653 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 35654 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 35655 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 35656 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 35657 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 35658 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 35659 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 35660 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35661 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
| 35662 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
| 35663 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
| 35664 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35665 | |
| 35666 | esac |
| 35667 | done # for ac_tag |
| 35668 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35669 | |
| 35670 | { (exit 0); exit 0; } |
| 35671 | _ACEOF |
| 35672 | chmod +x $CONFIG_STATUS |
| 35673 | ac_clean_files=$ac_clean_files_save |
| 35674 | |
| 35675 | |
| 35676 | # configure is writing to config.log, and then calls config.status. |
| 35677 | # config.status does its own redirection, appending to config.log. |
| 35678 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 35679 | # by configure, so config.status won't be able to write to it; its |
| 35680 | # output is simply discarded. So we exec the FD to /dev/null, |
| 35681 | # effectively closing config.log, so it can be properly (re)opened and |
| 35682 | # appended to by config.status. When coming back to configure, we |
| 35683 | # need to make the FD available again. |
| 35684 | if test "$no_create" != yes; then |
| 35685 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35686 | ac_config_status_args= |
| 35687 | test "$silent" = yes && |
| 35688 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35689 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35690 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35691 | exec 5>>config.log |
| 35692 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 35693 | # would make configure fail if this is the last instruction. |
| 35694 | $ac_cs_success || { (exit 1); exit 1; } |
| 35695 | fi |
| 35696 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35697 | # |
| 35698 | # CONFIG_SUBDIRS section. |
| 35699 | # |
| 35700 | if test "$no_recursion" != yes; then |
| 35701 | |
| 35702 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 35703 | ac_sub_configure_args= |
| 35704 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35705 | eval "set x $ac_configure_args" |
| 35706 | shift |
| 35707 | for ac_arg |
| 35708 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35709 | if test -n "$ac_prev"; then |
| 35710 | ac_prev= |
| 35711 | continue |
| 35712 | fi |
| 35713 | case $ac_arg in |
| 35714 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 35715 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 35716 | ac_prev=cache_file ;; |
| 35717 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 35718 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 35719 | | --c=*) |
| 35720 | ;; |
| 35721 | --config-cache | -C) |
| 35722 | ;; |
| 35723 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 35724 | ac_prev=srcdir ;; |
| 35725 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 35726 | ;; |
| 35727 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 35728 | ac_prev=prefix ;; |
| 35729 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 35730 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35731 | *) |
| 35732 | case $ac_arg in |
| 35733 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35734 | esac |
| 35735 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35736 | esac |
| 35737 | done |
| 35738 | |
| 35739 | # Always prepend --prefix to ensure using the same prefix |
| 35740 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35741 | ac_arg="--prefix=$prefix" |
| 35742 | case $ac_arg in |
| 35743 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35744 | esac |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 35745 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35746 | |
| 35747 | ac_popdir=`pwd` |
| 35748 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 35749 | |
| 35750 | # Do not complain, so a configure script can configure whichever |
| 35751 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35752 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35753 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35754 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 35755 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 35756 | echo "$ac_msg" >&6 |
| 35757 | { as_dir="$ac_dir" |
| 35758 | case $as_dir in #( |
| 35759 | -*) as_dir=./$as_dir;; |
| 35760 | esac |
| 35761 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35762 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35763 | while :; do |
| 35764 | case $as_dir in #( |
| 35765 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 35766 | *) as_qdir=$as_dir;; |
| 35767 | esac |
| 35768 | as_dirs="'$as_qdir' $as_dirs" |
| 35769 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35770 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35771 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35772 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35773 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35774 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35775 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35776 | s//\1/ |
| 35777 | q |
| 35778 | } |
| 35779 | /^X\(\/\/\)[^/].*/{ |
| 35780 | s//\1/ |
| 35781 | q |
| 35782 | } |
| 35783 | /^X\(\/\/\)$/{ |
| 35784 | s//\1/ |
| 35785 | q |
| 35786 | } |
| 35787 | /^X\(\/\).*/{ |
| 35788 | s//\1/ |
| 35789 | q |
| 35790 | } |
| 35791 | s/.*/./; q'` |
| 35792 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35793 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35794 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35795 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35796 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35797 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35798 | ac_builddir=. |
| 35799 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35800 | case "$ac_dir" in |
| 35801 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35802 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35803 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35804 | # A ".." for each directory in $ac_dir_suffix. |
| 35805 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35806 | case $ac_top_builddir_sub in |
| 35807 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35808 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35809 | esac ;; |
| 35810 | esac |
| 35811 | ac_abs_top_builddir=$ac_pwd |
| 35812 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35813 | # for backward compatibility: |
| 35814 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35815 | |
| 35816 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35817 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35818 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35819 | ac_top_srcdir=$ac_top_builddir_sub |
| 35820 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35821 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35822 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35823 | ac_top_srcdir=$srcdir |
| 35824 | ac_abs_top_srcdir=$srcdir ;; |
| 35825 | *) # Relative name. |
| 35826 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35827 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35828 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35829 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35830 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35831 | |
| 35832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35833 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35834 | |
| 35835 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35836 | if test -f "$ac_srcdir/configure.gnu"; then |
| 35837 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 35838 | elif test -f "$ac_srcdir/configure"; then |
| 35839 | ac_sub_configure=$ac_srcdir/configure |
| 35840 | elif test -f "$ac_srcdir/configure.in"; then |
| 35841 | # This should be Cygnus configure. |
| 35842 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35843 | else |
| 35844 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 35845 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 35846 | ac_sub_configure= |
| 35847 | fi |
| 35848 | |
| 35849 | # The recursion is here. |
| 35850 | if test -n "$ac_sub_configure"; then |
| 35851 | # Make the cache file name correct relative to the subdirectory. |
| 35852 | case $cache_file in |
| 35853 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35854 | *) # Relative name. |
| 35855 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35856 | esac |
| 35857 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35858 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 35859 | 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] | 35860 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35861 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 35862 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35863 | { { 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] | 35864 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 35865 | { (exit 1); exit 1; }; } |
| 35866 | fi |
| 35867 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35868 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35869 | done |
| 35870 | fi |
| 35871 | |